Whats the Swift animate WithDuration syntax?
问题 I'm porting an older app over to Xcode 7 beta and I'm getting an error on my animations: Cannot invoke 'animateWithDuration' with an argument list of type '(Double, delay: Double, options: nil, animations: () -> _, completion: nil)' Here's the code: UIView.animateWithDuration(0.5, delay: 0.3, options: nil, animations: { self.username.center.x += self.view.bounds.width }, completion: nil) This works in Xcode 6 so I'm assuming this is an update in Swift. So my question is: What's the Swift 3