SwiftextensionUIKitCore
UITraitCollection
extension UITraitCollection
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
classUITraitCollection
Members 81
- var
static var __systemTraitsAffectingVerticalBarEdge: [UITraitDefinition.Type] { get } - var
static var _systemTraitsAffectingIntelligentAssistantVisibility: [UIKit.UITraitDefinition.Type] { get } - var
static var systemTraitsAffectingColorAppearance: [UIKit.UITraitDefinition.Type] { get } - var
static var systemTraitsAffectingImageLookup: [UIKit.UITraitDefinition.Type] { get } - var
static var systemTraitsAffectingVerticalBarEdge: [UIKit.UITraitDefinition.Type] { get } - func
_isSpecified(UIKit.UITraitDefinition.Type) -> Bool - func
_modifyingTraits(environmentWrapper: NSObject?, mutations: (inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection - func
_removing(UIKit.UITraitDefinition.Type) -> UITraitCollection - func
changedTraits(from: UITraitCollection?) -> [UIKit.UITraitDefinition.Type] - func
coreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: UIView?) -> SwiftUI.EnvironmentValues - func
coreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues - func
coreResolvedBaseTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection - func
coreResolvedEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: UIView?) -> SwiftUI.EnvironmentValues - func
coreResolvedEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues - func
coreResolvedGlassMaterialEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues - func
coreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection - func
coreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?) -> UITraitCollection - func
coreResolvedTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection - func
filtering([UIKit.UITraitDefinition.Type]) -> UITraitCollection - func
modifyingTraits((inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(_: A.Type, value: CoreGraphics.CGFloat?) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(_: A.Type, value: CoreGraphics.CGFloat) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == Bool>(_: A.Type, value: Bool) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == Double?>(_: A.Type, value: Double?) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == Double>(_: A.Type, value: Double) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == Int?>(_: A.Type, value: Int?) -> UITraitCollection - func
replacing<A where A: UIKit.UITraitDefinition, A.Value == Int>(_: A.Type, value: Int) -> UITraitCollection - init
init(typesettingLanguage: Foundation.Locale.Language?) -> UITraitCollection - init
init(systemPrefersReducedResourceUsage: Bool) -> UITraitCollection - init
init(typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio) -> UITraitCollection - init
init(resolvesNaturalAlignmentWithBaseWritingDirection: Bool) -> UITraitCollection - init
init(mutations: (inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(_: A.Type, value: CoreGraphics.CGFloat?) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(_: A.Type, value: CoreGraphics.CGFloat) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit._UICustomRawRepresentableTraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == Bool>(_: A.Type, value: Bool) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == Double?>(_: A.Type, value: Double?) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == Double>(_: A.Type, value: Double) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == Int?>(_: A.Type, value: Int?) -> UITraitCollection - init
init<A where A: UIKit.UITraitDefinition, A.Value == Int>(_: A.Type, value: Int) -> UITraitCollection - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(A.Type) -> CoreGraphics.CGFloat? - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(A.Type) -> CoreGraphics.CGFloat - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition>(A.Type) -> A.Value - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Bool>(A.Type) -> Bool - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Double?>(A.Type) -> Double? - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Double>(A.Type) -> Double - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Int?>(A.Type) -> Int? - subscript
subscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Int>(A.Type) -> Int - var
var _activationInteractionPolicy: _UIWindowSceneActivationInteractionPolicy { get } - var
var _barButtonItemMetrics: UIKit._UIBarButtonItemMetrics? { get } - var
var _hasScrollPocketContainerModel: Bool { get } - var
var _specifiedTraits: [UIKit.UITraitDefinition.Type] { get } - var
var _typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio { get } - var
var resolvesNaturalAlignmentWithBaseWritingDirection: Bool { get } - var
var systemPrefersReducedResourceUsage: Bool { get } - var
var typesettingLanguage: Foundation.Locale.Language? { get }
Header
extension __C.UITraitCollection { struct MutableTraits { let _impl: any __C.UIMutableTraitsInternal } struct CoreListMetricsEnvironment { var traitCollection: __C.UITraitCollection var userInterfaceIdiomOverride: UIKit.CoreListMetricsUserInterfaceIdiom? } init(typesettingLanguage: Foundation.Locale.Language?) init(systemPrefersReducedResourceUsage: Swift.Bool) init(typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio) init(resolvesNaturalAlignmentWithBaseWritingDirection: Swift.Bool) init(mutations: (_: inout any UIKit.UIMutableTraits) -> ()) init<A>(_: A.Type, value: CoreGraphics.CGFloat?) where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat? init<A>(_: A.Type, value: CoreGraphics.CGFloat) where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat init<A>(_: A.Type, value: A.Value) where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat init<A>(_: A.Type, value: A.Value) where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Double init<A>(_: A.Type, value: A.Value) where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Int init<A>(_: A.Type, value: A.Value) where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable init<A>(_: A.Type, value: A.Value) where A: UIKit.UITraitDefinition init<A>(_: A.Type, value: A.Value) where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat init<A>(_: A.Type, value: A.Value) where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Double init<A>(_: A.Type, value: A.Value) where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Int init<A>(_: A.Type, value: A.Value) where A: UIKit._UICustomRawRepresentableTraitDefinition init<A>(_: A.Type, value: Swift.Bool) where A: UIKit.UITraitDefinition, A.Value == Swift.Bool init<A>(_: A.Type, value: Swift.Double?) where A: UIKit.UITraitDefinition, A.Value == Swift.Double? init<A>(_: A.Type, value: Swift.Double) where A: UIKit.UITraitDefinition, A.Value == Swift.Double init<A>(_: A.Type, value: Swift.Int?) where A: UIKit.UITraitDefinition, A.Value == Swift.Int? init<A>(_: A.Type, value: Swift.Int) where A: UIKit.UITraitDefinition, A.Value == Swift.Int var _activationInteractionPolicy: __C._UIWindowSceneActivationInteractionPolicy { get } var _barButtonItemMetrics: UIKit._UIBarButtonItemMetrics? { get } var _hasScrollPocketContainerModel: Swift.Bool { get } var _specifiedTraits: [any UIKit.UITraitDefinition.Type] { get } var _typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio { get } var resolvesNaturalAlignmentWithBaseWritingDirection: Swift.Bool { get } var systemPrefersReducedResourceUsage: Swift.Bool { get } var typesettingLanguage: Foundation.Locale.Language? { get } func coreResolvedTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> __C.UITraitCollection func coreResolvedBaseTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> __C.UITraitCollection func coreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> __C.UITraitCollection func coreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?) -> __C.UITraitCollection func _isSpecified(_: any UIKit.UITraitDefinition.Type) -> Swift.Bool func changedTraits(from: __C.UITraitCollection?) -> [any UIKit.UITraitDefinition.Type] func modifyingTraits(_: (_: inout any UIKit.UIMutableTraits) -> ()) -> __C.UITraitCollection func _modifyingTraits(environmentWrapper: __C.NSObject?, mutations: (_: inout any UIKit.UIMutableTraits) -> ()) -> __C.UITraitCollection func coreResolvedEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: __C.UIView?) -> SwiftUI.EnvironmentValues func coreResolvedEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues func coreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: __C.UIView?) -> SwiftUI.EnvironmentValues func coreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues func coreResolvedGlassMaterialEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues func _removing(_: any UIKit.UITraitDefinition.Type) -> __C.UITraitCollection func filtering(_: [any UIKit.UITraitDefinition.Type]) -> __C.UITraitCollection func replacing<A>(_: A.Type, value: CoreGraphics.CGFloat?) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat? func replacing<A>(_: A.Type, value: CoreGraphics.CGFloat) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Double func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Int func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit.UITraitDefinition func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Double func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Int func replacing<A>(_: A.Type, value: A.Value) -> __C.UITraitCollection where A: UIKit._UICustomRawRepresentableTraitDefinition func replacing<A>(_: A.Type, value: Swift.Bool) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == Swift.Bool func replacing<A>(_: A.Type, value: Swift.Double?) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == Swift.Double? func replacing<A>(_: A.Type, value: Swift.Double) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == Swift.Double func replacing<A>(_: A.Type, value: Swift.Int?) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == Swift.Int? func replacing<A>(_: A.Type, value: Swift.Int) -> __C.UITraitCollection where A: UIKit.UITraitDefinition, A.Value == Swift.Int subscript<A>(_: A.Type) -> CoreGraphics.CGFloat? where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat? { get } subscript<A>(_: A.Type) -> CoreGraphics.CGFloat where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Double { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable, A.Value.RawValue == Swift.Int { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit.UITraitDefinition, A.Value: Swift.RawRepresentable { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit.UITraitDefinition { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Double { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Swift.Int { get } subscript<A>(_: A.Type) -> A.Value where A: UIKit._UICustomRawRepresentableTraitDefinition { get } subscript<A>(_: A.Type) -> Swift.Bool where A: UIKit.UITraitDefinition, A.Value == Swift.Bool { get } subscript<A>(_: A.Type) -> Swift.Double? where A: UIKit.UITraitDefinition, A.Value == Swift.Double? { get } subscript<A>(_: A.Type) -> Swift.Double where A: UIKit.UITraitDefinition, A.Value == Swift.Double { get } subscript<A>(_: A.Type) -> Swift.Int? where A: UIKit.UITraitDefinition, A.Value == Swift.Int? { get } subscript<A>(_: A.Type) -> Swift.Int where A: UIKit.UITraitDefinition, A.Value == Swift.Int { get } static var __systemTraitsAffectingVerticalBarEdge: [any __C.UITraitDefinition.Type] { get } static var _systemTraitsAffectingIntelligentAssistantVisibility: [any UIKit.UITraitDefinition.Type] { get } static var systemTraitsAffectingColorAppearance: [any UIKit.UITraitDefinition.Type] { get } static var systemTraitsAffectingImageLookup: [any UIKit.UITraitDefinition.Type] { get } static var systemTraitsAffectingVerticalBarEdge: [any UIKit.UITraitDefinition.Type] { get } }