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()