//4.0 btnAction.setTitle(“Stop”, for: UIControlState.normal) //4.2 btnAction.setTitle(“Stop”, for: UIControl.State.normal) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 swipeDownGestureRecognizer.direction = UISwipeGestureRecognizerDirection.down //4.2 swipeDownGestureRecognizer.direction = UISwipeGestureRecognizer.Direction.down If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertControllerStyle.alert) //4.2 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertController.Style.alert) If this helped you, share and pass it on! …
//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!🐦➡️😀