From a88cbc0bd505585110f768f5302397cccd20f2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=92=E1=85=A7=E1=86=AB=E1=84=8C=E1=85=B5=E1=86=AB?= Date: Thu, 6 Nov 2025 10:56:41 +0900 Subject: [PATCH 1/2] =?UTF-8?q?design:=20TopCoinListView=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift | 2 ++ AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift b/AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift index d1e03feb..3cd4ff0f 100644 --- a/AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift +++ b/AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift @@ -36,6 +36,7 @@ struct AIBriefingView: View { if isPadLayout { HStack(spacing: 16) { briefingView + TopCoinListView() } .onPreferenceChange(HeightPreferenceKey.self) { value in maxHeight = value @@ -43,6 +44,7 @@ struct AIBriefingView: View { } else { VStack(spacing: 16) { briefingView + TopCoinListView() } .onPreferenceChange(HeightPreferenceKey.self) { value in maxHeight = value diff --git a/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift b/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift index e37ac5a9..97647e4c 100644 --- a/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift +++ b/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift @@ -49,7 +49,6 @@ struct TopCoinListView: View { RoundedRectangle(cornerRadius: 20) .strokeBorder(.defaultGradient, lineWidth: 0.5) ) - .padding(.horizontal, 16) .onAppear { Task { await viewModel.fetchData() From d213f4ef9b91a1f297b0c6655d01e4776361a637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=92=E1=85=A7=E1=86=AB=E1=84=8C=E1=85=B5=E1=86=AB?= Date: Thu, 6 Nov 2025 23:37:30 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20TopCoinListView=20Height=20?= =?UTF-8?q?=EA=B3=84=EC=82=B0=EC=9A=A9=20GeometryReader=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iCo/Features/Dashboard/View/TopCoinListView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift b/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift index 97647e4c..6dc8f70e 100644 --- a/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift +++ b/AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift @@ -49,6 +49,13 @@ struct TopCoinListView: View { RoundedRectangle(cornerRadius: 20) .strokeBorder(.defaultGradient, lineWidth: 0.5) ) + .background( + GeometryReader { geo in + Color.clear + .preference(key: HeightPreferenceKey.self, + value: geo.size.height) + } + ) .onAppear { Task { await viewModel.fetchData()