ios - Import Swift framework in Swift: "Use of undeclared type 'MyCustomView'" -
I have a swift project where I have a framework goal with the custom sub-category of Here's my code UIViewController subclass: And 'MyCustomView.swift' within the 'MyCustomFiewame' target is: Does anyone know what I forgot? Did I import it incorrectly? Am I missing something? You should mark the square as UIView Inside the Xcode 6, you can use the new live view in the interface builder. But when I try to add a
@Iboutlet to my project in my
UIViewController , I get an "unknown type 'MyCustomView'" error Use and I can not build my project
Import UIKit Import MyCustomFramework class MyViewController: UIViewController {@Iboutlet var myCustomView: MyCustomView? }
Import UIKit @IBDesignable class MyCustomView: UIView {@ IBOutlet var ImageView: UIImageView? Init (coder aDecoder: NSCoder!) {Super.init (coder: aDecoder)}}
public because it has different frameworks Is part of the module
@ IB Disableable Public Class MyCustomView: UIView {}
internal access level with default classes and methods If you want to use that side of that goal then you should mark it publicly, then it is only part of the public interface. Received (see outside target)
Comments
Post a Comment