@@ -48,21 +48,46 @@ struct LanguageView: View {
4848 menuData. lang = " fr "
4949 UserDefaults . standard. setValue ( " fr " , forKey: " Lang " )
5050 self . en. toggle ( )
51- } , label: { Text ( " Français " ) } ) . buttonStyle ( PlainButtonStyle ( ) )
52- if !en {
53- Image ( systemName: " checkmark " )
54- }
51+ } , label: {
52+ HStack ( alignment: . center, spacing: 15 ) {
53+ Text ( " Français " )
54+ if !en {
55+ Image ( systemName: " checkmark " )
56+ } else {
57+ Image ( systemName: " multiply " )
58+ }
59+ } . font ( . title)
60+ . frame ( width: 150 , height: . none, alignment: . center)
61+ . padding ( . all, 8 )
62+ . foregroundColor ( . white)
63+ . background ( Color . gray)
64+ . cornerRadius ( 40 )
65+ } )
66+ . buttonStyle ( PlainButtonStyle ( ) )
67+
5568 }
5669
5770 HStack ( alignment: . center) {
5871 Button ( action: {
5972 menuData. lang = " en "
6073 UserDefaults . standard. setValue ( " en " , forKey: " Lang " )
6174 self . en. toggle ( )
62- } , label: { Text ( " English " ) } ) . buttonStyle ( PlainButtonStyle ( ) )
63- if en {
64- Image ( systemName: " checkmark " )
65- }
75+ } , label: {
76+ HStack ( alignment: . center, spacing: 15 ) {
77+ Text ( " English " )
78+ if en {
79+ Image ( systemName: " checkmark " )
80+ } else {
81+ Image ( systemName: " multiply " )
82+ }
83+ } . font ( . title)
84+ . frame ( width: 150 , height: . none, alignment: . center)
85+ . padding ( . all, 8 )
86+ . foregroundColor ( . white)
87+ . background ( Color . gray)
88+ . cornerRadius ( 40 )
89+ } )
90+ . buttonStyle ( PlainButtonStyle ( ) )
6691 }
6792 } . frame ( width: 400 , height: . none, alignment: . center)
6893
0 commit comments