-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTutorialView.swift
75 lines (65 loc) · 2.34 KB
/
TutorialView.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// TutorialView.swift
// ClubDay2022
//
// Created by A. Zheng (github.com/aheze) on 1/13/22.
// Copyright © 2022 A. Zheng. All rights reserved.
//
import SwiftUI
struct TutorialView: View {
var body: some View {
HStack {
VStack {
Text("Code")
.font(.system(size: 60, weight: .semibold, design: .monospaced))
VStack {
Image("TextCode")
.resizable()
.aspectRatio(contentMode: .fit)
Image("ImageCode")
.resizable()
.aspectRatio(contentMode: .fit)
Image("VStackCode")
.resizable()
.aspectRatio(contentMode: .fit)
}
Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding()
.background(Color(uiColor: .secondarySystemFill))
.cornerRadius(24)
VStack {
Text("Result")
.font(.system(size: 60, weight: .semibold, design: .monospaced))
VStack {
Text("Hello, world!")
.font(.system(size: 60, weight: .semibold))
.padding(20)
.frame(maxWidth: .infinity)
.background(Color.white)
Image(systemName: "star")
.font(.system(size: 60, weight: .semibold))
.padding(20)
.frame(maxWidth: .infinity)
.background(Color.white)
VStack {
Text("Hello, world!")
.font(.system(size: 60, weight: .semibold))
Image(systemName: "star")
.font(.system(size: 60, weight: .semibold))
}
.padding(20)
.frame(maxWidth: .infinity)
.background(Color.white)
}
Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding()
.background(Color(uiColor: .secondarySystemFill))
.cornerRadius(24)
}
.padding()
}
}