Missing vars in Swift-ified interface
Missing vars in Swift-ified interface
- Subject: Missing vars in Swift-ified interface
- From: Jens Alfke <email@hidden>
- Date: Thu, 25 Feb 2016 09:29:34 -0800
I’m examining the Swift interface exposed by my Objective-C API, and I discovered that one class has two properties mysteriously missing. Here’s the start of the Obj-C interface:
@interface CBLAttachment : NSObject /** The owning document revision. */ @property (readonly) CBLRevision* revision; /** The owning document. */ @property (readonly) CBLDocument* document; @property (readonly, copy) NSString* name; /** The MIME type of the contents. */ @property (readonly, nullable) NSString* contentType;
and here’s the equivalent part of the translated Swift interface, as shown in the Xcode 7.3(beta) assistant pane:
public class CBLAttachment : NSObject { /** The owning document revision. */ /** The owning document. */ public var document: CBLDocument { get } /** The MIME type of the contents. */ public var contentType: String? { get }
Note that `revision` and `name` are missing.
* If I rename either property in the .h file and save, the Swift interface then shows that property. * If I change the type (like from NSString* to int), nothing happens. * I have another class with an identical `name` property, which does appear in the Swift interface.
Anyone seen anything like this? Should I file a bug report against Xcode?
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden