File tree Expand file tree Collapse file tree
AIProject/iCo/Features/Dashboard/View Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,13 +36,15 @@ struct AIBriefingView: View {
3636 if isPadLayout {
3737 HStack ( spacing: 16 ) {
3838 briefingView
39+ TopCoinListView ( )
3940 }
4041 . onPreferenceChange ( HeightPreferenceKey . self) { value in
4142 maxHeight = value
4243 }
4344 } else {
4445 VStack ( spacing: 16 ) {
4546 briefingView
47+ TopCoinListView ( )
4648 }
4749 . onPreferenceChange ( HeightPreferenceKey . self) { value in
4850 maxHeight = value
Original file line number Diff line number Diff line change @@ -49,7 +49,13 @@ struct TopCoinListView: View {
4949 RoundedRectangle ( cornerRadius: 20 )
5050 . strokeBorder ( . defaultGradient, lineWidth: 0.5 )
5151 )
52- . padding ( . horizontal, 16 )
52+ . background (
53+ GeometryReader { geo in
54+ Color . clear
55+ . preference ( key: HeightPreferenceKey . self,
56+ value: geo. size. height)
57+ }
58+ )
5359 . onAppear {
5460 Task {
5561 await viewModel. fetchData ( )
You can’t perform that action at this time.
0 commit comments