parent
27ee83f74b
commit
9819f00d0d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue