klemensstrasser,
@klemensstrasser@mastodon.social avatar

Question to devs!

I have a ToolbarItem with a Menu that has a custom label. On visionOS, there is always a horizontal padding around this button. Any idea how to get rid of that?

deanatoire,
@deanatoire@mastodon.social avatar

@klemensstrasser change the buttonStyle to plain

klemensstrasser,
@klemensstrasser@mastodon.social avatar

@deanatoire Tried that, but that didn't work. It only changes the highlighting.

(it works fine if this is just a Button in the ToolbarItem, but not for a Menu)

deanatoire,
@deanatoire@mastodon.social avatar

@klemensstrasser I'll look into a sample project; see about this 🤔

deanatoire,
@deanatoire@mastodon.social avatar

@klemensstrasser I get a better result with .buttonBorderShape(.circle) ; but not yet sure if it's possible to get rid of the padding entirely

klemensstrasser,
@klemensstrasser@mastodon.social avatar

@deanatoire but that is definitely better, thanks! 🥰

deanatoire,
@deanatoire@mastodon.social avatar

@klemensstrasser my pleasure!

its_john_davis,
@its_john_davis@mastodon.social avatar

@klemensstrasser .contentShape, perhaps?

klemensstrasser,
@klemensstrasser@mastodon.social avatar

@its_john_davis Good idea, but did not do the trick ):

its_john_davis,
@its_john_davis@mastodon.social avatar

@klemensstrasser without spinning up a project to find put for sure, I would try clipShape next

  • All
  • Subscribed
  • Moderated
  • Favorites
  • apple
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines