Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Once you use ServiceProtocol as an input parameter in the ServiceProtocolDelegate method, Xcode crashes at compile time.
import Cocoa
protocol ServiceProtocolDelegate {
func service(service: ServiceProtocol, didLoadItems items: [String])
}
protocol ServiceProtocol {
func getData()
var delegate: ServiceProtocolDelegate {get set}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment