Adding curveEaseIn to Swift Animation
问题 I have an image that rotates but it stops abruptly. I'd like to add curveEaseOut to make it stop smoother, but when I add the animations: .curveEaseOut, I get an error. func rotateRight () { let rotation = 90.0 let transform = imageGearRight.transform let rotated = transform.rotated(by: CGFloat(rotation)) UIView.animate(withDuration: 0.5, animations: .curveEaseOut) { self.imageGearRight.transform = rotated } } I keep getting an error: Type '() -> Void' has no member 'curveEaseOut' I've also