SwiftextensionUIKitCore

extension UITraitCollection

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

extends{}

Members 81

  1. varstatic var __systemTraitsAffectingVerticalBarEdge: [UITraitDefinition.Type] { get }
  2. varstatic var _systemTraitsAffectingIntelligentAssistantVisibility: [UIKit.UITraitDefinition.Type] { get }
  3. varstatic var systemTraitsAffectingColorAppearance: [UIKit.UITraitDefinition.Type] { get }
  4. varstatic var systemTraitsAffectingImageLookup: [UIKit.UITraitDefinition.Type] { get }
  5. varstatic var systemTraitsAffectingVerticalBarEdge: [UIKit.UITraitDefinition.Type] { get }
  6. func_isSpecified(UIKit.UITraitDefinition.Type) -> Bool
  7. func_modifyingTraits(environmentWrapper: NSObject?, mutations: (inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection
  8. func_removing(UIKit.UITraitDefinition.Type) -> UITraitCollection
  9. funcchangedTraits(from: UITraitCollection?) -> [UIKit.UITraitDefinition.Type]
  10. funccoreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: UIView?) -> SwiftUI.EnvironmentValues
  11. funccoreResolvedBaseEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues
  12. funccoreResolvedBaseTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection
  13. funccoreResolvedEnvironment(base: SwiftUI.EnvironmentValues, traitEnvironment: UIView?) -> SwiftUI.EnvironmentValues
  14. funccoreResolvedEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues
  15. funccoreResolvedGlassMaterialEnvironment(base: SwiftUI.EnvironmentValues) -> SwiftUI.EnvironmentValues
  16. funccoreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection
  17. funccoreResolvedGlassMaterialTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?) -> UITraitCollection
  18. funccoreResolvedTraitCollection(environment: SwiftUI.EnvironmentValues, wrapper: SwiftUI.ViewGraphHostEnvironmentWrapper?, options: UIKit.UICoreTraitCollectionResolutionOptions) -> UITraitCollection
  19. funcfiltering([UIKit.UITraitDefinition.Type]) -> UITraitCollection
  20. funcmodifyingTraits((inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection
  21. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(_: A.Type, value: CoreGraphics.CGFloat?) -> UITraitCollection
  22. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(_: A.Type, value: CoreGraphics.CGFloat) -> UITraitCollection
  23. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection
  24. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection
  25. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection
  26. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(_: A.Type, value: A.Value) -> UITraitCollection
  27. funcreplacing<A where A: UIKit.UITraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection
  28. funcreplacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection
  29. funcreplacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection
  30. funcreplacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection
  31. funcreplacing<A where A: UIKit._UICustomRawRepresentableTraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection
  32. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == Bool>(_: A.Type, value: Bool) -> UITraitCollection
  33. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == Double?>(_: A.Type, value: Double?) -> UITraitCollection
  34. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == Double>(_: A.Type, value: Double) -> UITraitCollection
  35. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == Int?>(_: A.Type, value: Int?) -> UITraitCollection
  36. funcreplacing<A where A: UIKit.UITraitDefinition, A.Value == Int>(_: A.Type, value: Int) -> UITraitCollection
  37. initinit(typesettingLanguage: Foundation.Locale.Language?) -> UITraitCollection
  38. initinit(systemPrefersReducedResourceUsage: Bool) -> UITraitCollection
  39. initinit(typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio) -> UITraitCollection
  40. initinit(resolvesNaturalAlignmentWithBaseWritingDirection: Bool) -> UITraitCollection
  41. initinit(mutations: (inout UIKit.UIMutableTraits) -> ()) -> UITraitCollection
  42. initinit<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(_: A.Type, value: CoreGraphics.CGFloat?) -> UITraitCollection
  43. initinit<A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(_: A.Type, value: CoreGraphics.CGFloat) -> UITraitCollection
  44. initinit<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection
  45. initinit<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection
  46. initinit<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection
  47. initinit<A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(_: A.Type, value: A.Value) -> UITraitCollection
  48. initinit<A where A: UIKit.UITraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection
  49. initinit<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(_: A.Type, value: A.Value) -> UITraitCollection
  50. initinit<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(_: A.Type, value: A.Value) -> UITraitCollection
  51. initinit<A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(_: A.Type, value: A.Value) -> UITraitCollection
  52. initinit<A where A: UIKit._UICustomRawRepresentableTraitDefinition>(_: A.Type, value: A.Value) -> UITraitCollection
  53. initinit<A where A: UIKit.UITraitDefinition, A.Value == Bool>(_: A.Type, value: Bool) -> UITraitCollection
  54. initinit<A where A: UIKit.UITraitDefinition, A.Value == Double?>(_: A.Type, value: Double?) -> UITraitCollection
  55. initinit<A where A: UIKit.UITraitDefinition, A.Value == Double>(_: A.Type, value: Double) -> UITraitCollection
  56. initinit<A where A: UIKit.UITraitDefinition, A.Value == Int?>(_: A.Type, value: Int?) -> UITraitCollection
  57. initinit<A where A: UIKit.UITraitDefinition, A.Value == Int>(_: A.Type, value: Int) -> UITraitCollection
  58. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat?>(A.Type) -> CoreGraphics.CGFloat?
  59. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == CoreGraphics.CGFloat>(A.Type) -> CoreGraphics.CGFloat
  60. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == CoreGraphics.CGFloat>(A.Type) -> A.Value
  61. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Double>(A.Type) -> A.Value
  62. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable, A.Value.RawValue == Int>(A.Type) -> A.Value
  63. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value: RawRepresentable>(A.Type) -> A.Value
  64. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition>(A.Type) -> A.Value
  65. subscriptsubscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == CoreGraphics.CGFloat>(A.Type) -> A.Value
  66. subscriptsubscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Double>(A.Type) -> A.Value
  67. subscriptsubscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition, A._CustomRawValue == Int>(A.Type) -> A.Value
  68. subscriptsubscript.getter : <A where A: UIKit._UICustomRawRepresentableTraitDefinition>(A.Type) -> A.Value
  69. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Bool>(A.Type) -> Bool
  70. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Double?>(A.Type) -> Double?
  71. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Double>(A.Type) -> Double
  72. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Int?>(A.Type) -> Int?
  73. subscriptsubscript.getter : <A where A: UIKit.UITraitDefinition, A.Value == Int>(A.Type) -> Int
  74. varvar _activationInteractionPolicy: _UIWindowSceneActivationInteractionPolicy { get }
  75. varvar _barButtonItemMetrics: UIKit._UIBarButtonItemMetrics? { get }
  76. varvar _hasScrollPocketContainerModel: Bool { get }
  77. varvar _specifiedTraits: [UIKit.UITraitDefinition.Type] { get }
  78. varvar _typesettingLanguageAwareLineHeightRatio: UIKit.UITypesettingLanguageAwareLineHeightRatio { get }
  79. varvar resolvesNaturalAlignmentWithBaseWritingDirection: Bool { get }
  80. varvar systemPrefersReducedResourceUsage: Bool { get }
  81. varvar typesettingLanguage: Foundation.Locale.Language? { get }
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
    }
}