One Logo Pool Ball
UIKit · IOS API REFERENCE

UIMutableTraits

protocol · iOS 17.0+ · SDK 27.1

protocol UIMutableTraits

Members (23)

get · iOS 17.0+

displayGamut

Swift declaration
var displayGamut: UIDisplayGamut { get set }
get · iOS 17.0+

displayScale

Swift declaration
var displayScale: CGFloat { get set }
get · iOS 17.0+

layoutDirection

Swift declaration
var layoutDirection: UITraitEnvironmentLayoutDirection { get set }
get · iOS 18.0+

listEnvironment

Swift declaration
var listEnvironment: UIListEnvironment { get set }
get · iOS 17.0+

activeAppearance

Swift declaration
var activeAppearance: UIUserInterfaceActiveAppearance { get set }
get · iOS 17.0+

legibilityWeight

Swift declaration
var legibilityWeight: UILegibilityWeight { get set }
get · iOS 17.0+

imageDynamicRange

Swift declaration
var imageDynamicRange: UIImage.DynamicRange { get set }
get · iOS 17.0+

sceneCaptureState

Swift declaration
var sceneCaptureState: UISceneCaptureState { get set }
get · iOS 17.0+

verticalSizeClass

Swift declaration
var verticalSizeClass: UIUserInterfaceSizeClass { get set }
get · iOS 26.0+

headroomUsageLimit

Swift declaration
var headroomUsageLimit: UITraitHDRHeadroomUsageLimit.Value { get set }
get · iOS 17.0+

userInterfaceIdiom

Swift declaration
var userInterfaceIdiom: UIUserInterfaceIdiom { get set }
get · iOS 17.0+

userInterfaceLevel

Swift declaration
var userInterfaceLevel: UIUserInterfaceLevel { get set }
get · iOS 17.0+

userInterfaceStyle

Swift declaration
var userInterfaceStyle: UIUserInterfaceStyle { get set }
get · iOS 17.0+

horizontalSizeClass

Swift declaration
var horizontalSizeClass: UIUserInterfaceSizeClass { get set }
get · iOS 17.0+

typesettingLanguage

Swift declaration
var typesettingLanguage: Locale.Language? { get set }
get · iOS 17.0+

forceTouchCapability

Swift declaration
var forceTouchCapability: UIForceTouchCapability { get set }
get · iOS 17.0+

accessibilityContrast

Swift declaration
var accessibilityContrast: UIAccessibilityContrast { get set }
get · iOS 26.0+

tabAccessoryEnvironment

Swift declaration
var tabAccessoryEnvironment: UITabAccessory.Environment { get set }
get · iOS 17.0+

toolbarItemPresentationSize

Swift declaration
var toolbarItemPresentationSize: UINSToolbarItemPresentationSize { get set }
get · iOS 17.0+

preferredContentSizeCategory

Swift declaration
var preferredContentSizeCategory: UIContentSizeCategory { get set }
get · iOS 27.0+

systemPrefersReducedResourceUsage

Swift declaration
var systemPrefersReducedResourceUsage: Bool { get set }
get · iOS 26.0+

splitViewControllerLayoutEnvironment

Swift declaration
var splitViewControllerLayoutEnvironment: UISplitViewController.LayoutEnvironment { get set }
get · iOS 26.0+

resolvesNaturalAlignmentWithBaseWritingDirection

Swift declaration
var resolvesNaturalAlignmentWithBaseWritingDirection: Bool { get set }

Skipped declarations

23 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIMutableTraits.tabAccessoryEnvironment

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.userInterfaceIdiom

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.userInterfaceStyle

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.layoutDirection

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.displayScale

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.horizontalSizeClass

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.verticalSizeClass

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.forceTouchCapability

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.preferredContentSizeCategory

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.displayGamut

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.accessibilityContrast

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.userInterfaceLevel

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.legibilityWeight

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.activeAppearance

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.toolbarItemPresentationSize

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.imageDynamicRange

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.sceneCaptureState

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.typesettingLanguage

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.resolvesNaturalAlignmentWithBaseWritingDirection

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.systemPrefersReducedResourceUsage

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.headroomUsageLimit

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.splitViewControllerLayoutEnvironment

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

UIMutableTraits.listEnvironment

The iOS SDK compiler rejected this binding: cannot assign to property: 'o' is a 'let' constant

All UIKit types →