-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriendList.swift
More file actions
93 lines (81 loc) · 3.01 KB
/
FriendList.swift
File metadata and controls
93 lines (81 loc) · 3.01 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//
// FriendList.swift
// Happy Tree
//
// Created by Thach Quynh Anh on 11/13/22.
//
import Foundation
import SwiftUI
struct FriendList: View{
var body: some View {
ZStack{
Color(red: 1, green: 0.90, blue: 1.0).ignoresSafeArea()
// }
VStack{
Text("Your Friend List")
.font(.title)
.fontWeight(.semibold)
.kerning(1.4)
.padding()
// }
List{
HStack (
alignment: .center,
spacing: 10){
Image("girl")
.resizable()
.frame(width:40, height: 40)
.offset(x: 0)
Text(" Clara")
.font(.system(size: 25))
NavigationLink(destination: FriendTree2()){
}
}
HStack (
alignment: .center,
spacing: 10){
Image("boy")
.resizable()
.frame(width:40, height: 40)
.offset(x: 0)
Text(" Tayloe")
.font(.system(size: 25))
NavigationLink(destination: FriendTree1()){
}
}
HStack (
alignment: .center,
spacing: 10){
Image("girl")
.resizable()
.frame(width:40, height: 40)
.offset(x: 0)
Text(" Suzy")
.font(.system(size: 25))
NavigationLink(destination: OldBasket()){
}
}
HStack (
alignment: .center,
spacing: 10){
Image("girl")
.resizable()
.frame(width:40, height: 40)
.offset(x: 0)
Text(" Wendy")
.font(.system(size: 25))
NavigationLink(destination: OldBasket()){
}
}
}
.scrollContentBackground(.hidden)
}
}
}
struct FriendList_Previews: PreviewProvider {
static var previews: some View {
FriendList()
ContentView()
}
}
}