mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

366K
active users

Daniel Saidi

In , we can use a ControlGroup to group buttons together. Thanks to @adam for telling me about this view, since I completely forgot it existed 🫠:

danielsaidi.com/blog/2023/06/0

@danielsaidi IIRC ControlGroup is supposed to do stuff like this, but I have no idea what it looks like on iOS.

@adam ControlGroup it was - thank you!

@adam I have updated the post to use the ControlGroup instead, thanks again!

@danielsaidi Great find! I didn't know about this one either. In your post you use .frame(width:) to fix the greedy size but you can use .fixedSize() instead and it will keep the size of the content automatically.

@ryanlintott @danielsaidi add me to the list of people that did not know about this.

@ryanlintott Cool, thanks - I will try changing it and see if it behaves better👍