I can't figure out how to not pass any options to the option:
parameter in UIView.animateWithDuration
In obj-C would simply pass 0
, but the compiler won't allow that. I've tried passing nil
, 0
, ()
, and _
. This is using the latest version of Swift with Xcode beta 7.1
Thanks
override func viewDidAppear(animated: Bool) {
UIView.animateWithDuration(3,
delay: 0,
usingSpringWithDamping: 1,
initialSpringVelocity: 0,
options: //what goes here??? ,
animations: { () -> Void in
let transform = CGAffineTransformMakeRotation(360)
self.titleLabel.transform = transform
},
completion: { (finished) -> Void in
})
}