Inherits from NSObject
Conforms to MSDynamicsDrawerStyler
Declared in MSDynamicsDrawerStyler.h
MSDynamicsDrawerStyler.m

Overview

Creates a parallax effect on the drawerView while sliding the paneView within a MSDynamicsDrawerViewController.

Tasks

Other Methods

  •   parallaxOffsetFraction

    The amount that the parallax should offset the drawerView when the paneView is closed, as a fraction of the visible reveal width.

    property

Other Methods

Properties

parallaxOffsetFraction

The amount that the parallax should offset the drawerView when the paneView is closed, as a fraction of the visible reveal width.

@property (nonatomic, assign) CGFloat parallaxOffsetFraction

Discussion

0.35 by default.

Declared In

MSDynamicsDrawerStyler.h

Class Methods

styler

Creates and returns a styler with default configuration.

+ (instancetype)styler

Declared In

MSDynamicsDrawerStyler.h

Instance Methods

dynamicsDrawerViewController:didUpdatePaneClosedFraction:forDirection:

Invoked when the MSDynamicsDrawerViewController has an update to its pane closed fraction.

- (void)dynamicsDrawerViewController:(MSDynamicsDrawerViewController *)dynamicsDrawerViewController didUpdatePaneClosedFraction:(CGFloat)paneClosedFraction forDirection:(MSDynamicsDrawerDirection)direction

Parameters

dynamicsDrawerViewController

The MSDynamicsDrawerViewController that is being styled by the MSDynamicsDrawerStyler instance.

paneClosedFraction

The fraction that MSDynamicsDrawerViewController instance’s pane is closed. 1.0 when closed, 0.0 when opened.

direction

The direction that the MSDynamicsDrawerViewController instance is opening in. Will not be masked.

Declared In

MSDynamicsDrawerStyler.h

stylerWasRemovedFromDynamicsDrawerViewController:

Used to tear down the appearance of the styler when it is removed from a MSDynamicsDrawerViewController instance.

- (void)stylerWasRemovedFromDynamicsDrawerViewController:(MSDynamicsDrawerViewController *)dynamicsDrawerViewController

Parameters

dynamicsDrawerViewController

The MSDynamicsDrawerViewController that was being styled by the MSDynamicsDrawerStyler instance.

Declared In

MSDynamicsDrawerStyler.h