Initializer
init(from:transform:)
Creates a variant collection from a non-empty symbol variants data using the given transformation closure.
init?<SymbolValue>(from documentationDataVariants: DocumentationDataVariants<SymbolValue>, transform: (DocumentationDataVariantsTrait, SymbolValue) -> Value)
Discussion
If there are no variants for the symbol data, this initializer returns nil.
This initializer picks a variant (the Swift variant, if available) of the given symbol data as the default value for the variant collection. Other variants are encoded in the variant collection’s variants.