From 735796a970525817a2e76f0b03d69b8eace9bf3c Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 27 Dec 2023 14:50:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20LazyVStack=EC=97=90=EC=84=9C=20VStack=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AS-IS : LazyVStack을 사용하여 화면에 보이는 영역만 그렸었다. TO-BE : VStack을 사용하여 새로 화면이 그려지면서 튀는 현상을 제거하였다. ( 하지만 화면에 안보이는 부분이 그려져 있어서 메모리를 많이 차지 한다. ) --- SodaLive/Sources/Content/Main/ContentMainView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SodaLive/Sources/Content/Main/ContentMainView.swift b/SodaLive/Sources/Content/Main/ContentMainView.swift index 1cccd33..25b173b 100644 --- a/SodaLive/Sources/Content/Main/ContentMainView.swift +++ b/SodaLive/Sources/Content/Main/ContentMainView.swift @@ -22,7 +22,7 @@ struct ContentMainView: View { viewModel.refresh() } ) { - LazyVStack(alignment: .leading, spacing: 0) { + VStack(alignment: .leading, spacing: 0) { Text("콘텐츠 마켓") .font(.custom(Font.bold.rawValue, size: 21.3)) .foregroundColor(Color(hex: "9970ff"))