Created
July 22, 2021 04:51
-
-
Save tifoaudii/1f857110fdf6cc9779e1c2cea3d8119a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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