Post

Replies

Boosts

Views

Activity

Comment on How to change the font size of a button in Xcode
Part 1: So I ended up testing your solution. Let me tell 😁 you, you get an A+ for effort. It works. However if I initially had the button set at a 75 font size and then when it got pressed I have this code @IBAction func testX(_ sender: UIButton) { DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.1) { sender.titleLabel?.font = sender.titleLabel?.font.withSize(35) // really HUGE } }
Nov ’22
Comment on How to change the font size of a button in Xcode
I’m just testing if this lets me comment
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to change the font size of a button in Xcode
It was a great try, it didn't work.
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to change the font size of a button in Xcode
Part 2: Which if you didn't notice is setting it to 35 in the above code. So 0.1 seconds later it is set to 35. Great. If I press it again, as I am pressing it it grows to 75 then on release goes back to 35. I am gonna keep looking. Still thanks a lot. If you find any simple or good solution I would be happy if you would let me know.
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to change the font size of a button in Xcode
Part 1: So I ended up testing your solution. Let me tell 😁 you, you get an A+ for effort. It works. However if I initially had the button set at a 75 font size and then when it got pressed I have this code @IBAction func testX(_ sender: UIButton) { DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.1) { sender.titleLabel?.font = sender.titleLabel?.font.withSize(35) // really HUGE } }
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to change the font size of a button in Xcode
Thank you so much. This is huge relief I was searching for hours! I am still testing it out. Very appreciated!
Replies
Boosts
Views
Activity
Nov ’22