-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcomeView.swift
More file actions
38 lines (33 loc) · 1.08 KB
/
welcomeView.swift
File metadata and controls
38 lines (33 loc) · 1.08 KB
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
//
// WelcomeView.swift
// Weather101
//
// Created by Cami🦋 on 9/15/22.
//
import SwiftUI
import CoreLocationUI
struct WelcomeView: View {
@EnvironmentObject var locationManager: LocationManager
var body: some View {
VStack{
VStack( spacing : 20){
Text("Welcome to the weather app").bold().font(.title).foregroundColor(.init(hue: 0.45, saturation: 0.13, brightness: 0.33))
Text("Please share your current location to get the weather on your area").padding().foregroundColor(.init(hue: 0.63, saturation: 0.02, brightness: 0.10))
}
.multilineTextAlignment(.center)
.padding()
LocationButton(.shareCurrentLocation){
locationManager.requestLocation()
}
.cornerRadius(50)
.symbolVariant(.fill)
.foregroundColor(.white)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
struct WelcomeView_Previews: PreviewProvider {
static var previews: some View {
WelcomeView()
}
}