Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
maustinstar committed Jul 14, 2020
1 parent 1a9790f commit b0c57e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A SwiftUI bottom-up controller, like in the Maps app. Drag to expand or minimize

Add a dependency in your your `Package.swift`

`.package(url: "https://github.com/maustinstar/swiftui-drawer.git", from: "0.0.0"),`
`.package(url: "https://github.com/maustinstar/swiftui-drawer.git", from: "0.0.1"),`

## Usage

Expand All @@ -27,9 +27,10 @@ ZStack {

## Example 1


<img src=Previews/white-drawer.mov width=200 />

A multi-height drawer with haptic impact.

```
Drawer(heights: [100, 340, UIScreen.main.bounds.height - 40], impact: .light) {
ZStack {
Expand All @@ -53,6 +54,8 @@ Drawer(heights: [100, 340, UIScreen.main.bounds.height - 40], impact: .light) {

<img src=Previews/blue-drawer.mov width=200 />

A basic two-height drawer.

```
Drawer(heights: [100, 340]) {
Color.blue
Expand Down

0 comments on commit b0c57e5

Please sign in to comment.