YapDatabase icon indicating copy to clipboard operation
YapDatabase copied to clipboard

Nullability annotations on YapDatabaseCloudKitRecordHandler blocks

Open gardnermj opened this issue 9 years ago • 2 comments

I believe the record handler type signatures in Extensions/CloudKit/YapDatabaseExtensionTypes.h (YapDatabaseCloudKitRecordWithKeyBlock, etc) have the wrong nullability annotations, which is breaking things for Swift 3 projects.

See: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160919/003342.html

gardnermj avatar Sep 20 '16 19:09 gardnermj

What is the correct nullability annotation ?

robbiehanson avatar Sep 21 '16 21:09 robbiehanson

I'm no ObjC expert, but based on what Jordan wrote I think they just need to be reversed, i.e. to CKRecord *_Nullable *_Nonnull inOutRecordPtr.

gardnermj avatar Sep 21 '16 21:09 gardnermj