diff options
Diffstat (limited to 'Hutch/App/DeepLink.swift')
| -rw-r--r-- | Hutch/App/DeepLink.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Hutch/App/DeepLink.swift b/Hutch/App/DeepLink.swift index a4b8269..e42bd6b 100644 --- a/Hutch/App/DeepLink.swift +++ b/Hutch/App/DeepLink.swift @@ -2,6 +2,7 @@ import Foundation /// Represents a parsed `hutch://` deep link. enum DeepLink: Equatable { + case home /// hutch://git/<owner>/<repo> case repository(owner: String, repo: String) /// hutch://todo/<owner>/<tracker>/<ticketId> @@ -19,6 +20,9 @@ enum DeepLink: Equatable { let components = url.pathComponents(fromScheme: "hutch") switch components.first { + case "home", nil: + self = .home + case "git" where components.count >= 3: let owner = components[1] let repo = components[2] |
