-1

How can I achieve an effect similar to a rounded rectangle in the swiftui toolbar in order to put some basic buttons there? I have seen the effect in Xcode and other programs that have probably been made using Storyboards or XIB Applications but I am against that. I have tried to literally just put a rounded rectangle in the toolbar with a fixed size of 30 and a foreground style of tertiary but it doesn't look the same. Heres an image explaining the effect I want:Image of wanted effect

What would also be great is the fact that when using the .windowToolBarStyle with .unifiedCompact, then all of the toolbar items become super tiny and difficult to read.

Thanks in advance!

1 Answer 1

0

Was able to fix it myself. Its called NSTokenField

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.