NumberFormatter
-
Define an initialier for decoding
NumberFormatterfrom a decoder.Note
Class extensions cannot conform to the
Decodableprotocol b/c required initializers must be defined in the base implementation.Throws
DecodingErrorDeclaration
Swift
public convenience init(from decoder: Decoder) throwsParameters
decoderThe decoder to use to decode this instance.
-
Encode the object to the given encoder.
Throws
EncodingErrorDeclaration
Swift
open func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to use to encode this instance.
View on GitHub
NumberFormatter Extension Reference