Mark Moeykens Profile picture
📙 FREE SwiftUI book:https://t.co/M9eDusm5Z4… ⏯ YouTube https://t.co/kQy5eUKAQA

Feb 24, 2023, 6 tweets

❓How can I change any SF Symbol to have the plus, minus, or any badge on it in #SwiftUI?

You've seen existing symbols with badges (delete, question mark, etc).

But what if the symbol you want to use doesn't have the badge you want?

For example, I wanted this symbol with a plus badge:

💡You can OVERLAY one symbol on top of another!

For example, I added a smaller plus symbol to the lower right corner:

Now I have the button I want in the Nav bar:

Best of all, it works great with Accessibility!

And dark mode:

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling