Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Expose active page index (as binding)? #1

Open
tkafka opened this issue May 24, 2022 · 2 comments
Open

Expose active page index (as binding)? #1

tkafka opened this issue May 24, 2022 · 2 comments

Comments

@tkafka
Copy link

tkafka commented May 24, 2022

Hello, I love SwiftUIPageview, but I would like to add a row of dots underneath, showing the number of pages and active page.

I think that exposing an active page index (as a binding) could be enough to do this. Either Int (just for a simple animation) or as a CGFloat (to be able to animate the dots proportionally to how the user is swiping the page).

What do you think?

@GustasCodes
Copy link

I need this feature as well.

@tkafka
Copy link
Author

tkafka commented Jun 22, 2022

I added a rough pull request here: #3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants