Data
extension Data
-
Unarchive data into an object. It will be returned as type
Any
but you can cast it into the correct type.Declaration
Swift
func convert() -> Any?
-
Converts an object into Data using the NSKeyedArchiver
Declaration
Swift
static func toData(object: Any) -> Data