Path

public enum Path

URL path representation based on String components.

Public properties

  • Returns the constructed path as String based on .path components.

    Declaration

    Swift

    public var convertedPath: String { get }

Public methods

  • An enum case that can be used where path is needed. For example: .path([“user”, “1”, “details”]). Later you can call covertedPath to construct the path as String (e.g. /user/1/details)

    Declaration

    Swift

    case path(_: [String])