Top "Swift-extensions" questions

Extensions add new functionality to an existing class, structure, or enumeration type.

Swift Extension: same extension function in two Modules

Say I have a Framework called SwiftKit, which has a UIView's extension class method named someClassMethod and a property named …

swift namespaces swift-extensions
Swift extension of a class ONLY when it conforms to a specific protocol

Hi 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-extensions
How to use @objc protocol with optional and extensions at the same time?

This code does not compile and might sound stupid as it is, but i'll explain why it's so important! @objc …

ios objective-c swift protocols swift-extensions