summaryrefslogtreecommitdiff
path: root/Hutch/App/DeepLink.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-24 18:28:21 -0500
committerChristian Cleberg <[email protected]>2026-03-24 18:28:21 -0500
commit94d0b581bbd2be7b63c07fe7f86d736daa96e1f9 (patch)
treee0fb93129ab426c2ebdabd2ea3a84b713f843656 /Hutch/App/DeepLink.swift
parent28c5b36bed9e3a4217415079827f657205a080f7 (diff)
downloadhutch-94d0b581bbd2be7b63c07fe7f86d736daa96e1f9.tar.gz
hutch-94d0b581bbd2be7b63c07fe7f86d736daa96e1f9.tar.bz2
hutch-94d0b581bbd2be7b63c07fe7f86d736daa96e1f9.zip
v2.4.0: widgetsv2.4.0
Diffstat (limited to 'Hutch/App/DeepLink.swift')
-rw-r--r--Hutch/App/DeepLink.swift4
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]