Here are thirty-eight of the updates I came across: ‘UIKeyboardWillHide’ has been renamed to ‘UIResponder.keyboardWillHideNotification’ ‘init(activityIndicatorStyle:)’ has been renamed to ‘init(style:)’ Cannot call value of non-function type ‘UNNotificationSound’ ‘UIApplicationOpenSettingsURLString’ has …
1 2 3 4 |
//4.0 //4.0 let spinner = UIActivityIndicatorView(activityIndicatorStyle: .gray) spinner.startAnimating() |
1 2 3 4 |
//4.2 //4.2 let spinner = UIActivityIndicatorView(style: .gray) spinner.startAnimating() |
If this helped you, share and pass it on! 😀 ➡️ 🐦
Here are some of the updates I came across: ‘UIKeyboardWillHide’ has been renamed to ‘UIResponder.keyboardWillHideNotification’ ‘init(activityIndicatorStyle:)’ has been renamed to ‘init(style:)’ Cannot call value of non-function type ‘UNNotificationSound’ ‘UIApplicationOpenSettingsURLString’ has …
1 2 3 4 5 6 |
//4.0 if let possibleImage = info[UIImagePickerControllerEditedImage] as? UIImage { newImage = possibleImage } else { return } |
1 2 3 4 5 6 7 |
//4.2 guard let possibleImage = info[.originalImage] as? UIImage else { fatalError("Expected a dictionary containing an image, but was provided the following: \(info)") return } newImage = possibleImage |
1 2 3 4 5 6 7 8 |
//4.0 guard let settingsUrl = URL(string: UIApplicationOpenSettingsURLString) else { return } //4.2 guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return } |
If this helped you, share and pass it on! 😀 ➡️ 🐦
1 2 3 |
//4.0 private func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { var newImage: UIImage |
1 2 3 |
//4.2 @objc private func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { var newImage: UIImage |
1 2 3 4 |
//4.0 content.sound = UNNotificationSound.default() //4.2 content.sound = UNNotificationSound.default |
1 2 |
//4.0 viewObj.didMove(toParentViewController: self) |
1 2 |
//4.2 viewObj.didMove(toParent: self) |
If this helped you, share and pass it on!