I can be in the compiler here.
I run the Snapshot test in Swift, invoking a property in Objective-C VC, but this property is a class written in Swift, with a bridge.
In MyViewController.h :
@class TextEntryView; @interface MyViewController: AbstractTextEntryViewController @property (nonatomic, strong) TextEntryView *textEntryView; @end
In TextEntryView.swift :
@objc(TextEntryView) class TextEntryView: UIView
And in my test I'm trying to call
vc.textEntryView where vc is of type MyViewController and I get an error:
a value of type MyViewController does not have a textEntryView member
My bridge headings look good. If I add the NSString property to the .h file above, I can reference it in the test. Also, when I command -click on MyViewController in my test, it transfers me to the .h file and not to the .swift generated version of this file (which seems like a symptom of this problem).
I can push Xcode 8 beyond it.
ios objective-c xcode swift
Zack shapiro
source share