URLCoder

public class URLCoder : MapCoder

Transforms a String to a URL using its URL(string:String) when getting value from a map. Transforms a URL back to a String using its absoluteString variable when adding it to a map.

  • Undocumented

    Declaration

    Swift

    public init()
  • Converts a URL into a String value using its absoluteString property.

    Declaration

    Swift

    public func toMap(value: URL) -> String?
  • Attempts to convert a String into a URL using its init(string:String) initializer.

    Declaration

    Swift

    public func fromMap(value: String) throws -> URL?