//4.0 obj.removeFromParentViewController() //4.2 obj.removeFromParent()
//4.0 let subtitleAttributes = [NSAttributedStringKey.font: UIFont.preferredFont(forTextStyle: UIFontTextStyle.subheadline)] //4.2 let subtitleAttributes = [NSAttributedString.Key.font: UIFont.preferredFont(forTextStyle: UIFont.TextStyle.subheadline)] If this helped you share on your favourite social media. ➡️ 🐦
//4.0 return UITableViewAutomaticDimension //4.2 return UITableView.automaticDimension If this helped you, share and pass it on! 😀 ➡️ 🐦
Here are some of the updates I came across: Here are some of the updates I came across: 👨👦😢 ‘removeFromParentViewController()’ has been renamed 🧒🏻📱 ‘addChildViewController’ has been renamed to ‘addChild(_:)’ …
//4.0 let pngData = UIImagePNGRepresentation(croppedImage) //4.2 let pngData = croppedImage.pngData() If this helped you, share and pass it on! 😀 ➡️ 🐦
Here are some of the updates I came across: Instance method ‘imagePickerController(_:didFinishPickingMediaWithInfo:)’ nearly matches optional requirement ‘imagePickerController(_:didFinishPickingMediaWithInfo:)’ of protocol ‘UIImagePickerControllerDelegate’ ‘UIImagePNGRepresentation’ has been replaced by instance method ‘UIImage.pngData()’ ‘UIImagePickerControllerEditedImage’ has …
//4.0 func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { //4.1 func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
//4.0 guard let image = info[UIImagePickerControllerEditedImage] as? UIImage else { return } //4.1 guard let image = info[UIImagePickerController.InfoKey.editedImage] as? UIImage else { return }
//4.0 image = image?.withRenderingMode(UIImageRenderingMode.alwaysOriginal) //4.2 image = image?.withRenderingMode(UIImage.RenderingMode.alwaysOriginal)
//4.0 cell.accessoryType = UITableViewCellAccessoryType.none //4.2 cell.accessoryType = UITableViewCell.AccessoryType.none