Skip to content

Instantly share code, notes, and snippets.

@jeremiegirault
Created December 4, 2015 10:22
Show Gist options
  • Save jeremiegirault/8bd1b4a5910b3b64ce0b to your computer and use it in GitHub Desktop.
Save jeremiegirault/8bd1b4a5910b3b64ce0b to your computer and use it in GitHub Desktop.
Protocol retrofitting for constrained generic extension in swift
let myString: String? = …
if myString.isEmpty { … }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment