Skip to content

Example of how to add an offset to an image, according to the movement of the device.

Notifications You must be signed in to change notification settings

adrianorezena/SwiftUI-Parallax-Motion-Effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUI Parallax Motion Effect

Example of how to add an offset to an image, according to the movement of the device.
It uses the CMMotionManager to monitor the device's movements, moving the background image and the shadow applied to the text.



Designed to test different features in SwiftUI Views.
**© Adriano Cosme Rezena | 2023**

About

Example of how to add an offset to an image, according to the movement of the device.

Topics

Resources

Stars

Watchers

Forks

Languages