File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ enum DeepLink {
75
75
// ✅ Valid URLs
76
76
DeepLink (url : URL (string : " /posts/1" )! ) == .post (postId : " 1" )
77
77
DeepLink (url : URL (string : " /posts/1/comments/2" )! ) == .postComment (postId : " 1" , commentId : " 2" )
78
- DeepLink (url : URL (string : " /f/1/s/2" )! ) == .postComment (second : 2 , first : 1 )
78
+ DeepLink (url : URL (string : " /f/1/s/2" )! ) == .reverse (second : 2 , first : 1 )
79
79
80
80
// ❌ Invalid URLs
81
81
DeepLink (url : URL (string : " /post/1" )! ) == nil
82
82
DeepLink (url : URL (string : " /posts/1/comments" )! ) == nil
83
83
DeepLink (url : URL (string : " /f/string/s/string" )! ) == nil
84
84
```
85
85
4 . Use the ` Enum.init(url: URL) ` generated initializer.
86
- ```
86
+ ``` swift
87
87
if let deepLink = DeepLink (url : incomingURL) {
88
88
switch deepLink {
89
89
case .post (let postId):
You can’t perform that action at this time.
0 commit comments