Skip to content

Commit

Permalink
Change README example order
Browse files Browse the repository at this point in the history
  • Loading branch information
joogps authored Nov 15, 2020
1 parent 0b3816a commit 793ffaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ You can add a card to your app in two different ways. The first one is by adding

Here, `$isPresented` is a boolean binding. This way you can dismiss the view anytime by setting it to `false`. This view will have a transition, drag controls and an exit button set by default. You can override this by setting the `dragEnabled`, `dragToDismiss` and `displayExitButton` boolean parameters:
```swift
// This creates a card that can be dragged, but can't be dismissed
.slideOverCard(isPresented: $isPresented, dragToDismiss: false) {
}

// This creates a card that can't be dragged
.slideOverCard(isPresented: $isPresented, dragEnabled: false) {
}

// This creates a card that can be dragged, but can't be dismissed
.slideOverCard(isPresented: $isPresented, dragToDismiss: false) {
}

// This creates a card with no exit button
.slideOverCard(isPresented: $isPresented, displayExitButton: false) {
}
Expand Down

0 comments on commit 793ffaf

Please sign in to comment.