Dialog Sheet
Represents a Material UI styled modal sheet for presenting supplementary content or actions.
Overview
Modifer
dialogSheet(isPresented: Binding<Bool>, _ content: @escaping () -> Content)Parameters
Property
Description
Example
@State private var showDialogSheet = false
var body: some View {
Container {
Switch("Show Dialog Sheet", isOn: $showDialogSheet)
}
.dialogSheet(isPresented: $showDialogSheet) {
VStack(alignment: .leading, spacing: 15) {
Text("Dialog Sheet")
.font(MaterialUIKit.configuration.h4)
.fontWeight(.bold)
Text("It can contain any custom content.")
.font(MaterialUIKit.configuration.h4)
}
}
}

Last updated