What’s deprecated in the iOS 15 SDK
Same like “what’s new in the iOS SDK” it is also very important for the developers to know what’s deprecated in new iOS 15. It will help the developers to quickly test the apps against the API changes.
Maps :
MKPinAnnotationView and MapPin are marked as deprecated in this beta.
Framework : MapKit
Class : MKPinAnnotationView
Structure : MapPin
AVFoundation :
Framework : AVFoundation
Class : AVCapturePhotoOutput
Instance Method : supportedPhotoPixelFormatTypes(for:)
& supportedRawPhotoPixelFormatTypes(for:)
supportedPhotoPixelFormatTypes(for:) and supportedRawPhotoPixelFormatTypes(for:) now return [OSType] instead of [NSNumber] in Swift.
Framework : AVFoundation
Class : AVCaptureVideoDataOutput
Instance Method : recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:)
recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:) now returns nullable NSDictionary<NSString *, id> * instead of nullable NSDictionary * in Objective-C and [String: Any]? instead of [AnyHashable: Any]? in Swift
Framework : AVFoundation
Class : AVCapturePhoto
Instance Method : cgImageRepresentation() & previewCGImageRepresentation()
cgImageRepresentation() and previewCGImageRepresentation() now return CGImage? instead of Unmanaged<CGImage>? in Swift
Framework : AVFoundation
Class : AVCaptureAudioDataOutput
Instance Method : recommendedAudioSettingsForAssetWriter(writingTo:)
recommendedAudioSettingsForAssetWriter(writingTo:) now returns nullable NSDictionary<NSString *, id> * instead of nullable NSDictionary * in Objective-C and [String: Any]? instead of [AnyHashable: Any]
Networking :
Support for cleartext HTTP URL schemes for Proxy Automatic Configuration (PAC) is now deprecated. Use only HTTPS URL schemes for PAC.
Framework : Foundation
Class : URLSessionConfiguration
Instance Property: connectionProxyDictionary
Function : CFNetworkExecuteProxyAutoConfigurationURL(_:_:_:_:)
If you configure a cleartext HTTP PAC URL, the system may upgrade it to HTTPS during PAC file loads. Web Proxy Auto-Discovery (WPAD) Protocol via DNS isn’t affected.
SwiftUI :
Framework : SwiftUI
Structure : Button
Property : controlProminence
controlProminence is deprecated. Use the new .borderedProminent ButtonStyle instead
The Function (
Fn
) shortcut modifier is deprecated and reserved for system usage.
SharePlay :
SharePlay development in beta 7 and upcoming beta releases requires the installation of an updated SharePlay Development Profile.
If I missed anything please comment below.
Reference :
Apple Release Notes :
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-release-notes