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 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

Here's my code UIViewController subclass:

  Import UIKit Import MyCustomFramework class MyViewController: UIViewController {@Iboutlet var myCustomView: MyCustomView? }   

And 'MyCustomView.swift' within the 'MyCustomFiewame' target is:

  Import UIKit @IBDesignable class MyCustomView: UIView {@ IBOutlet var ImageView: UIImageView? Init (coder aDecoder: NSCoder!) {Super.init (coder: aDecoder)}}   

Does anyone know what I forgot? Did I import it incorrectly? Am I missing something?

You should mark the square as 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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -