SwiftDocCVariantOverridesClassVariantOverridesDefines the overrides for variants of documentation content.class VariantOverridesDiscussionThis class can be used to accumulate override information while encoding a tree of objects.TopicsApplying Patchesstruct RenderNodeVariantOverridesApplierA utility type to apply variant overrides to an encoded render node.Initializersinit(from: any Decoder) throwsinit(values: [VariantOverride])Initializes a value given overrides.Instance Propertiesvar isEmpty: BoolWhether the collection of overrides is empty.var values: [VariantOverride]The values of the variants, organized by trait.Instance Methodsfunc add(VariantOverride)Adds the given override.func add(contentsOf: some Collection<VariantOverride>)Adds the given overrides.func encode(to: any Encoder) throws