From 9819f00d0da7dbffbf104c2f03840ad7b30c38c2 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 30 May 2024 13:25:47 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EB=AC=BC=20-=20=EA=B5=AC=EB=A7=A4=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EC=9C=A0=EB=A3=8C=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EB=AC=BC=EB=8F=84=20=EB=82=B4=EC=9A=A9=EC=9D=80=20=EB=B3=B4?= =?UTF-8?q?=EC=9D=B4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../All/CreatorCommunityAllItemView.swift | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift index 1a6f584..cb7e7fd 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift @@ -68,25 +68,25 @@ struct CreatorCommunityAllItemView: View { } } - if item.price <= 0 || item.existOrdered { - DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue) - .frame( - width: screenSize().width - 42, - height: textHeight + DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue) + .frame( + width: screenSize().width - 42, + height: textHeight + ) + .onAppear { + self.textHeight = self.estimatedHeight( + for: item.content, + width: screenSize().width - 42 ) - .onAppear { - self.textHeight = self.estimatedHeight( - for: item.content, - width: screenSize().width - 42 - ) - } - .onChange(of: item.content) { newText in - self.textHeight = self.estimatedHeight( - for: newText, - width: screenSize().width - 42 - ) - } - + } + .onChange(of: item.content) { newText in + self.textHeight = self.estimatedHeight( + for: newText, + width: screenSize().width - 42 + ) + } + + if item.price <= 0 || item.existOrdered { if let imageUrl = item.imageUrl { KFImage(URL(string: imageUrl)) .resizable()