URLTransform

open class URLTransform : TransformType

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias Object = URL
  • Undocumented

    Declaration

    Swift

    public typealias JSON = String
  • Initializes the URLTransform with an option to encode URL strings before converting them to an NSURL

    Declaration

    Swift

    public init(shouldEncodeURLString: Bool = true)

    Parameters

    shouldEncodeUrlString

    when true (the default) the string is encoded before passing to NSURL(string:)

    Return Value

    an initialized transformer

  • Undocumented

    Declaration

    Swift

    open func transformFromJSON(_ value: Any?) -> URL?
  • Undocumented

    Declaration

    Swift

    open func transformToJSON(_ value: URL?) -> String?