@objc Attribute in Swift
@objc Attribute in Swift: By default, Swift generates code that is only accessible to other Swift code. However, when you need to interact with Objective-C code or frameworks (such as UIKit), you use @objc to explicitly instruct Swift to make certain classes, methods, properties, or other entities available to Objective-C as well as Swift code….