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 --- JuickNext/View/ContentView.swift | 32 ++++++++++++++++++++++++++++++++ JuickNext/View/DiscussionsView.swift | 21 +++++++++++++++++++++ JuickNext/View/Today.swift | 21 +++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 JuickNext/View/ContentView.swift create mode 100644 JuickNext/View/DiscussionsView.swift create mode 100644 JuickNext/View/Today.swift (limited to 'JuickNext/View') 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