Protocols specific to the Swift language
Is it possible in Swift? If not then is there a workaround to do it?
ios swift optional-parameters swift-protocols swift-extensionsweak references don't seem to work in Swift unless a protocol is declared as @objc, which I don't want in …
swift delegates swift-protocolsIs there a standard way to make a "pure virtual function" in Swift, ie. one that must be overridden by …
swift abstract swift-protocolsI have a protocol RequestType and it has associatedType Model as below. public protocol RequestType: class { associatedtype Model var path: …
ios swift generics swift2 swift-protocolsI am trying to create a Dictionary (actually a HashSet) keyed on a custom protocol in Swift, but it is …
swift generics xcode6 swift-protocolsSwift documentation says that classes, structs, and enums can all conform to protocols, and I can get to a point …
swift enums swift-protocolsIn Swift I can explicitly set the type of a variable by declaring it as follows: var object: TYPE_NAME …
ios objective-c swift swift-protocolsI've been playing around with arrays of generic classes with different types. It's easiest to explain my problem with some …
arrays swift generics swift-protocolsWhen I try to implement my protocol this way: protocol Serialization { func init(key keyValue: String, jsonValue: String) } I get …
swift initialization protocols swift-protocolsI want to create a class that can store objects conforming to a certain protocol. The objects should be stored …
ios swift generics swift-protocols