Back
10 October

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 …