You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `MUICardView` SwiftUI component represents a MaterialUI style card.
241
241
@@ -300,7 +300,7 @@ MUICardView(
300
300
<details>
301
301
<summary> Checkbox </summary>
302
302
303
-
#MUICheckbox
303
+
## `MUICheckbox`
304
304
305
305
`MUICheckbox` provides a checkbox with a clean and modern MaterialUI design. It allows users to toggle between the checked and unchecked states by tapping the checkbox.
A SwiftUI button designed for floating action button (FAB) functionality with various initialization options. MUIIconButton provides the flexibility to create circular icon buttons with different styles, allowing you to choose from elevated, filled, tonal, or secondary background styles.
`MUIIconButton` provides the flexibility to create circular icon buttons with different styles, allowing you to choose from elevated, filled, tonal, or secondary background styles.
`MUISwitch` is a SwiftUI view representing a MaterialUI style switch.it provides a custom-styled switch with a MaterialUI design, offering a unique appearance for toggling between states.
`MUIAlert` provides a convenient way to present a MaterialUI style alert over the current view.
425
424
@@ -473,10 +472,53 @@ struct ContentView: View {
473
472
474
473
</details>
475
474
475
+
<details>
476
+
<summary> Dialog Sheet </summary>
477
+
478
+
## `MUIDialogSheet`
479
+
480
+
`MUIAlert` provides a convenient way to present a MaterialUI style dialog sheet over the current view.
481
+
482
+
`.mUIDialogSheet()` is an extension to the `View` protocol in SwiftUI, offering a modifier that can be applied to any view. This modifier presents a MaterialUI style dialog sheet.
483
+
484
+
## Usage
485
+
486
+
To use `MUIDialogSheet`, apply the `mUIDialogSheet` modifier to a SwiftUI view and provide the necessary parameters:
487
+
488
+
## Parameters
489
+
490
+
-`isPresented: Binding<Bool>`: Binding to control the presentation state of the dialog sheet.
491
+
-`content: View`: A view content to be displayed in the dialog sheet.
492
+
493
+
## Example
494
+
495
+
```swift
496
+
structContentView: View {
497
+
@Stateprivatevar showDialogSheet =false
498
+
499
+
var body: some View {
500
+
VStack {
501
+
Button("Show Alert") {
502
+
showDialogSheet.toggle()
503
+
}
504
+
}
505
+
506
+
// MUIDialogSheet
507
+
.mUIDialogSheet(isPresented: $showDialogSheet) {
508
+
Text("Dialog sheet content")
509
+
}
510
+
}
511
+
}
512
+
}
513
+
```
514
+
515
+
</details>
516
+
517
+
476
518
<details>
477
519
<summary> Snackbar </summary>
478
520
479
-
#MUISnackbar
521
+
## `MUISnackbar`
480
522
`MUISnackbar` provides a customizable MaterialUI style snackbar that can be displayed at the bottom of the screen.
481
523
482
524
`.mUISnackbar()` is an extension to the `View` protocol in SwiftUI, offering a modifier that can be applied to any view. This modifier presents a MaterialUI style snackbar with customizable parameters such as message, duration, and an optional primary action button.
@@ -526,7 +568,7 @@ struct ContentView: View {
526
568
<details>
527
569
<summary> List </summary>
528
570
529
-
#MUIList
571
+
## `MUIList`
530
572
`MUIList` is a SwiftUI view that provides a MaterialUI-styled list with various visual styles. The `MUIList` view is designed to display a collection of elements with different visual styles such as plain, inset, or insetGrouped.
531
573
532
574
## Usage
@@ -558,7 +600,7 @@ struct ContentView: View {
558
600
<details>
559
601
<summary> Navigation View </summary>
560
602
561
-
#MUINavigationView
603
+
## `MUINavigationView`
562
604
563
605
`MUINavigationView` is a custom navigation view that provides a MaterialUI-styled navigation bar.
0 commit comments