@@ -50,7 +50,7 @@ struct LocationsView: View {
50
50
}
51
51
}
52
52
. navigationTitle ( " Social " )
53
- . setColumn ( )
53
+ . setColumn ( appVM . screenSize )
54
54
}
55
55
56
56
private var content : some View {
@@ -67,7 +67,7 @@ struct LocationsView: View {
67
67
}
68
68
}
69
69
. background ( Color ( . systemGroupedBackground) )
70
- . setColumn ( )
70
+ . setColumn ( appVM . screenSize )
71
71
}
72
72
73
73
private var detail : some View {
@@ -89,7 +89,7 @@ struct LocationsView: View {
89
89
}
90
90
}
91
91
. background ( Color ( . systemGroupedBackground) )
92
- . setColumn ( )
92
+ . setColumn ( appVM . screenSize )
93
93
}
94
94
95
95
private var friendLocations : some View {
@@ -154,11 +154,11 @@ extension Location {
154
154
}
155
155
156
156
private extension View {
157
- func setColumn( ) -> some View {
157
+ func setColumn( _ screenSize : CGSize ) -> some View {
158
158
navigationSplitViewColumnWidth (
159
- min: WindowUtil . width * 1 / 3 ,
160
- ideal: WindowUtil . width * 1 / 3 ,
161
- max: WindowUtil . width / 2
159
+ min: screenSize . width * 1 / 3 ,
160
+ ideal: screenSize . width * 1 / 3 ,
161
+ max: screenSize . width / 2
162
162
)
163
163
}
164
164
}
0 commit comments