More views
This commit is contained in:
parent
87556ea870
commit
2abb478366
6 changed files with 151 additions and 6 deletions
|
@ -7,6 +7,10 @@
|
|||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
5C1794B425E8FDFB007AD91A /* messages.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1794B325E8FDFB007AD91A /* messages.swift */; };
|
||||
5C1794B825E8FE08007AD91A /* notes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1794B725E8FE08007AD91A /* notes.swift */; };
|
||||
5C1794BC25E8FE19007AD91A /* settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1794BB25E8FE19007AD91A /* settings.swift */; };
|
||||
5C1794C025E8FE27007AD91A /* about.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1794BF25E8FE27007AD91A /* about.swift */; };
|
||||
5C2D331025E64F3C000253AC /* grades.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C2D330F25E64F3C000253AC /* grades.swift */; };
|
||||
5C2D331425E650EC000253AC /* exams.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C2D331325E650EC000253AC /* exams.swift */; };
|
||||
5C2D331825E651C4000253AC /* homework.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C2D331725E651C4000253AC /* homework.swift */; };
|
||||
|
@ -66,6 +70,10 @@
|
|||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
5C1794B325E8FDFB007AD91A /* messages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = messages.swift; sourceTree = "<group>"; };
|
||||
5C1794B725E8FE08007AD91A /* notes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = notes.swift; sourceTree = "<group>"; };
|
||||
5C1794BB25E8FE19007AD91A /* settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = settings.swift; sourceTree = "<group>"; };
|
||||
5C1794BF25E8FE27007AD91A /* about.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = about.swift; sourceTree = "<group>"; };
|
||||
5C2D330F25E64F3C000253AC /* grades.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = grades.swift; sourceTree = "<group>"; };
|
||||
5C2D331325E650EC000253AC /* exams.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = exams.swift; sourceTree = "<group>"; };
|
||||
5C2D331725E651C4000253AC /* homework.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = homework.swift; sourceTree = "<group>"; };
|
||||
|
@ -168,6 +176,10 @@
|
|||
5C2D331325E650EC000253AC /* exams.swift */,
|
||||
5C2D331725E651C4000253AC /* homework.swift */,
|
||||
5C2D331B25E651FB000253AC /* more.swift */,
|
||||
5C1794B325E8FDFB007AD91A /* messages.swift */,
|
||||
5C1794B725E8FE08007AD91A /* notes.swift */,
|
||||
5C1794BB25E8FE19007AD91A /* settings.swift */,
|
||||
5C1794BF25E8FE27007AD91A /* about.swift */,
|
||||
);
|
||||
path = Content;
|
||||
sourceTree = "<group>";
|
||||
|
@ -384,12 +396,16 @@
|
|||
files = (
|
||||
5C2D331425E650EC000253AC /* exams.swift in Sources */,
|
||||
5C478F3525DC742100ABEFB7 /* VulcanStore.swift in Sources */,
|
||||
5C1794BC25E8FE19007AD91A /* settings.swift in Sources */,
|
||||
5C2D331025E64F3C000253AC /* grades.swift in Sources */,
|
||||
5C2D331C25E651FB000253AC /* more.swift in Sources */,
|
||||
5C1794C025E8FE27007AD91A /* about.swift in Sources */,
|
||||
F4C6D90A2544E17400F8903A /* LoginView.swift in Sources */,
|
||||
5CC2EAAE25E526B500B6183E /* navigation.swift in Sources */,
|
||||
5C2D331825E651C4000253AC /* homework.swift in Sources */,
|
||||
5C1794B425E8FDFB007AD91A /* messages.swift in Sources */,
|
||||
5CC2EAA525E516F100B6183E /* dashboard.swift in Sources */,
|
||||
5C1794B825E8FE08007AD91A /* notes.swift in Sources */,
|
||||
F4C6D9082544E17400F8903A /* wulkanowyApp.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
|
26
wulkanowy/Views/Content/about.swift
Normal file
26
wulkanowy/Views/Content/about.swift
Normal file
|
@ -0,0 +1,26 @@
|
|||
//
|
||||
// about.swift
|
||||
// wulkanowy
|
||||
//
|
||||
// Created by Tomasz on 26/02/2021.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct AboutView: View {
|
||||
var body: some View {
|
||||
Text("Here are some info about application (in my imagination)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct AboutView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
AboutView()
|
||||
}
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
||||
|
32
wulkanowy/Views/Content/messages.swift
Normal file
32
wulkanowy/Views/Content/messages.swift
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// messages.swift
|
||||
// wulkanowy
|
||||
//
|
||||
// Created by Tomasz on 26/02/2021.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct MessagesView: View {
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
VStack {
|
||||
Text("You are not logged in (messages)")
|
||||
NavigationLink(destination: LoginView()) {
|
||||
Text("Log in")
|
||||
}
|
||||
}.padding()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct MessagesView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
MessagesView()
|
||||
}
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -10,13 +10,27 @@ import SwiftUI
|
|||
struct MoreView: View {
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
VStack {
|
||||
Text("You are not logged in (more)")
|
||||
NavigationLink(destination: LoginView()) {
|
||||
Text("Log in")
|
||||
}
|
||||
}.padding()
|
||||
Form {
|
||||
Section {
|
||||
NavigationLink(destination: MessagesView()) {
|
||||
Text("Messages")
|
||||
}
|
||||
NavigationLink(destination: NotesView()) {
|
||||
Text("Notes and achievements")
|
||||
}
|
||||
}
|
||||
|
||||
Section {
|
||||
NavigationLink(destination: SettingsView()) {
|
||||
Text("Settings")
|
||||
}
|
||||
NavigationLink(destination: AboutView()) {
|
||||
Text("About")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationBarTitle("Wulkanowy - more", displayMode: .inline)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
32
wulkanowy/Views/Content/notes.swift
Normal file
32
wulkanowy/Views/Content/notes.swift
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// notes.swift
|
||||
// wulkanowy
|
||||
//
|
||||
// Created by Tomasz on 26/02/2021.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct NotesView: View {
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
VStack {
|
||||
Text("You are not logged in (notes)")
|
||||
NavigationLink(destination: LoginView()) {
|
||||
Text("Log in")
|
||||
}
|
||||
}.padding()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct NotesView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
NotesView()
|
||||
}
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
25
wulkanowy/Views/Content/settings.swift
Normal file
25
wulkanowy/Views/Content/settings.swift
Normal file
|
@ -0,0 +1,25 @@
|
|||
//
|
||||
// settings.swift
|
||||
// wulkanowy
|
||||
//
|
||||
// Created by Tomasz on 26/02/2021.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
var body: some View {
|
||||
Text("Here are settings (in my imagination)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct SettingsView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
SettingsView()
|
||||
}
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue