rotate image animated swift
extension UIView{
func rotate() {
let rotation : CABasicAnimation = CABasicAnimation(keyPath: "transform.rotation.z")
rotation.toValue = NSNumber(value: Double.pi * 2)
rotation.duration = 1
rotation.isCumulative = true
rotation.repeatCount = Float.greatestFiniteMagnitude
self.layer.add(rotation, forKey: "rotationAnimation")
}
}
Also in Swift:
- swift share with
- get files with file type swift
- disable commit editing style swift
- hide status bar ios
- change the title of a button using Swift
- generate hmac swift
- loop backwards swift
- filter text list swiftui
- how to Not bool bindng swiftui
- swift get device screen size
- alertdialog flutter
- swift compare string to button title
- swift VStack
- swift textfield trim special characters before database
- swift get day from available string
- get presented view controller swift
- swift string concatenation
- swiftui font color
- deselect all cell in collectionview
- switches xcode
- index string swift
- string.format swift
- array of button listeners swift
- reverse list swift