UPcload / FitAnalytics-WebWidget-iOS

FitAnalytics WebWidget SDK for iOS
MIT License
4 stars 5 forks source link

FITAPurchaseReporter sendReport error incorrectly annotated as nonnull #3

Closed bobergj closed 6 years ago

bobergj commented 6 years ago

In Swift the generated interface becomes:

open func send(_ report: FITAPurchaseReport, done: ((Error) -> Swift.Void)? = nil) -> Bool

So one cannot check if the error is nil.

bobergj commented 6 years ago

Btw, the parameter name "completionHandler" is the platform convention for what you call "done".