URLTransform
open class URLTransform: TransformType
Undocumented
-
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?