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

Overview

Creates a zoom-in scaling effect on the drawerView while sliding the paneView within a MSDynamicsDrawerViewController.

Tasks

Other Methods

  •   closedScale

    The amount that the drawerView is scaled when the paneView is closed. The drawerView is transformed from the closedScale when closed to 1.0 when open. 0.1 by default.

    property

Other Methods

Properties

closedScale

The amount that the drawerView is scaled when the paneView is closed. The drawerView is transformed from the closedScale when closed to 1.0 when open. 0.1 by default.

@property (nonatomic, assign) CGFloat closedScale

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