Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Swift 4.2 #16

Open
vishalwaka opened this issue Jan 25, 2019 · 1 comment
Open

Not compatible with Swift 4.2 #16

vishalwaka opened this issue Jan 25, 2019 · 1 comment

Comments

@vishalwaka
Copy link

Since signature for this method is changed:
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool

This method cannot be called properly.
TCTrueSDK.sharedManager().application(application, continue: userActivity, restorationHandler: restorationHandler)

restorationHandler in the above method should be of ([Any]?) -> Void type and it is not being converted from ([UIUserActivityRestoring]?) -> Void .

@parth0907
Copy link

Hi There,

Hope you are doing great!

First of all we highly apologies for the delay in response.

The issue that you mention is work in progress at our end. We will update you as soon as we release the fix for the same.

As an interim solution you can use the below snippet :

return TCTrueSDK.sharedManager().application(application, continue: userActivity, restorationHandler: restorationHandler as? ([Any]?) -> Void)

Please feel free to write back via our support channel for a faster and dedicated response in case you face any confusion/issues, we will be happy to answer!

-Parth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants