UIView

extension UIView: AnyParallaxableView
  • Adds parallax motion effect to the view with default motion effect options

    Declaration

    Swift

    public func addParallaxMotionEffects()
  • Adds parallax motion effect to the view with passed options

    Declaration

    Swift

    public func addParallaxMotionEffects(with options: inout ParallaxEffectOptions)

    Parameters

    options

    Parallax motion effect options to customize the effect

  • Removes parallax motion effect from the view

    Declaration

    Swift

    public func removeParallaxMotionEffects(with options: ParallaxEffectOptions? = nil)

    Parameters

    options

    If parallax motion effect was added with custom options, the same options should be passed in this paramter to properly remove the effect