You can make the Framework optional (details and image from Ray Wenderlicht):
This, combined with your use of @available, should prevent the system from trying to load it on the devices where it is not available.
More Related Contents:
- the last UITableViewCell don’t have a separating line
- iOS 9 not opening Instagram app with URL SCHEME
- When should I compare an optional value to nil?
- UIScrollView Scrollable Content Size Ambiguity
- How do you find out the type of an object (in Swift)?
- Class does not implement its superclass’s required members
- Unable to find specific subclass of NSManagedObject
- SourceKitService Terminated
- Unable to use protocol as associatedtype in another protocol in Swift
- How do I take a full screen Screenshot in Swift?
- Swift add icon/image in UITextField
- How to modify SWIFT_MODULE_NAME?
- Array from dictionary keys in swift
- Swift 2.0 calendar components error
- Change Status Bar Background Color in Swift 3
- WKWebView does load resources from local document folder
- One timer per table view cell
- NSDate – Convert Date to GMT
- How to underline a UILabel in swift?
- Swift Equatable Protocol
- SwiftUI DatePicker Binding optional Date, valid nil
- Save and Load from KeyChain | Swift [duplicate]
- ActionSheet not working iPad
- Checking for multiple asynchronous responses from Alamofire and Swift
- Downloading UIImage via AlamofireImage? [duplicate]
- Swift Editor Placeholder in source file
- Maximum number of threads with async-await task groups
- How to draw a line in the simplest way in swift
- Alternate Icon in iOS 10.3
- main.async vs main.sync() vs global().async in Swift3 GCD