Declaration
compose().id<ID>(id: ID)nonisolated func id<ID>(_ id: ID) -> some View where ID : HashableParameters
id*ID
Discussion
When the proxy value specified by the id parameter changes, the
identity of the view — for example, its state — is reset.
See also
More in Other modifiers.
- contentMarginsConfigures the content margin for a provided placement.
- modifierApplies a modifier to a view and returns a new view.
- persistentSystemOverlaysSets the preferred visibility of the non-transient system views overlaying the app.
- renameActionSets the rename action in the environment to update focus state.
- tagSets the unique tag value of this view.
- typeSelectEquivalentSets an explicit type select equivalent text in a collection, such as a list or table.