G
Size: a a a
G
class MyTappableView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
let tapGR = UITapGestureRecognizer(target: self, action: #selector(showAnimation))
self.addGestureRecognizer(tapGR)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
@objc func showAnimation() {
// implement animation code here
}
}
A
AO
AO
ДЖ
ДЖ
ДЖ
ДЖ