init(isPresented:configuration:content:)
Present content when a binding that you provide is true, using modality and options specified by configuration.
Declaration
nonisolated init<Content>(isPresented: Binding<Bool>, configuration: PresentationComponent.Configuration, content: Content) where Content : ViewParameters
- isPresented:
A binding to a Boolean value that determines whether to present the content.
- configuration:
A configuration that specifies the modality, appearance, and behavior of the presentation.
- content:
The SwiftUI view hierarchy that you want to present with the component.
Discussion
Use this component when you want to present a modal that is anchored to an entity.