크리에이터 커뮤니티 게시물

- 구매하지 않은 유료 게시물도 내용은 보이도록 수정
This commit is contained in:
Yu Sung 2024-05-30 13:25:47 +09:00
parent 27ee83f74b
commit 9819f00d0d
1 changed files with 18 additions and 18 deletions

View File

@ -68,25 +68,25 @@ struct CreatorCommunityAllItemView: View {
} }
} }
if item.price <= 0 || item.existOrdered { DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue)
DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue) .frame(
.frame( width: screenSize().width - 42,
width: screenSize().width - 42, height: textHeight
height: textHeight )
.onAppear {
self.textHeight = self.estimatedHeight(
for: item.content,
width: screenSize().width - 42
) )
.onAppear { }
self.textHeight = self.estimatedHeight( .onChange(of: item.content) { newText in
for: item.content, self.textHeight = self.estimatedHeight(
width: screenSize().width - 42 for: newText,
) width: screenSize().width - 42
} )
.onChange(of: item.content) { newText in }
self.textHeight = self.estimatedHeight(
for: newText, if item.price <= 0 || item.existOrdered {
width: screenSize().width - 42
)
}
if let imageUrl = item.imageUrl { if let imageUrl = item.imageUrl {
KFImage(URL(string: imageUrl)) KFImage(URL(string: imageUrl))
.resizable() .resizable()