BadgeIcon lets you mimic the iOS and macOS System Settings icons in SwiftUI

About BadgeIcon

BadgeIcon lets you create badge icons that look like the ones you find in iOS and macOS System Settings.

BadgeIcon comes with a bunch of predefined icons:

You can also create your own icons, with rich icon and badge customization options.

Installation

BadgeIcon can be installed with the Swift Package Manager:

https://github.com/danielsaidi/BadgeIcon.git

If you prefer to not have external dependencies, you can also just copy the source code into your app.

Getting started

BadgeIcon has some predefined icon types:

  • BadgeIcon.alert
  • BadgeIcon.appStore
  • BadgeIcon.bug
  • BadgeIcon.checkmark
  • BadgeIcon.email
  • BadgeIcon.error
  • BadgeIcon.featureRequest
  • BadgeIcon.languageSettings
  • BadgeIcon.lightbulb
  • BadgeIcon.multicolorPalette
  • BadgeIcon.person
  • BadgeIcon.privacy
  • BadgeIcon.prominentAlert
  • BadgeIcon.prominentCheckmark
  • BadgeIcon.prominentError
  • BadgeIcon.redHeart
  • BadgeIcon.safari
  • BadgeIcon.share
  • BadgeIcon.yellowStar

You can also create your own badge icons, with custom icon and badge styling.

Documentation

The online documentation has more information, code examples, etc.

Support my work

You can sponsor me on GitHub Sponsors or reach out for paid support, to help support my open-source projects.

Contact

Feel free to reach out if you have questions or if you want to contribute in any way:

License

BadgeIcon is available under the MIT license. See the LICENSE file for more info.

GitHub

View Github