MSDynamicsDrawerParallaxStyler Class Reference
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
propertydrawerView
when thepaneView
is closed, as a fraction of the visible reveal width.
Other Methods
-
+ styler
Creates and returns a styler with default configuration.
-
– dynamicsDrawerViewController:didUpdatePaneClosedFraction:forDirection:
Invoked when the
MSDynamicsDrawerViewController
has an update to its pane closed fraction. -
– stylerWasRemovedFromDynamicsDrawerViewController:
Used to tear down the appearance of the styler when it is removed from a
MSDynamicsDrawerViewController
instance.
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 theMSDynamicsDrawerStyler
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 theMSDynamicsDrawerStyler
instance.
Declared In
MSDynamicsDrawerStyler.h