//4.0 scrollView.autoresizingMask = UIViewAutoresizing(rawValue: UIViewAutoresizing.RawValue(UInt8(UIViewAutoresizing.flexibleWidth.rawValue) | UInt8(UIViewAutoresizing.flexibleHeight.rawValue))) //4.2 scrollView.autoresizingMask = UIView.AutoresizingMask(rawValue: UIView.AutoresizingMask.RawValue(UInt8(UIView.AutoresizingMask.flexibleWidth.rawValue) | UInt8(UIView.AutoresizingMask.flexibleHeight.rawValue))) If this helped you, share and pass it on! 😀 ➡️ 🐦
Here are some more of the updates I came across: 🤓 ‘UIFontTextStyle’ has been renamed to ‘UIFont.TextStyle’ 🚨 ‘UIAlertControllerStyle’ has been renamed to ‘UIAlertController.Style’ ‘UIAlertActionStyle’ has been renamed to ‘UIAlertAction.Style’ …
//4.0 textViewContent.font = UIFont.preferredFont(forTextStyle: UIFontTextStyle.body) //4.2 textViewContent.font = UIFont.preferredFont(forTextStyle: UIFont.TextStyle.body) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 addChildViewController(obj) //4.2 addChild(obj)
//4.0 particleEmitter.renderMode = kCAEmitterLayerAdditive //4.2 particleEmitter.renderMode = CAEmitterLayerRenderMode.additive
//4.0 particleEmitter.emitterShape = kCAEmitterLayerLine //4.2 particleEmitter.emitterShape = CAEmitterLayerEmitterShape.line
//4.0 stackView.distribution = UIStackViewDistribution.fillEqually //4.2 stackView.distribution = UIStackView.Distribution.fillEqually If this helped you, share and pass it on!🐦➡️😀
//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! 😀 ➡️ 🐦