Skip to content

Instantly share code, notes, and snippets.

@eofster
Created November 10, 2015 11:01
Show Gist options
  • Save eofster/669100b5b98d7237ded4 to your computer and use it in GitHub Desktop.
Save eofster/669100b5b98d7237ded4 to your computer and use it in GitHub Desktop.
Phone call registry returning non-optional phone call
protocol PhoneCallRegistry {
func callWithIdentifier(identifier: Int) -> PhoneCall
}
func hangUpCallWithIdentifier(identifier: Int) {
phoneCallRegistry.callWithIdentifier(identifier).hangUp()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment