Reputation: 4838
In swift 3 update i am getting this error message
kindly let me know if there is any change in method call.
Thanks
Upvotes: 3
Views: 1693
Reputation: 9540
You need to use an array for curveEaseInOut
:
UIView.animate(withDuration: duration, delay: 0.0, option: [.curveEaseIn, .curveEaseOut], animations: { [weak self]() -> void in }
The curveEaseInOut
has been removed in Swift 3.0
, so here is the workaround to achieve the animation.
Upvotes: 8