Swift UIKit – StartPauseButton Size changes

I created a startPauseButton. When I click on "start" in the simulator it turns into "pause," but the font size shrinks.

How do I get it to stay the same size?

Do you mean that the button itself stays the same width, but the text gets smaller to fit into the same width? Or that the button frame changes and the text gets smaller?

It does sound like you have a width constraint on the button. Letting the width default to fitting around the text is probably the solution, though it's hard to be specific without knowing how your button is configured.

It seems that the button stays the same width but the font size is getting smaller.

Swift UIKit – StartPauseButton Size changes
 
 
Q