LookingGlassUI

0.1.7

A realistic reflective shimmer to SwiftUI Views that uses device orientation. Position any View relative to device orientation to appear as if through a window or reflected by the screen.
ryanlintott/LookingGlassUI

What's New

v0.1.7

2021-08-05T01:08:44Z

Initial release. Although currently in use in one of my production apps it may not work perfectly in your use case.

LookingGlassUI

A SwiftUI view 3d rotation effect modifier that's connected to core motion and allows views to appear projected in a specific direction relative to the device in real space.

In window mode a view appears as if your phone is a window looking into a 3d environment. In reflection mode a view appears as if your phone has a camera pointing out of the screen back at a 3d envrionment. It's not a true reflection as it doesn't take into account the viewer's eye location but it's a useful approximation.

Views are positioned based on a quaternion or simple pitch, roll, and yaw angles. All angles at zero means the view will be visible when the phone is flat with the top pointing away from the user. Pitch of 90 degrees will bring the view up directly in front of the user. Yaw will move the view to the left or right. Roll will rock the vew down to the right or left.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Wed Nov 24 2021 17:56:00 GMT-0500 (GMT-05:00)