appcues / appcues-ios-sdk

The Appcues iOS SDK
https://www.appcues.com/mobile
MIT License
8 stars 2 forks source link

Ensure Xcode 16/iOS 18 compiles #554

Closed mmaatttt closed 1 month ago

mmaatttt commented 1 month ago

As noted in #549, there's a compile error for Xcode 16/iOS 18 caused by the addition of @MainActor @Sendable to UIApplication.open(_:options:completionHandler:). To maintain backwards compatibility I've added a different function to the protocol and then called UIApplication.open instead of updating the protocol to include @MainActor @Sendable.

Also updated tests to pass.

We still need to complete a wider audit of things on iOS 18 to ensure there's no issues, but this ensures teams aren't blocked by a compile error.