Day 4 of 5 Days Trouble Shooting 4.0 – 4.2 #Swift4.2 updates
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’
🤙🤚🏼
‘UISwipeGestureRecognizerDirection’ has been renamed to ‘UISwipeGestureRecognizer.Direction’
‘UIControlState’ has been renamed to ‘UIControl.State’
‘UIEdgeInsetsMake’ has been replaced by ‘UIEdgeInsets.init(top:left:bottom:right:)’
🎧▶️⏺
‘AVAudioSessionCategoryPlayAndRecord’ has been renamed to ‘AVAudioSession.Category.playAndRecord’
‘UIImageJPEGRepresentation’ has been replaced by instance method ‘UIImage.jpegData(compressionQuality:)’
‘UIViewAutoresizing’ has been renamed to ‘UIView.AutoresizingMask’
If this helped you, share and pass it on! 😀 ➡️ 🐦