Kodeco Forums

Basic UIView Animation with Swift Tutorial

Learn the basics of UIView animation in Swift, including how to move and otherwise transform views in your apps.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/2312-basic-uiview-animation-with-swift-tutorial

.CurveEaseInOut | .AllowUserInteraction it’s not working for swift 2.1 "Type of expression is ambiguous without more context "

In Swift 2 most bitmasks have been replaced with option sets, so the values are defined like a set:

[.CurveEaseInOut, .AllowUserInteraction]

See documentation for OptionSetType.

1 Like

Thanks so much for this excellent tutorial which is just what I needed! The Apple developer document on CA is very comprehensive but totally intimidating until you’ve had the chance to play around with a basic use case like this - perfecto. I now feel equipped to tackle some of the more complex topics. :smiley:

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!