amplitude / amplitude/Amplitude-iOS

Add nullability marks for better Swift compatibility

Offen
#196 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Objective-C
Sterne
328
Forks
194
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

It's better to mark properties and parameters nullability in your Objective-C SDK. Please, look at [the article](https://developer.apple.com/documentation/swift/objective-c_and_c_code_customization/designating_nullability_in_objective-c_apis), or at the [other one](https://developer.apple.com/swift/blog/?id=25) where it's explained.

A quick example — I don't know am I allowed to pass `nil` as `value` of `AMPIdentify().set("key", value: isNilValueAllowedHere)`

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.