diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
| commit | 02b452ccaf54cb24eb38fcb752126888994c0a1b (patch) | |
| tree | c30e71a1df363092a369fd7847c6223914662ce4 /Hotline/Utility | |
| parent | 73208d70d21db7e526e371fa863acd0327caad9e (diff) | |
First pass at private messages UI.
Diffstat (limited to 'Hotline/Utility')
| -rw-r--r-- | Hotline/Utility/FoundationExtensions.swift | 1 | ||||
| -rw-r--r-- | Hotline/Utility/SoundEffects.swift | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Hotline/Utility/FoundationExtensions.swift b/Hotline/Utility/FoundationExtensions.swift index 9ad0d8b..c154dbd 100644 --- a/Hotline/Utility/FoundationExtensions.swift +++ b/Hotline/Utility/FoundationExtensions.swift @@ -17,7 +17,6 @@ extension String { } regex.enumerateMatches(in: self, range: NSMakeRange(0, self.count)) { (result: NSTextCheckingResult!, _, _) in - let range = result.range if let newRange = Range(result.range, in: self) { let str = String(self[newRange]) attributedString.addAttribute(.link, value: str, range: result.range) diff --git a/Hotline/Utility/SoundEffects.swift b/Hotline/Utility/SoundEffects.swift index 931e27f..629af71 100644 --- a/Hotline/Utility/SoundEffects.swift +++ b/Hotline/Utility/SoundEffects.swift @@ -8,6 +8,7 @@ enum SoundEffects: String { case userLogin = "user-login" case userLogout = "user-logout" case newNews = "new-news" + case serverMessage = "server-message" } @Observable |