SwiftyStoreKit: 'contentURL' and 'transaction' were deprecated in iOS 16.0: Hosted content is no longer supported

71 Views Asked by At

Xcode is warning me that 'contentURL' was deprecated in iOS 16.0: Hosted content is no longer supported and x'transaction' was deprecated in iOS 16.0: Hosted content is no longer supported...how can rewrite this SwiftyStoreKit block to silence the warning?

  SwiftyStoreKit.updatedDownloadsHandler = { downloads in
            
            // contentURL is not nil if downloadState == .finished
            let contentURLs = downloads.compactMap { $0.contentURL }
            if contentURLs.count == downloads.count {
                print("Saving: \(contentURLs)")
                SwiftyStoreKit.finishTransaction(downloads[0].transaction)
            }
        }
0

There are 0 best solutions below