Releases: material-motion/motion-transitioning-objc
v3.2.0
This minor release introduces new features for presentation, view snapshotting, and defered transition work. There is also a new photo album example demonstrating how to build a contextual transition in which the context may change.
New features
Transition context now has a deferToCompletion:
API for deferring work to the completion of the transition.
// Example (Swift):
foreImageView.isHidden = true
context.defer {
foreImageView.isHidden = false
}
MDMTransitionPresentationController
is a presentation controller that supports presenting view controllers at custom frames and showing an overlay scrim view.
The new MDMTransitionViewSnapshotter
class can be used to create and manage snapshot views during a transition.
let snapshotter = TransitionViewSnapshotter(containerView: context.containerView)
context.defer {
snapshotter.removeAllSnapshots()
}
let snapshotView = snapshotter.snapshot(of: view, isAppearing: context.direction == .forward)
Source changes
- Add a snapshotting API and contextual transition example (#37) (featherless)
- Store the presentation controller as a weak reference. (#34) (featherless)
- Add a stock presentation controller implementation. (#35) (featherless)
- Minor formatting adjustment. (Jeff Verkoeyen)
API changes
MDMTransitionContext
new method: deferToCompletion:
. Defers execution of the provided work until the completion of the transition.
MDMTransitionPresentationController
new class: MDMTransitionPresentationController
. A transition presentation controller implementation that supports animation delegation, a darkened overlay view, and custom presentation frames.
MDMTransitionViewSnapshotter
new class: MDMTransitionViewSnapshotter
. A view snapshotter creates visual replicas of views so that they may be animated during a transition without adversely affecting the original view hierarchy.
Non-source changes
- Add photo album example. (#38) (featherless)
- Add some organization to the transition examples. (#36) (featherless)
v3.1.0
This minor release resolves a build warning and introduces the ability to customize navigation
controller transitions.
New features
- MDMTransitionNavigationControllerDelegate makes it possible to customize transitions in a
UINavigationController.
Source changes
- Add transition navigation controller delegate (#29) (featherless)
- Fix null dereference caught by the static analyzer (#30) (ianegordon)
API changes
MDMTransitionNavigationControllerDelegate
new class: MDMTransitionNavigationControllerDelegate.
v3.0.1
v3.0.0
v2.0.0
The library has been renamed to MaterialMotionTransitioning.
New features
TransitionContext
now exposes apresentationController
property.
Source changes
- Rename the library to MaterialMotionTransitioning. (Jeff Verkoeyen)
- Expose the presentation controller in TransitionContext (#26) (Eric Tang)
API changes
Auto-generated by running:
apidiff origin/stable release-candidate objc src/MaterialMotionTransitioning.h
MDMTransitionContext
new property: presentationController
in MDMTransitionContext
Non-source changes
- Set version to 1.0.0. (Jeff Verkoeyen)
v1.1.1
This is a patch fix release to address build issues within Google's build environment.
Source changes
- Add missing UIKit.h header imports. (Jeff Verkoeyen)
Non-source changes
- Update Podfile.lock. (Jeff Verkoeyen)
- Add sliding menu as an example (#21) (Eric Tang)
v1.1.0
This minor release introduces two new features to the Transition protocol family.
New features
- Add support for fallback transitioning. (#16) (featherless)
- Add support for customizing transition durations (#11) (Eric Tang)
API changes
MDMTransitionWithFallback
new protocol: MDMTransitionWithFallback
new method: -fallbackTransitionWithContext:
in MDMTransitionWithFallback
MDMTransitionWithCustomDuration
new protocol: MDMTransitionWithCustomDuration
new method: -transitionDurationWithContext:
in MDMTransitionWithCustomDuration
MDMTransitionController
new property: activeTransition
in MDMTransitionController
v1.0.0
Initial release.
Includes support for building simple view controller transitions and transitions that support custom presentation.
Source changes
- Clarify the docs for default modal presentation styles. (#4) (featherless)
- Initial implementation. (#1) (featherless)
Non-source changes
- Simplify the frame calculation APIs in the example. (#5) (featherless)