Protocols specific to the Swift language
It is possible to have nested types declared inside protocols, like this: protocol Nested { class NameOfClass { var property: String { get …
swift protocols swift-protocolsI frequently have relatively complicated protocols with associatedType constraints, are used in generics, are used by CoreData type extensions, etc. …
ios xcode swift swift-protocolsThe Hashable protocol in Swift requires you to implement a property called hashValue: protocol Hashable : Equatable { /// Returns the hash value. …
swift hash swift-protocolsNot sure what's going on here, this seems like it should be pretty straight forward. I have a protocol that …
protocols swift2 ios9 swift-extensions swift-protocolsI would like to nest a protocol in my class to implement the delegate pattern like so : class MyViewController : UIViewController { …
swift swift-protocolsI want to be able to store a class as a variable, so I can call class methods out of …
ios swift protocols swift-protocolsI am wondering what the best practice is when I want some functions to be public and some to me …
ios swift swift3 access-modifiers swift-protocolsWhile trying to migrate to Swift 3 (in a project which contains about half/half swift/objective-c code), I am facing …
ios objective-c swift3 swift-protocols nserrorHi there =) I was just faced with a design problem where I need to (essentially) do the following: I want …
ios swift uiviewcontroller swift-protocols swift-extensionsI use code to create the view (with subviews) for UIViewController's this is how I do it: override loadView() class …
ios swift design-patterns uiviewcontroller swift-protocols