diff options
author | Vitaly Takmazov | 2023-05-16 15:48:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-05-17 04:59:08 +0300 |
commit | b3288eb9eac7d7776849271a4270c1eda9713e91 (patch) | |
tree | ff42fc871f4e054e8125cd38acb67217e3e7e98a /JuickNext | |
parent | 4a36162f8da0d0c709138868bc172e34f40dfbfd (diff) |
Add SwiftUI App
Diffstat (limited to 'JuickNext')
-rw-r--r-- | JuickNext/Assets.xcassets/AccentColor.colorset/Contents.json | 11 | ||||
-rw-r--r-- | JuickNext/Assets.xcassets/AppIcon.appiconset/Contents.json | 63 | ||||
-rw-r--r-- | JuickNext/Assets.xcassets/Contents.json | 6 | ||||
-rw-r--r-- | JuickNext/JuickApp.swift | 18 | ||||
-rw-r--r-- | JuickNext/Preview Content/Preview Assets.xcassets/Contents.json | 6 | ||||
-rw-r--r-- | JuickNext/View/ContentView.swift | 32 | ||||
-rw-r--r-- | JuickNext/View/DiscussionsView.swift | 21 | ||||
-rw-r--r-- | JuickNext/View/Today.swift | 21 |
8 files changed, 178 insertions, 0 deletions
diff --git a/JuickNext/Assets.xcassets/AccentColor.colorset/Contents.json b/JuickNext/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/JuickNext/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JuickNext/Assets.xcassets/AppIcon.appiconset/Contents.json b/JuickNext/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..532cd72 --- /dev/null +++ b/JuickNext/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,63 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JuickNext/Assets.xcassets/Contents.json b/JuickNext/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/JuickNext/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JuickNext/JuickApp.swift b/JuickNext/JuickApp.swift new file mode 100644 index 0000000..190720b --- /dev/null +++ b/JuickNext/JuickApp.swift @@ -0,0 +1,18 @@ +// +// JuickApp.swift +// Juick +// +// Created by Vitaly Takmazov on 14.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import SwiftUI + +@main +struct JuickApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/JuickNext/Preview Content/Preview Assets.xcassets/Contents.json b/JuickNext/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/JuickNext/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JuickNext/View/ContentView.swift b/JuickNext/View/ContentView.swift new file mode 100644 index 0000000..03916fc --- /dev/null +++ b/JuickNext/View/ContentView.swift @@ -0,0 +1,32 @@ +// +// ContentView.swift +// Juick +// +// Created by Vitaly Takmazov on 14.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + TabView { + Today() + .tabItem { + Image("ei-clock") + } + Text("Discussions") + .tabItem { + Image("ei-bell") + } + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + NavigationView { + ContentView() + } + } +} diff --git a/JuickNext/View/DiscussionsView.swift b/JuickNext/View/DiscussionsView.swift new file mode 100644 index 0000000..b8f121b --- /dev/null +++ b/JuickNext/View/DiscussionsView.swift @@ -0,0 +1,21 @@ +// +// DiscussionsView.swift +// Juick +// +// Created by Vitaly Takmazov on 14.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import SwiftUI + +struct DiscussionsView: View { + var body: some View { + Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) + } +} + +struct DiscussionsView_Previews: PreviewProvider { + static var previews: some View { + DiscussionsView() + } +} diff --git a/JuickNext/View/Today.swift b/JuickNext/View/Today.swift new file mode 100644 index 0000000..aa4a205 --- /dev/null +++ b/JuickNext/View/Today.swift @@ -0,0 +1,21 @@ +// +// TodayView.swift +// Juick +// +// Created by Vitaly Takmazov on 14.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import SwiftUI + +struct Today: View { + var body: some View { + Text("Today") + } +} + +struct Today_Previews: PreviewProvider { + static var previews: some View { + Today() + } +} |