From b4baa82d7762ba3b8d10ebc0450a49c58086bf11 Mon Sep 17 00:00:00 2001 From: Ali AlSalman Date: Sun, 6 Apr 2025 14:18:13 +0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b20470d..84cfe2d 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ enum DeepLink { // ✅ Valid URLs DeepLink(url: URL(string: "/posts/1")!) == .post(postId: "1") DeepLink(url: URL(string: "/posts/1/comments/2")!) == .postComment(postId: "1", commentId: "2") -DeepLink(url: URL(string: "/f/1/s/2")!) == .postComment(second: 2, first: 1) +DeepLink(url: URL(string: "/f/1/s/2")!) == .reverse(second: 2, first: 1) // ❌ Invalid URLs DeepLink(url: URL(string: "/post/1")!) == nil @@ -83,7 +83,7 @@ DeepLink(url: URL(string: "/posts/1/comments")!) == nil DeepLink(url: URL(string: "/f/string/s/string")!) == nil ``` 4. Use the `Enum.init(url: URL)` generated initializer. -``` +```swift if let deepLink = DeepLink(url: incomingURL) { switch deepLink { case .post(let postId):