Protocol
EncodableWithConfiguration
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A protocol for types that support encoding when supplied with an additional configuration type.
protocol EncodableWithConfiguration
Topics
Associated Types
associatedtype EncodingConfigurationThe type of the encoding configuration.
Instance Methods
func encode(to: any Encoder, configuration: Self.EncodingConfiguration) throwsEncodes the value into the specified encoder with help from the provided configuration.