Email or username:

Password:

Forgot your password?
Top-level
sam henri gold

@harshil @grishka I think some of the defaults are quite reasonable, I just wish it weren't treated as magic. `Text(“Hello”).padding()` applies system-determined mystery padding. And you can't just query how much padding was applied.

The default stack spacing for a stack containing two shapes is different than stack containing two text labels.

I just wish I had access to that so I can make adjustments rather than either forgoing the smart defaults entirely or doing geometry reading nonsense

2 comments
Harshil Shah :psyduck:

@samhenrigold @grishka Agreed, I want there to be more info, and more customisation! I was mad about one of these just yesterday too: mastodon.social/@harshil/11258

Ryan Lintott

@samhenrigold @harshil @grishka Some of this spacing information is available inside the Layout protocol but I agree it's still not convenient for most cases. I don't think there's any way to get the default padding amount. developer.apple.com/documentat

Go Up