unkeyedContainer()
Returns an encoding container appropriate for holding multiple unkeyed values.
Declaration
func unkeyedContainer() -> any UnkeyedEncodingContainerReturn Value
A new empty unkeyed container.
Discussion
You must use only one kind of top-level encoding container. This method must not be called after a call to container(keyedBy:) or after encoding a value through a call to singleValueContainer()