diff --git a/Config.xcconfig b/Config.xcconfig index 1695f06..7c408d7 100644 --- a/Config.xcconfig +++ b/Config.xcconfig @@ -5,7 +5,7 @@ // Created by neon443 on 02/11/2025. // -VERSION = 1.0 +VERSION = 2.0 BUILD = 1 // Configuration settings file format documentation can be found at: diff --git a/StickerSlack/Gifs/GifHoarder.swift b/StickerSlack/Gifs/GifHoarder.swift index 1077084..4d635c9 100644 --- a/StickerSlack/Gifs/GifHoarder.swift +++ b/StickerSlack/Gifs/GifHoarder.swift @@ -13,8 +13,8 @@ import Combine class GifHoarder: Hoarder, ObservableObject { static let container: URL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.neon443.StickerSlack")!.appendingPathComponent("Library", conformingTo: .directory) - var endpoint: URL = URL(string: "api.giphy.com/v1/gifs/trending")! - var endpointSearch: URL = URL(string: "api.giphy.com/v1/gifs/search")! + var endpoint: URL = URL(string: "https://api.giphy.com/v1/gifs/trending")! + var endpointSearch: URL = URL(string: "https://api.giphy.com/v1/gifs/search")! @Published var searchTerm: String = "" @Published var trendingGifs: [Gif] = [] @@ -35,9 +35,8 @@ class GifHoarder: Hoarder, ObservableObject { Task { do { async let (data, _) = try URLSession.shared.data(from: endpoint) -// let decoded: [String: Any] = decoder.decode([String: Any].self, from: await data) dump(await data) - print() + print(await data.base64EncodedString()) } } } diff --git a/StickerSlack/StickerType.swift b/StickerSlack/StickerType.swift index 1a722b0..93769b4 100644 --- a/StickerSlack/StickerType.swift +++ b/StickerSlack/StickerType.swift @@ -9,7 +9,7 @@ import Foundation enum StickerType: CustomStringConvertible, CaseIterable, Identifiable { case slackEmoji - case giphyGif + case giphyGifs var id: String { self.description } @@ -17,8 +17,8 @@ enum StickerType: CustomStringConvertible, CaseIterable, Identifiable { switch self { case .slackEmoji: return "Slack Emoji" - case .giphyGif: - return "Giphy GIF" + case .giphyGifs: + return "Giphy GIFs" } } } diff --git a/StickerSlack/SwiftUI/BrowseView.swift b/StickerSlack/SwiftUI/BrowseView.swift index 0c9ab2c..0796e22 100644 --- a/StickerSlack/SwiftUI/BrowseView.swift +++ b/StickerSlack/SwiftUI/BrowseView.swift @@ -24,7 +24,7 @@ struct BrowseView: View { ForEach(hoarder.emojis, id: \.self) { emoji in EmojiRow(hoarder: hoarder, emoji: emoji) } - case .giphyGif: + case .giphyGifs: Text("hi") } }