nathangitter / fluid-interfaces
- вторник, 7 августа 2018 г. в 00:15:47
Swift
Natural gestures and animations inspired by Apple's WWDC18 talk "Designing Fluid Interfaces"
At WWDC 2018, Apple designers gave a talk titled "Designing Fluid Interfaces", explaining the design theory behind the gesture-based interface of iPhone X. (The presentation is available here: Designing Fluid Interfaces)
It was an outstanding talk, inspiring designers and developers to think about animated interfaces in a new way. While some technical guidance was provided, most code-level implementation details were ommitted.
The goal with this project is to bridge the gap between inspiration and implementation.
Download or clone the repo and open the FluidInterfaces.xcodeproj
file with Xcode 10.
If you are using Xcode 9, switch to the branch named "Xcode9".
A button that mimics the behavior of buttons in the iOS Calculator app.
A demo showing the ability to define a spring animation with "design-friendly" parameters.
A button that mimics the behavior of the flashlight button on the lockscreen of iPhone X.
A demo showing how to implement rubberbanding.
A demo of using a gesture's acceleration to quickly detect when the user's motion has paused.
A drawer with an open and closed state which has bounciness dependent on the velocity of the gesture.
A re-creation of the picture-in-picture UI of the iOS FaceTime app.
A demo showing how the concepts from the PiP interface can apply to other animations.
You can find me on Twitter @nathangitter
© 2018 Nathan Gitter