-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuView.swift
39 lines (31 loc) · 1.11 KB
/
MenuView.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
//
// File.swift
// WWDC22
//
// Created by Jovinca Claudia on 18/04/22.
//
import SwiftUI
struct MenuView: View {
var body: some View {
NavigationView{
VStack{
Image("MenuTitle")
.resizable()
.scaledToFit()
.frame(height: UIScreen.main.bounds.height/3)
NavigationLink(destination: ContentView()) {Image("Start")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: UIScreen.main.bounds.height/15, alignment: .center)
}
}.animation(.easeOut(duration: 0.7))
.background(Image("Background")
.resizable()
.edgesIgnoringSafeArea(.all)
.aspectRatio(contentMode: .fill)
.frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
)
}.navigationViewStyle(.stack)
.navigationTitle("Main Page")
}
}