ParallaxMotionEffect
open class ParallaxMotionEffect : UIMotionEffect
A UIMotionEffect subclass that makes parallax motion effect by applying custom transformation. Allows to customize the motion effect.
-
How far camera is from the object
Declaration
Swift
open var cameraPositionZ: CGFloat
-
The maximum angle horizontally
Declaration
Swift
open var viewingAngleX: CGFloat
-
The maximum angle vertically
Declaration
Swift
open var viewingAngleY: CGFloat
-
Maximum deviation relative to the center
Declaration
Swift
open var panValue: CGFloat
-
Perspective value. The closer is to 0 the deepest is the perspective
Declaration
Swift
open var m34: CGFloat
-
Undocumented
Declaration
Swift
override open func keyPathsAndRelativeValues(forViewerOffset viewerOffset: UIOffset) -> [String : Any]?