Top "Protocol-extension" questions

Protocol extension on an ObjC protocol

I have an Objective-C protocol which is used by mostly objective-C objects and one or two Swift objects. I would …

swift protocol-extension
Extend existing protocols to implement another protocol with default implements

Is it possible to add protocol compliance to a different protocol by way of an extension? For instance we would …

swift protocols protocol-extension
Can Swift Method Defined on Extensions on Protocols Accessed in Objective-c

Is it possible to call methods defined in a protocol extension in Swift from Objective-C? For example: protocol Product { var …

objective-c swift protocols protocol-extension
Swift property observer in protocol extension?

Consider the following: protocol ViewControllable: class { typealias VM: ViewModellable var vm: VM! { get } func bind() } extension ViewControllable { var vm: VM! { …

swift swift2 protocol-extension
Trailing where clause for extension of non-generic type

I have the following code: func registerNotification(name:String, selector:Selector) { NSNotificationCenter.defaultCenter().addObserver(self, selector: selector, name: name, object: …

ios swift swift2 protocol-extension swift2.2
Swift make protocol extension a Notification observer

Let's consider the following code: protocol A { func doA() } extension A { func registerForNotification() { NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardDidShow:"), …

ios swift swift2 protocol-extension