Back
26 February

UIKeyboardWillHide has been renamed to UIResponder.keyboardWillHideNotification

  //4.0 Notification.Name.UIKeyboardWillHide //change to //4.2 UIResponder.keyboardWillHideNotification //4.0 Notification.Name.UIKeyboardWillChangeFrame //4.2 UIResponder.keyboardWillChangeFrameNotification //4.0 Notification.Name.UIApplicationWillResignActive //4.2 UIApplication.willResignActiveNotification //4.0 let keyboardScreenEndFrame = (userInfo[UIKeyboardFrameEndUserInfoKey] as! NSValue).cgRectValue //4.2 let keyboardScreenEndFrame = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue

16 October

MPMediaPickerController not working Swift 4.2

Update the delegate methods. //4.0 func mediaPicker(mediaPicker: MPMediaPickerController!, didPickMediaItems mediaItemCollection: MPMediaItemCollection!) { //4.2 func mediaPicker(_ mediaPicker: MPMediaPickerController, didPickMediaItems mediaItemCollection: MPMediaItemCollection) { //4.0 func mediaPickerDidCancel(mediaPicker: MPMediaPickerController!) { //4.2 func mediaPickerDidCancel(_ mediaPicker: …

10 October

UIViewAnimationOptions has been renamed to UIView.AnimationOptions

  //4.0 UIViewPropertyAnimator.runningPropertyAnimator(withDuration: self.transitionDuration(using: context)/2, delay: 0, options: UIViewAnimationOptions.curveLinear, animations: { //4.2 UIViewPropertyAnimator.runningPropertyAnimator(withDuration: self.transitionDuration(using: context)/2, delay: 0, options: UIView.AnimationOptions.curveLinear, animations: { If this helped you, share and pass it on! …

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 …