Extensions
The following extensions are available globally.
-
Declaration
Swift
@frozen extension String: Decodable, DynamicDecodable
-
Declaration
Swift
@frozen extension Int: Decodable, DynamicDecodable
-
Declaration
Swift
@frozen extension Double: Decodable, DynamicDecodable
-
Declaration
Swift
@frozen extension Bool: Decodable, DynamicDecodable
-
Declaration
Swift
extension Date: Decodable, DynamicDecodable
-
Declaration
Swift
extension NSArray: DynamicDecodable
-
Declaration
Swift
extension URL: DynamicDecodable, Decodable
-
Declaration
Swift
@frozen extension Int64: NSNumberCastable
-
Declaration
Swift
@frozen extension Int32: NSNumberCastable
-
Declaration
Swift
@frozen extension Int16: NSNumberCastable
-
Declaration
Swift
@frozen extension Int8: NSNumberCastable
-
Declaration
Swift
@frozen extension UInt64: NSNumberCastable
-
Declaration
Swift
@frozen extension UInt32: NSNumberCastable
-
Declaration
Swift
@frozen extension UInt16: NSNumberCastable
-
Declaration
Swift
@frozen extension UInt8: NSNumberCastable
-
Extends all RawRepresentables (enums) which are also Decodable with decode implementation.
I could not find a way to implicitly declare RawRepresentable conforming to Decodable, what would make all enums Decodable automatically. Because of that for an enum to be compatible with Decodable operators it must be declared as implementing Decodable protocol.
See more