Skip to content

Commit

Permalink
Padronize periods and colons
Browse files Browse the repository at this point in the history
  • Loading branch information
joogps committed Nov 17, 2020
1 parent 00bada7 commit 2c3e8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This repository is a Swift package, so all you gotta do is search and include it

## Usage

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()`.
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()`:
```swift
.slideOverCard(isPresented: $isPresented) {
// Here goes your awesome content
Expand All @@ -46,7 +46,7 @@ Here, `$isPresented` is a boolean binding. This way you can dismiss the view any
}
```

In case you want to execute code when the view is dismissed (either by the exit button or drag controls), you can also set an optional `onDismiss` closure parameter.
In case you want to execute code when the view is dismissed (either by the exit button or drag controls), you can also set an optional `onDismiss` closure parameter:

```swift
// This card will print some text when dismissed
Expand Down

0 comments on commit 2c3e8cc

Please sign in to comment.