Skip to content

Commit

Permalink
Adding readme notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Moya de Rivas committed Jan 22, 2020
1 parent 824efee commit eb4ebf8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ By default, `Pager` will create a horizontal container. Use `vertical` to create

```swift
Pager(...)
.
.vertical()
```

<img src="resources/vertical-pager.gif" alt="PageAspectRatio greater than 1" height="640"/>

### Animations

Use `interactive` to pass a shrink ratio that will be applied to those components that are not focused, that is, those elements whose index is different from `pageIndex` binding:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/fermoya/SwiftUIPager",
"state": {
"branch": "feat/vertical-pagintation",
"revision": "aad4a989cd25b7e1e0605e28edcf36e6b2fcd88e",
"revision": "824efeeaac08717ef7d1aefc5037c3e3f32736e6",
"version": null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct ContentView: View {
.interactive(0.8)
.itemSpacing(10)
.padding(8)
.itemAspectRatio(0.6)
.itemAspectRatio(1.5)
.vertical()
.border(Color.red, width: 2)
.frame(width: min(proxy.size.width,
Expand Down
Binary file added resources/vertical-pager.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb4ebf8

Please sign in to comment.