Solution: Here the code is for blink the text for the UILabel in iOS swift. extension UILabel { func blink() { self . alpha = 0.0 ; UIView . animate (withDuration: 0.8 , //Time duration you want, delay: 0.0 , options: [. curveEaseInOut , . autoreverse , . repeat ], animations: { [weak self ] in self ?. alpha = 1.0 }, completion: { [weak self ] _ in self ?. alpha = 0.0 }) } } Then call the function with the below code the label will e blink. label. blink ()