Skip to content

Instantly share code, notes, and snippets.

@tifoaudii
Created July 22, 2021 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tifoaudii/1f857110fdf6cc9779e1c2cea3d8119a to your computer and use it in GitHub Desktop.
Save tifoaudii/1f857110fdf6cc9779e1c2cea3d8119a to your computer and use it in GitHub Desktop.
protocol URLHandler {
func openUrl(url: URL)
}
extension URLHandler {
func openUrl(url: URL) {
// open url
}
}
struct View: URLHandler {
// no need to implement the requirement
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment