Skip to content

Commit

Permalink
Edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
DouKing committed May 28, 2024
1 parent 12dd264 commit 2b09c31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Binary file added Example/demo.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 Example/demo.mp4
Binary file not shown.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

Provides a reactive way to observe the changes of the keyboard's frame using Swift Combine.

<video width="375" height="667" controls>
<source src="/Example/demo.mp4" type="video/mp4">
</video>
![demo](./Example/demo.gif)

## Requirements

Expand Down Expand Up @@ -47,7 +45,13 @@ override func viewWillDisappear(_ animated: Bool) {
Add the below line to your Package.swift file as a dependency:

```swift
.package(url: "https://github.com/DouKing/KeyboardObserver.git", branch: "main")
.package(url: "https://github.com/DouKing/KeyboardObserver.git", .upToNextMajor(from: "1.0"))
```

Normally you'll want to depend on the `KeyboardObserver` target:

```swift
.product(name: "KeyboardObserver", package: "KeyboardObserver")
```

## License
Expand Down

0 comments on commit 2b09c31

Please sign in to comment.