Post

Replies

Boosts

Views

Activity

Comment on UIButtonConfiguration Help
I did use attributed strings to try and test it, but the issue was that the button grew bigger and expanded in a UIStackView and took up the entire space instead of staying in one line. Also, I'd love to stick with the deprecated API, but I'm worried that staying might breaking UIButtons in the future if the properties do get removed and I'm trying to be proactive
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’23
Comment on Replacement for titleEdgeInsets and imageEdgeInsets in UIButton For UIButtonConfiguration
I understand that but these are the descriptions for the properties deprecated: titleEdgeInsets: The inset or outset margins for the rectangle around the button’s title text. imageEdgeInsets: The inset or outset margins for the rectangle around the button’s image. Which don't match the description of imagePadding and titlePadding. For example, the old inset properties allowed for customizing the margins on each side, but padding only allows for setting one value.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’23
Comment on UIButtonConfiguration Help
I did use attributed strings to try and test it, but the issue was that the button grew bigger and expanded in a UIStackView and took up the entire space instead of staying in one line. Also, I'd love to stick with the deprecated API, but I'm worried that staying might breaking UIButtons in the future if the properties do get removed and I'm trying to be proactive
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on UIButtonConfiguration Help
So if I ship an app with a previous version of Xcode (Not Xcode 14.3 which is the SDK where this property was exposed), would doing UIButtonConfiguration.titleLineBreakMode work? Or would it break?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on UIButtonConfiguration Help
Thanks, turned out the rendering mode was on default/automatic which caused issues! Thanks for all the help! I really appreciate it!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Used UIButtonConfiguration, UIButton.titleLabel gets replaced, what is the equivalent refactor?
Got it thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’23
Comment on Using UIButtonConfiguration, what is the equivalent refactor for titleLabel.minimumScaleFactor?
Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’23
Comment on Replacement for adjustsImageWhenHighlighted in UIButton
Sounds good, thanks Rincewind!! Your help is always appreciated 😁
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Replacement for titleEdgeInsets and imageEdgeInsets in UIButton For UIButtonConfiguration
I understand that but these are the descriptions for the properties deprecated: titleEdgeInsets: The inset or outset margins for the rectangle around the button’s title text. imageEdgeInsets: The inset or outset margins for the rectangle around the button’s image. Which don't match the description of imagePadding and titlePadding. For example, the old inset properties allowed for customizing the margins on each side, but padding only allows for setting one value.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Replacement for titleEdgeInsets and imageEdgeInsets in UIButton For UIButtonConfiguration
Additionally, it's not explained if that one value is only for the spacing between two elements or if it's the padding around the entire element on ALL sides. So there's a bit of confusion! Would appreciate the clarity. Thanks for the quick response!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Clarity on UIButtonConfiguration contentInsets default value
Thanks Rincewind!!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on How To Set Number Of Lines in UIButtonConfiguration
In addition to my comment below, I'm looking for an Obj-C solution, would you happen to know what that would look like here?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’23