I
Size: a a a
I
DK
DK
НС
for (index, btn) in btns.enumerated() {
let longPress = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gesture:)))
longPress.minimumPressDuration = 3
btn.addGestureRecognizer(longPress)
let radius = min(btn.bounds.maxX, btn.bounds.maxY) / 2
btn.layer.cornerRadius = radius
btn.backgroundColor = backgroundColors[index]
}
@objc func longPress(gesture: UILongPressGestureRecognizer) {
if gesture.state == .began {
}
}
DK
DK
DK
НС
DK
Y
S
Y
DK
DK
DK