Clarity on UIButtonConfiguration contentInsets default value

The default content inset is (top = 7, leading = 12, bottom = 7, trailing = 12), is there a reason this is the default rather than (0,0,0,0)? Is it to make it easier for people to use UIButtonConfiguration without having to fiddle with margin sizes to have elements look right? Thanks!

Answered by Frameworks Engineer in 758510022

In a nutshell yes, its just a "good default" for making reasonably sized buttons (the default is based on the small/medium/large size and the dynamic type size). There is nothing special beyond that, so if you have a design that calls for a different size then feel free to use it.

Accepted Answer

In a nutshell yes, its just a "good default" for making reasonably sized buttons (the default is based on the small/medium/large size and the dynamic type size). There is nothing special beyond that, so if you have a design that calls for a different size then feel free to use it.

Clarity on UIButtonConfiguration contentInsets default value
 
 
Q