Closed teddyfahi closed 1 year ago
using sizeToFit() would breaks the tap function as this also is re-setting of text width? why?
We can use auto layout to make the button size itself according to the text inside. Instead of setting a fixed frame width.
You can check our FloatingLoginButton
for inspiration 😄
FlashButton title is given needed width to display Finnish translation. The width is still set as a fixed value, using sizeToFit() would breaks the tap function as this also is re-setting of text width.