This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9051-beginning-ios-animations/lessons/3
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9051-beginning-ios-animations/lessons/3
In the Playground, replacing:
let icecreamOptions: UIView.AnimationOptions = [.curveEaseInOut]
with
let icecreamOptions: UIView.AnimationOptions = [.linear]
Gives the error:
Type 'UIView.AnimationOptions' has no member 'linear'
I believe .linear
has been renamed to .curveLinear
.
@errorfreeit The Apple documentation mentions curveLinear
for AnimationOptions
:
https://developer.apple.com/documentation/uikit/uiview/animationoptions/1622478-curvelinear
I hope it helps!
Thanks for the quick reply. So others don’t run into this it would be a good idea to correct the Options.playground file.
@catie Can you please help with this when you get a chance? Thank you - much appreciated! :]
Slight problem with the downloadable content. If continuing on from the previous tutorial, the menu button is linked to an outlet called “buttonMenu” not “menuButton” and so the code doesn’t work. Changing the name breaks the outlet connection, so it needs to be deleted and then reconnected on the storyboard.
@catie @jessycatterwaul Can you please fix this when you get a chance? Thank you - much appreciated! :]