The black magic.
The developer was able to get the application interface on the iPhone to respond to the magnets.
This is done using a small model that reads the data from the built-in magnetometer and tells the interface elements where the magnet is right now.
Magnetic UI was originally made for SwiftUI, but the authors also added the ability to implement it on Android.
#game