Skip to content

Conversation

@jjvarghese
Copy link

I added a no-fuss convenience method for animating any Springable adhering object - just by specifying the animation type as a parameter instead of first needing to set the .animation property as a string. It includes an optional completion handler and a basic test.

I am not sure if this project is still maintained but as I used this for my project I thought I would pull-request it. Cheers!

// UIView
private var layer : CALayer { return view.layer }
private var transform : CGAffineTransform { get { return view.transform } set { view.transform = newValue }}
private var alpha: CGFloat { get { return view.alpha } set { view.alpha = newValue } }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waht's this means,test msg

// UIView
private var layer : CALayer { return view.layer }
private var transform : CGAffineTransform { get { return view.transform } set { view.transform = newValue }}
private var alpha: CGFloat { get { return view.alpha } set { view.alpha = newValue } }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test msg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants