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)
|
||||||
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()
|
||||||
|
|
Loading…
Reference in New Issue