I'm attempting to include a swift class in an objective-c project. The swift class inherits from UIView
and looks like this:
class BVDTestView: UIView {
...
}
Note that I do not include @objc
because the swift class inherits from UIView
. In an objective-c implementation file, I import the umbrella swift header:
#import "TestApp-Swift.h"
I see that this file is created when I build, but I do not see any references to BVDTestView
in it (I would think that I would). When I try to create an instance of the swift view I get the error:
BVDTestView *view = [BVDTestView new];
Use of undeclared identifier 'view'
Any thoughts? I'm on Xcode 6 beta 4.