Here's a card I made last night in SwiftUI that uses the accelerometer to create a parallax effect.
There are 4 different effects being applied, two for the shadows, one for the card container, and one (inverted) for the image in the card.
Here’s a SwiftUI prototype that shows a transition between different densities on the iOS Home Screen.
I also added a magnification effect into the most condensed / zoomed out level.
Here’s an effect that uses the accelerometer in your airpods to create a parallax effect based on the angle of your head. This is similar to how spatial audio works but applied to an interface element instead.
Here’s an example of a dynamically lit UI element I built in SwiftUI.
You could swap out the simulated light source with data from the ambient light sensor to get an environmentally lit interface.