TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | Apache 2 |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Jeff Verkoeyen.
Reactive motion driven by Core Animation.
This library includes a variety of ready-to-use interactions. Interactions are registered to an instance of MotionRuntime
:
// Store me for as long as the interactions should take effect.
let runtime = MotionRuntime(containerView: <#view#>)
Import the framework:
import MaterialMotion
You will now have access to all of the APIs.
Check out a local copy of the repo to access the Catalog application by running the following commands:
git clone https://github.com/material-motion/material-motion-swift.git
cd material-motion-swift
pod install
open MaterialMotion.xcworkspace
A carousel with pages that scale in and fade out in reaction to their scroll position.
A contextual view can be used to create continuity during transitions between view controllers. In this case study the selected photo is the contextual view. It’s possible to flick the view to dismiss it using the tossable interaction.
Makes use of: Draggable
, Tossable
, Transition
, TransitionSpring
, Tween
.
A floating action button transition is a type of contextual transition that animates a mask outward from a floating button.
Makes use of: Transition
and Tween
.
A Material Design transition using asymetric transformations.
Makes use of: Tween
.
A modal dialog that’s presented over the existing context and is dismissable using gestures.
Makes use of: Tossable
and TransitionSpring
.
A modal scroll view controller that can be dismissed with a drag gesture.
Makes use of: Tossable
and TransitionSpring
.
Each sticker is individually directly manipulable, meaning they can be dragged, rotated, and scaled using multitouch gestures.
Makes use of: DirectlyManipulable
.
We welcome contributions!
Check out our upcoming milestones.
Learn more about our team, our community, and our contributor essentials.
Licensed under the Apache 2.0 license. See LICENSE for details.