-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Respond to moving the digital crown on the Apple Watch #265
Comments
Hi @andriy-appuchino. I don't think I ever considered the Digital Crown but it should be simple enough. I'll take a look at it next week |
@fermoya I haven't been able to find a solution, so I'll be waiting to see if you manage to implement it. Thanks a lot. |
By the way, I just tried to do something myself, I managed to get it to work, but it works a little clunky, not like the native scroll on watchOS.
|
@andriy-appuchino I'm not sure how this would work. Simulator.Screen.Recording.-.Apple.Watch.Series.7.-.45mm.-.2022-04-04.at.17.30.56.mp4 |
@fermoya Look at my example, the important part is to set |
@fermoya could you try please? |
Oh I see now what you mean. I'll come back to you shortly |
@andriy-appuchino check out 2.4.0-beta.1. Notice that this works with |
@fermoya Thank you for your efforts. I tried it, but it works about the same as my example. I'll try to clarify. Here I made an example to demonstrate the logic I mean: Simulator.Screen.Recording.-.Apple.Watch.Series.7.-.45mm.-.2022-04-05.at.18.21.50.mp4
You can try this code for yourself. If you do not have an Apple Watch, then on the watch simulator a digital crown rotating is triggered by moving two fingers. |
@andriy-appuchino I've been testing in a simulator, didn’t you see my first video? I haven’t merely copy-pasted your example if that’s what you suggest 😅
Any suggestions are more than welcome but this is the best it can be done as far as I can see. Feel free to fork the repo, peek the code ( |
Well, yes, that's right. When the value changes to a fractional, then you need to move the content as you do with a drag gesture, and when the value becomes a non-fractional number, then just consider it fired onEnded. |
All in all, it can't be done in a linear fashion so to speak, unfortunately. An |
OK, thank you. I already made a fork, I'll try to figure it out. I'll let you know if it works. |
Thanks @andriy-appuchino , all help is much appreciated. Keep me posted, I'd like to make a release within the next days. If you find some possible improv 8000 ement I'll include it |
new 2.4.0-beta.2 pushed |
Great, it works as it should! 🎉 |
@fermoya by the way, when will the release be? |
I'll make a release within 2-3 days tops most. I want to see if I can resolve an issue with a pipeline, first. Anyway, I'll make a comment here when the new version is out |
@fermoya I caught a bug. Initial:
Steps:
Expectations: Result: |
After switching the page with a swipe, you need to change the state of the digital crown |
Should be solved in beta-4 |
There was another problem on watchOS. If
|
@andriy-appuchino please open a new ticket, I think it's unrelated with this thread. seems to be working for me anyways: Simulator.Screen.Recording.-.Apple.Watch.Series.7.-.45mm.-.2022-04-08.at.15.08.16.mp4 |
Hello. Great job!
But I ran into a problem that the pager does not respond to moving the digital crown on the Apple Watch, as this usually works with ScrollView. Can I somehow enable digital crown support?
The text was updated successfully, but these errors were encountered: