Objective C protocol implementation in Swift

I have a framework written in Objective-C. My framework is in Swift and imported the 3rd party Objective-C framework in my project.

@interface AAAA: NSObject
  • (void)setHandler:(id<Handler>)handler

@end

I wanted to implement the Handler protocol in my Swift project.

I did like this

Class ZXY: NSObject, Handler{
init(){
super.init
AAAA.setHandler(self)

}

// Implemented Handler Protocol optional methods

func aaaa(){
}
}


Handler protocol optional method aaaa never called. Am I missing anything
Please show the definition of the protocol Handler, and show the precise code to represent what you did.
With shown a code with bunch of syntax errors, it is hard to say what's causing the issue.

And please do not forget to use Code block (icon <>) of this site when showing some code.
Objective C protocol implementation in Swift
 
 
Q