Есть кастомная navigationButton с кодом:
fileprivate func navigationButton() {
let button = UIButton(type: .custom)
button.frame = CGRect(x: 0, y: 0, width: 600, height: 40)
button.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
button.setTitleColor(#colorLiteral(red: 0, green: 0, blue: 0, alpha: 1), for: .normal)
button.setTitle("какой-то текст", for: .normal)
button.addTarget(self, action: #selector(clickedButton), for: .touchUpInside)
self.navigationItem.titleView = button
}
функция clickedButton
вызывает Safari. Как сделать пульсирующую анимацию для этой кнопки с текстом “какой-то текст” на подобии https://media.giphy.com/media/3JUsda8zZiFvQD0ioo/giphy.gif?