-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from divadretlaw/feature/EmojiProvider
Add EmojiProvider
- Loading branch information
Showing
24 changed files
with
412 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// EmojiProviderError.swift | ||
// EmojiText | ||
// | ||
// Created by David Walter on 13.07.24. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum EmojiProviderError: Swift.Error { | ||
/// Thrown when the fetched data is invalid | ||
case invalidData | ||
/// Thrown when an unsupported emojis is trying to be fetched | ||
case unsupportedEmoji | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Sources/EmojiText/Model/Emoji/Protocols/AsyncCustomEmoji.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// AsyncCustomEmoji.swift | ||
// EmojiText | ||
// | ||
// Created by David Walter on 14.07.24. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
/// A custom emoji that requires lazy loading | ||
public protocol AsyncCustomEmoji: CustomEmoji { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Sources/EmojiText/Model/Emoji/Protocols/SyncCustomEmoji.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// SyncCustomEmoji.swift | ||
// EmojiText | ||
// | ||
// Created by David Walter on 14.07.24. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
/// A custom emoji that can be loaded immediately | ||
public protocol SyncCustomEmoji: CustomEmoji { | ||
} |
Oops, something went wrong.