Post

Replies

Boosts

Views

Activity

Reply to Using UIButtonConfiguration, what is the equivalent to using UIButton.imageEdgeInsets
@Rincewind I do think this is a serious oversight. Particularly with assets preserving vector data, we really should have fine-grained control over the button image size, irrespective of the image's native size. Imo, UIButton.Configuration.contentsInsets doesn't behave as advertised. It's defined as the distance from the button's content area to its bounds. So the image should be resized to fit in the content area. I've logged FB12471726.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’23
Reply to Using UIButtonConfiguration, what is the equivalent to using UIButton.imageEdgeInsets
@Rincewind I do think this is a serious oversight. Particularly with assets preserving vector data, we really should have fine-grained control over the button image size, irrespective of the image's native size. Imo, UIButton.Configuration.contentsInsets doesn't behave as advertised. It's defined as the distance from the button's content area to its bounds. So the image should be resized to fit in the content area. I've logged FB12471726.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’23