forked from ahussain33/App-Accelerator-2023-Fall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextOption.swift
50 lines (46 loc) · 1.5 KB
/
textOption.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// textOption.swift
// patientDemo
//
// Created by admin on 10/25/23.
//
import SwiftUI
struct textOption: View {
@State var request : String = ""
var body: some View {
//Spacer()
ZStack {
Color(Color(red: 141/255, green: 203/255, blue: 239/255))
VStack {
Text("Type your needs below:")
.frame(width: 1050, alignment: .leading)
.font(.title)
.bold()
ZStack {
RoundedRectangle(cornerRadius: 10)
.frame(width: 1050, height: 50)
.foregroundColor(.white)
.border(.black)
TextField("What do you need assitance with?", text: $request)
.frame(width: 1030, alignment: .leading)
.foregroundColor(.black)
}
NavigationLink(destination: requestRecieved()){
ZStack {
RoundedRectangle(cornerRadius: 5)
.frame(width: 300, height: 70)
.foregroundColor(Color(red:74/255, green:154/255, blue:212/255))
Text("Request")
.font(.title)
.foregroundColor(.white)
}
}
.padding(20)
}
}
.ignoresSafeArea()
}
}
#Preview {
textOption()
}