File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
GoInfoGame/GoInfoGame/UserProfile/View Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments