mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
ios 15 support
gotta fix how swiftui is displayed inside my tableviewcells
This commit is contained in:
19 files changed
+219
-43
No files matched your search
@@ -34,7 +34,7 @@ class EmojiHoarder: BaseHoarder {
|
||||
super.init()
|
||||
self.showWelcome = !UserDefaults.standard.bool(forKey: "showWelcome")
|
||||
|
||||
if !FileManager.default.fileExists(atPath: EmojiHoarder.container.path()) {
|
||||
if !FileManager.default.fileExists(atPath: EmojiHoarder.container.safePath) {
|
||||
try! FileManager.default.createDirectory(at: EmojiHoarder.container, withIntermediateDirectories: true)
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ class EmojiHoarder: BaseHoarder {
|
||||
}
|
||||
|
||||
private func loadTrie() {
|
||||
guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrieDict.path()) else { return }
|
||||
guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrieDict.safePath) else { return }
|
||||
guard let dataDict = try? Data(contentsOf: EmojiHoarder.localTrieDict) else { return }
|
||||
guard let decodedDict = try? decoder.decode([String:Emoji].self, from: dataDict) else {
|
||||
fatalError("failed to decode dict")
|
||||
|
||||