You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.
I have a question about the use case where I'd like to add a shimmer to the label of a UIButton. The problem is that when I add the Shimmer as a subview to the button, and then apply the shimmer to the UILabel in the button, the text shrinks. I'm doing the following in my function to initialise the shimmering view:
Having taken a look, I noticed that the text label inside the button is shrinking. Is this the intended behaviour for the Shimmer view, or is there another way of setting it up so that I can have the text label shimmer and sized properly inside a button?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a question about the use case where I'd like to add a shimmer to the label of a UIButton. The problem is that when I add the Shimmer as a subview to the button, and then apply the shimmer to the UILabel in the button, the text shrinks. I'm doing the following in my function to initialise the shimmering view:
let shimmerView = ShimmeringView(frame: self.Button.titleLabel!.frame)
Button.addSubview(shimmerView)
shimmerView.contentView = self.Button.titleLabel!
shimmerView.isShimmering = true
shimmerView.shimmerSpeed = 50
The end result is shown below:
Having taken a look, I noticed that the text label inside the button is shrinking. Is this the intended behaviour for the Shimmer view, or is there another way of setting it up so that I can have the text label shimmer and sized properly inside a button?
The text was updated successfully, but these errors were encountered: