Skip to content

Conversation

@pawan-joshi
Copy link

Source updated for Swift v5

pawan-joshi and others added 2 commits January 15, 2020 14:03
Co-Authored-By: Mustafa GÜNEŞ <gunes149@gmail.com>
Co-Authored-By: Mustafa GÜNEŞ <gunes149@gmail.com>
fileprivate func showTitle(_ animated:Bool) {
let dur = animated ? animationDuration : 0
UIView.animate(withDuration: dur, delay:0, options: [UIViewAnimationOptions.beginFromCurrentState, UIViewAnimationOptions.curveEaseOut], animations:{
UIView.animate(withDuration: dur, delay:0, options: [UIView.AnimationOptions.beginFromCurrentState, UIView.AnimationOptions.curveEaseOut], animations:{

Choose a reason for hiding this comment

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

Suggested change
UIView.animate(withDuration: dur, delay:0, options: [UIView.AnimationOptions.beginFromCurrentState, UIView.AnimationOptions.curveEaseOut], animations:{
UIView.animate(withDuration: dur, delay:0, options: [.beginFromCurrentState, .curveEaseOut], animations: {

this is the correct usage :)

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