I have a variable that must be a UIView
that also implements the protocol MTMathKeyboard
.
I've tried,
var keyboard: (UIView & MTMathKeyboard)
var keyboard: UIView<MTMathKeyboard>
What's the syntax for a non-generic class instance that implements a protocol?