-
Notifications
You must be signed in to change notification settings - Fork 194
2. How to use
Andrea Miotto edited this page Mar 1, 2022
·
4 revisions
Make sure you have installed the package before trying to use it. If you haven't go to the installation page
To use the Partial Sheet you need to follow just two simple steps
- Attach the Partial Sheet instance to your Root View in you
rootView.attachPartialSheetToRoot()
- Then in any view on the hierarchy you can use:
view
.partialSheet(isPresented: $isPresented) {
Text("Content of the Sheet")
}
In the example directory you can find more examples with more complex structures.