Open blackivory86 opened 5 years ago
我也遇到了同样的问题 iOS13 beta2
Replacing titleLabel?.text?.size...
with super.intrinsicContentSize
in TagView fixed that issue.
override open var intrinsicContentSize: CGSize {
var size = super.intrinsicContentSize
size.height = textFont.pointSize + paddingY * 2
size.width += paddingX * 2
if size.width < size.height {
size.width = size.height
}
if enableRemoveButton {
size.width += removeButtonIconSize + paddingX
}
return size
}
I'm facing same issue in my code, but my collectionViewCell is not visible in iOS13, can any one help me in this. I have tried same but it not working.
Some (not all!) of the tags in our app are elipsized with ... in the middle of the text because the are not fitting the size of the TagView.
The problem appears with iOS 13 (simulator and device) Beta 1.