Skip to content

2. How to use

Andrea Miotto edited this page Mar 1, 2022 · 4 revisions

How to Use

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

  1. Attach the Partial Sheet instance to your Root View in you
rootView.attachPartialSheetToRoot()
  1. Then in any view on the hierarchy you can use:
view
    .partialSheet(isPresented: $isPresented) {
        Text("Content of the Sheet")
     }

Examples

In the example directory you can find more examples with more complex structures.

Clone this wiki locally