PathAppendable
public protocol PathAppendable
Represents a component that can be part of a path, by representing itself with a string to be appended to the path.
-
toPath()Default implementationString represention of the path that represents the component.
By default, it uses the String’s describing init. This means you can override the
toPathfunction, or implement theCustomStringConvertibleprotocol and override thedescriptionproperty.Seealso
String(describing: Subject)init.Default Implementation
Declaration
Swift
func toPath() -> String
PathAppendable Protocol Reference