Commit a0167902 by Daniel Dahan

development: updated Motion API with Spring animations.

parent 3de00ac0
Subproject commit a8b1aa0eb2c5ad5b5a6358815d94e40ca89b82f8
Subproject commit aad47c6df1c5159021ff351f3c944d9c7c18278e
......@@ -33,6 +33,15 @@ import Motion
extension MotionAnimation {
/**
Animates the view's current shadow offset to the given one.
- Parameter offset: A CGSize.
- Returns: A MotionAnimation.
*/
public static func shadow(offset: Offset) -> MotionAnimation {
return .shadow(offset: offset.asSize)
}
/**
Animates the views shadow offset, opacity, and radius using a DepthPreset.
- Parameter _ preset: A DepthPreset.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment