UIControlEvents has been renamed to UIControl.Event
//4.0 let manyEvents: [UIControlEvents] = [.touchCancel, .touchUpInside, .touchDown, .touchDownRepeat, .touchUpOutside, .touchDragEnter,.touchDragExit, .touchDragInside, .touchDragOutside]
//4.2 let manyEvents: [UIControl.Event] = [.touchCancel, .touchUpInside, .touchDown, .touchDownRepeat, .touchUpOutside, .touchDragEnter,.touchDragExit, .touchDragInside, .touchDragOutside]
If this helped you, share and pass it on! 😀 ➡️ 🐦