Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Nullability annotations for public headers #66

Open
NKorchagin opened this issue Jun 22, 2016 · 0 comments
Open

Nullability annotations for public headers #66

NKorchagin opened this issue Jun 22, 2016 · 0 comments

Comments

@NKorchagin
Copy link

Ideally, all ObjC libraries using from Swift should have "nullability annotations" in their headers. These annotations describe the expected behavior of Objective-C pointers with respect to whether they would ever be nil in normal use. This lets the Swift importer figure out whether to import the symbol as an optional or not.
For headers that haven't been annotated, the importer always pulls it in as an implicitly-unwrapped optional (pretty much the worst option).

So, it would be good to add nullability annotations for public headers for proper using CardIO both in Obj-C and Swift codebases.

@card-io card-io deleted a comment Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants