deskside / emodiary

0 stars 0 forks source link

SPM | SlideOverCard #17

Closed deskside closed 1 year ago

deskside commented 1 year ago

Github Repo

You can add a card to your app in two different ways. The first one is by adding a .slideOverCard() modifier, which works similarly to a .sheet():

.slideOverCard(isPresented: $isPresented) {
  // Here goes your awesome content
}

Here, $isPresented is a boolean binding. This way you can dismiss the view anytime by setting it to false.

deskside commented 1 year ago

This is not running elegantly when I use a SwiftUI TabView. I abandon this.