Skip to content

Commit c1e7a8c

Browse files
author
Achyut Kumar M
committed
fix user profile name,email and image alignment
1 parent 9ef7227 commit c1e7a8c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

GoInfoGame/GoInfoGame/UserProfile/View/UserProfileView.swift

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ struct UserProfileView: View {
1818
VStack {
1919
Text("My Profile")
2020
.font(.custom("Lato-Bold", size: 25))
21-
HStack {
21+
.padding(.bottom, 50)
22+
HStack(alignment: .center, spacing: 16) {
2223
profileImage
23-
VStack (alignment: .leading,spacing: 0){
24+
25+
VStack(alignment: .leading, spacing: 4) {
2426
Text(userFullName())
2527
.font(.custom("Lato-Bold", size: 20))
2628
Text(viewModel.user?.email ?? "")
2729
.font(.custom("Lato-Regular", size: 18))
2830
}
31+
2932
Spacer()
3033
}
3134
.padding([.bottom], 200)
@@ -51,16 +54,12 @@ struct UserProfileView: View {
5154
}
5255

5356
private var profileImage: some View {
54-
VStack {
55-
Image(systemName: "person.circle.fill")
56-
.resizable()
57-
.frame(width: 50, height: 50, alignment: .center)
58-
.cornerRadius(60)
59-
}
60-
.padding([.top], 50)
61-
62-
57+
Image(systemName: "person.circle.fill")
58+
.resizable()
59+
.frame(width: 50, height: 50)
60+
.clipShape(Circle())
6361
}
62+
6463

6564
private var logOutButton: some View {
6665
Button {

0 commit comments

Comments
 (0)