Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esha #3

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MCScheduler.swiftpm/CircleImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SwiftUI

struct CircleImage: View {
var body: some View {
Image("MCS")
Image("book picture")
.clipShape(Circle())
.overlay{
Circle().stroke(.white, lineWidth: 4)
Expand Down
31 changes: 20 additions & 11 deletions MCScheduler.swiftpm/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@ import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
CircleImage()

NavigationView {
VStack {
Text("Hello, class!")
.font(.largeTitle)
.foregroundColor(.red)
HStack {
Text("Intro to Playground").font(.body)
Spacer()
Text("Xcode").font(.subheadline)
CircleImage()

VStack {
Text("MCS Scheduler")
.font(.largeTitle)
.foregroundColor(.red)
HStack {
Text("Your Daily assistant").font(.body)
}

VStack {
NavigationLink(destination: PageTwo().navigationBarBackButtonHidden(true)){
Text("Next").frame(width:80, height:30, alignment: .center).background(Color.purple).foregroundColor(Color.white).cornerRadius(10)
}.navigationBarBackButtonHidden(true)
// some code

}
.buttonStyle(.bordered)
}
.padding()
}
.padding()
}
}
}
52 changes: 52 additions & 0 deletions MCScheduler.swiftpm/PageTwo.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// Page 2.swift
// MCScheduler
//
// Created by Student on 9/30/23.
//

import SwiftUI

struct PageTwo: View {
var body: some View {
NavigationView {

ZStack {

Form {
TextField("Enter your reminder", text: /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Value@*/.constant("")/*@END_MENU_TOKEN@*/)
TextField("Your Location", text: /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Value@*/.constant("")/*@END_MENU_TOKEN@*/)
DatePicker(selection: /*@START_MENU_TOKEN@*/.constant(Date())/*@END_MENU_TOKEN@*/, label: { /*@START_MENU_TOKEN@*/Text("Date")/*@END_MENU_TOKEN@*/ })
}.padding(10)
HStack {
Button("Save") {
}
.frame(width: 81, height: 30)
.font(.title)
.foregroundColor(Color.white)
.background(Color.purple)
.cornerRadius(10)
.padding()

NavigationLink(destination: ContentView().navigationBarBackButtonHidden(true)){
Text("Cancel").font(.title).frame(width:95, height:30, alignment: .center).background(Color.red).foregroundColor(Color.white).cornerRadius(10)
}.navigationBarBackButtonHidden(true)
}
}
}
}

struct reminderObj{
var date = Date()
var location: String
var reminder: String

}

struct PageTwo_Previews: PreviewProvider {
static var previews: some View {
PageTwo()
}
}
}

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# iOSMobileAppDev2023
This is an intro class offered by ELA & MCS for fall 2023.
//change the image to something that better suits the scheduling app//
//add new page with text field, save button, ignore, cancel button//