Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
maustinstar committed Jul 18, 2020
2 parents e8519b9 + 23e286d commit 2742d63
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Binary file added Previews/blue-drawer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Previews/blue-drawer.mov
Binary file not shown.
Binary file added Previews/white-drawer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Previews/white-drawer.mov
Binary file not shown.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A SwiftUI bottom-up controller, like in the Maps app. Drag to expand or minimize.

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

## Contents

Expand All @@ -21,7 +21,7 @@ A SwiftUI bottom-up controller, like in the Maps app. Drag to expand or minimize
Add a dependency in your your `Package.swift`

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

## Usage
Expand Down Expand Up @@ -128,7 +128,7 @@ Lock into a fixed position.
Drawer(heights: [100, 340]) {
Color.blue
}.locked($locked) {_ in
return current
return 30
}
```

Expand Down Expand Up @@ -162,7 +162,7 @@ Drawer(heights: [100, 340]) {

## Example 1

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

A multi-height drawer with haptic impact.

Expand All @@ -187,7 +187,7 @@ Drawer(heights: [100, 340, UIScreen.main.bounds.height - 40], impact: .light) {

## Example 2

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

A basic two-height drawer.

Expand Down

0 comments on commit 2742d63

Please sign in to comment.