diff --git a/StickerSlack.xcodeproj/project.pbxproj b/StickerSlack.xcodeproj/project.pbxproj index 1752bda..1e9e074 100644 --- a/StickerSlack.xcodeproj/project.pbxproj +++ b/StickerSlack.xcodeproj/project.pbxproj @@ -564,7 +564,7 @@ A949B1EB2EA04C0C00215164 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_APPICON_NAME = StickerSlack; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = StickerSlack/StickerSlack.entitlements; CODE_SIGN_STYLE = Automatic; @@ -609,7 +609,7 @@ A949B1EC2EA04C0C00215164 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_APPICON_NAME = StickerSlack; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = StickerSlack/StickerSlack.entitlements; CODE_SIGN_STYLE = Automatic; diff --git a/StickerSlack/Emoji/Emoji.swift b/StickerSlack/Emoji/Emoji.swift index 2a9de1d..6417068 100644 --- a/StickerSlack/Emoji/Emoji.swift +++ b/StickerSlack/Emoji/Emoji.swift @@ -19,7 +19,8 @@ struct Emoji: Codable, Identifiable, Hashable { let urlString = remoteImageURL.absoluteString let split = urlString.split(separator: ".") let fileExtension = ".\(split.last ?? "png")" - return EmojiHoarder.container.appendingPathComponent(id.uuidString+fileExtension, conformingTo: .image) +// return EmojiHoarder.container.appendingPathComponent(id.uuidString+fileExtension, conformingTo: .image) + return URL(string: EmojiHoarder.container.absoluteString+id.uuidString+fileExtension)! } var remoteImageURL: URL diff --git a/StickerSlackTests/StickerSlackTests.swift b/StickerSlackTests/StickerSlackTests.swift index 5af4b3d..525b438 100644 --- a/StickerSlackTests/StickerSlackTests.swift +++ b/StickerSlackTests/StickerSlackTests.swift @@ -10,11 +10,17 @@ import Testing struct StickerSlackTests { var hoarder = EmojiHoarder() - @Test func example() async throws { + @Test func stickerConversion() async throws { // Write your test here and use APIs like `#expect(...)` to check expected conditions. for emoji in hoarder.emojis { print(emoji.sticker) } } + @Test func localImageURL() async throws { + for emoji in hoarder.emojis { + print(emoji.localImageURL) + } + } + }