diff --git a/StickerSlack.xcodeproj/project.pbxproj b/StickerSlack.xcodeproj/project.pbxproj index cd23306..6d786e6 100644 --- a/StickerSlack.xcodeproj/project.pbxproj +++ b/StickerSlack.xcodeproj/project.pbxproj @@ -12,6 +12,7 @@ A949B1F52EA04E8200215164 /* StickerSlackApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F12EA04E8200215164 /* StickerSlackApp.swift */; }; A949B1F82EA04F2300215164 /* EmojiHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F72EA04F2300215164 /* EmojiHoarder.swift */; }; A949B1FB2EA0518800215164 /* SlackResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1FA2EA0518800215164 /* SlackResponse.swift */; }; + A949B1FD2EA158DB00215164 /* testData.json in Resources */ = {isa = PBXBuildFile; fileRef = A949B1FC2EA158DB00215164 /* testData.json */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -21,6 +22,7 @@ A949B1F12EA04E8200215164 /* StickerSlackApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerSlackApp.swift; sourceTree = ""; }; A949B1F72EA04F2300215164 /* EmojiHoarder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiHoarder.swift; sourceTree = ""; }; A949B1FA2EA0518800215164 /* SlackResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SlackResponse.swift; sourceTree = ""; }; + A949B1FC2EA158DB00215164 /* testData.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = testData.json; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -73,6 +75,7 @@ A949B1F62EA04E8C00215164 /* Resources */ = { isa = PBXGroup; children = ( + A949B1FC2EA158DB00215164 /* testData.json */, A949B1EF2EA04E8200215164 /* Assets.xcassets */, ); path = Resources; @@ -147,6 +150,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + A949B1FD2EA158DB00215164 /* testData.json in Resources */, A949B1F32EA04E8200215164 /* Assets.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/StickerSlack/Resources/testData.json b/StickerSlack/Resources/testData.json new file mode 100644 index 0000000..190f8fc --- /dev/null +++ b/StickerSlack/Resources/testData.json @@ -0,0 +1,27 @@ +{ + "ok": true, + "emoji": { + "bowtie": "https://emoji.slack-edge.com/T0266FRGM/bowtie/f3ec6f2bb0.png", + "squirrel": "https://emoji.slack-edge.com/T0266FRGM/squirrel/465f40c0e0.png", + "glitch_crab": "https://emoji.slack-edge.com/T0266FRGM/glitch_crab/db049f1f9c.png", + "piggy": "https://emoji.slack-edge.com/T0266FRGM/piggy/b7762ee8cd.png", + "cubimal_chick": "https://emoji.slack-edge.com/T0266FRGM/cubimal_chick/85961c43d7.png", + "dusty_stick": "https://emoji.slack-edge.com/T0266FRGM/dusty_stick/6177a62312.png", + "slack": "https://emoji.slack-edge.com/T0266FRGM/slack/7d462d2443.png", + "pride": "https://emoji.slack-edge.com/T0266FRGM/pride/56b1bd3388.png", + "thumbsup_all": "https://emoji.slack-edge.com/T0266FRGM/thumbsup_all/50096a1020.png", + "slack_call": "https://emoji.slack-edge.com/T0266FRGM/slack_call/b81fffd6dd.png", + "shipit": "alias:squirrel", + "white_square": "alias:white_large_square", + "black_square": "alias:black_large_square", + "simple_smile": "https://a.slack-edge.com/80588/img/emoji_2017_12_06/apple/simple_smile.png", + "neckbeard": "https://emoji.slack-edge.com/T0266FRGM/neckbeard/c8ec7bf188.png", + "metal": "https://emoji.slack-edge.com/T0266FRGM/metal/9f936a4278.png", + "fu": "https://emoji.slack-edge.com/T0266FRGM/fu/2f615de37f.png", + "feelsgood": "https://emoji.slack-edge.com/T0266FRGM/feelsgood/7bcbaa15fa.png", + "finnadie": "https://emoji.slack-edge.com/T0266FRGM/finnadie/08e66eb46d.png", + "goberserk": "https://emoji.slack-edge.com/T0266FRGM/goberserk/d8b892d59b.png", + "godmode": "https://emoji.slack-edge.com/T0266FRGM/godmode/1bd6476fbb.png", + "hurtrealbad": "https://emoji.slack-edge.com\"" + } +} diff --git a/StickerSlack/Views/ContentView.swift b/StickerSlack/Views/ContentView.swift index f4de17b..877237d 100644 --- a/StickerSlack/Views/ContentView.swift +++ b/StickerSlack/Views/ContentView.swift @@ -9,13 +9,12 @@ import SwiftUI struct ContentView: View { var body: some View { - VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") - } - .padding() + TabView { + Text("hi") + .tabItem { + Label("home", systemImage: "house") + } + } } }