From b3288eb9eac7d7776849271a4270c1eda9713e91 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 16 May 2023 15:48:28 +0300 Subject: Add SwiftUI App --- .../AccentColor.colorset/Contents.json | 11 ++++ .../AppIcon.appiconset/Contents.json | 63 ++++++++++++++++++++++ JuickNext/Assets.xcassets/Contents.json | 6 +++ JuickNext/JuickApp.swift | 18 +++++++ .../Preview Assets.xcassets/Contents.json | 6 +++ JuickNext/View/ContentView.swift | 32 +++++++++++ JuickNext/View/DiscussionsView.swift | 21 ++++++++ JuickNext/View/Today.swift | 21 ++++++++ 8 files changed, 178 insertions(+) create mode 100644 JuickNext/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 JuickNext/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 JuickNext/Assets.xcassets/Contents.json create mode 100644 JuickNext/JuickApp.swift create mode 100644 JuickNext/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 JuickNext/View/ContentView.swift create mode 100644 JuickNext/View/DiscussionsView.swift create mode 100644 JuickNext/View/Today.swift (limited to 'JuickNext') 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() + } +} -- cgit v1.2.3