ConfigurationState
The requirements for an object that encapsulate a view’s state.
public protocol ConfigurationState
Requirements
traitCollection
The traits that describe the current layout environment of the view, such as the user interface style and layout direction.
var traitCollection: TraitCollection
subscript(key:)
Accesses custom states by key.
subscript(key: ConfigurationStateCustomKey) -> AnyHashable?
init(traitCollection:)
Creates a View configuration state with the specified trait collection.
init(traitCollection: TraitCollection)