Skip to content
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

360° Support #4

Open
LeoNatan opened this issue Dec 24, 2017 · 5 comments
Open

360° Support #4

LeoNatan opened this issue Dec 24, 2017 · 5 comments

Comments

@LeoNatan
Copy link

Cool idea!

When looking at Apple’s implementation, the layer (or whatever they are using) is wrapping around, so it goes from gray back to color, whereas in the implementation here, once the layer is offset enough, the view will remain gray even as the phone is tilted more and more.

@efremidze
Copy link
Owner

efremidze commented Dec 26, 2017

I'm going to try to use a spherical gradient or replicator layer to replicate the behavior.

@LeoNatan
Copy link
Author

Sorry I missed your previous comment. Both approaches could work. With a spherical gradient, you just have to size the layer appropriately for 360° and offset it appropriately.

@efremidze efremidze changed the title Wrap layer aournd Wrap layer around Dec 28, 2017
@umarF
Copy link

umarF commented Dec 29, 2017

Yes please add 360° gradient, it will really help in case of holding device vertically in hand. Right now it just shows grey color while holding device vertically and moving.

@efremidze efremidze changed the title Wrap layer around 360° Support Dec 29, 2017
@efremidze
Copy link
Owner

I've added 360° support but I locked it to the vertical axis. Please take a look.

@umarF
Copy link

umarF commented Jan 25, 2018

Yes this is much more practical and suitable !
Awesome.

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

No branches or pull requests

3 participants