niravdesai21
niravdesai21

Reputation: 4838

`curveEaseInOut` is Unavailable in Swift 3

In swift 3 update i am getting this error message enter image description here

kindly let me know if there is any change in method call.

Thanks

Upvotes: 3

Views: 1693

Answers (1)

Sohel L.
Sohel L.

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

Related Questions