Closed mdziubich closed 3 years ago
Hello. I have a same problem too.
Same problem. It seems that this was introduced in 1.11.0
Same issue, any updates?
Hi there! sorry for the delay, I'm checking this issue. I let you know when I have more info about that 👍
label.text = "xxx" label.removeConstraint(label.constraints.last!)
You can use the code above to solve this problem, but use it with caution.
Hi!
This issue has been resolved, the fix will be included in the next version which will be released during this week.
Thanks for using SkeletonView :)
Description
Describe your issue here.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
When using SkeletonView on UILabel that have more than one line value set on property
numberOfLines
skeleton adds heightConstraint inupdateHeightConstraintsIfNeeded
method of UILabel extension. After callinghideSkeleton
and loading the text to the label the constraint is not removed which results in invalid label height.SkeletonView Environment:
SkeletonView version: 1.11.0 Xcode version: 12.0.1 **Swift version: 5.0
Steps to reproduce:
numberOfLines
property to 3showAnimatedSkeleton()
on UILabelhideSkeleton()
on UILabeltext
property to fit one line.Expected result:
Label adjust its height to fit intrinsic content size.
Actual result:
Label height is set to the one calculated by SkeletonView.