AnyCodable
public indirect enum AnyCodable : Codable
extension AnyCodable: Equatable
Provides dynamic Codable support for arbitrary nested data structures.
Supported types are Int, String, Float, Bool, as well as arrays and dictionaries of any of these.
-
Undocumented
Declaration
Swift
case int(Int) -
Undocumented
Declaration
Swift
case string(String) -
Undocumented
Declaration
Swift
case boolean(Bool) -
Undocumented
Declaration
Swift
case float(Float) -
Undocumented
Declaration
Swift
case array([AnyCodable]) -
Undocumented
Declaration
Swift
case dictionary([String : AnyCodable]) -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
AnyCodable Enumeration Reference