SASParallaxInfos

Objective-C

@interface SASParallaxInfos : NSObject

Swift

class SASParallaxInfos : NSObject

Informations needed to configure the parallax effect manually.

  • Initializes a new SASParallaxInfos instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithViewportTopOrigin:(CGFloat)topOrigin
                                       viewportHeight:(CGFloat)height;

    Swift

    init(viewportTopOrigin topOrigin: CGFloat, viewportHeight height: CGFloat)

    Parameters

    topOrigin

    The vertical origin of the parallax viewport relative to UIScreen. The viewport represents the whole area where the parallax should be displayed. For example, if you don’t want to include status and the navigation bars, the top origin should be 64pts.

    height

    The height of the parallax viewport relative to UIScreen.

    Return Value

    An initialized instance of SASParallaxInfos.