I have this code that creates a view and applies a gradient to it.
import UIKit import QuartzCore let rect : CGRect = CGRectMake(0,0,320,100) var vista :
This runtime error can also be triggered if it tries to bridge an array of type [MySwiftProtocol] over to Objective-C.
[MySwiftProtocol]
The solution is to mark your protocol with @objc:
@objc
@objc protocol MySwiftProtocol { // ... }