My Swift code has this:
@objc protocol MyDelegate {
func buttonPressed(buttonNum: Int, packet: Packet?)
}
Then my objective-c code for the delegate has this:
- (void)buttonPressed:(NSInteger)buttonNum :(Packet * _Nullable) packet {
}
But I'm getting a "function not implemented" warning. My experiments seem to indicate that there's something wrong with that nullable pointer. I.e. if there was no "?" in the Swift proto declaration and no "_Nullable" in the Object-c function then all is well.
Does anyone know what I need to do on the Objective-c side to implement that function for that proto?