AlertToast

screenshot of AlertToast

Create Apple-like alerts & toasts using SwiftUI

Overview:

The AlertToast-SwiftUI library is an open-source tool for SwiftUI that allows developers to present Apple-like alert and toast notifications in their apps. This library is designed to provide a better user experience by allowing developers to inform users about completed processes or other important information without requiring them to dismiss a traditional alert. Built with pure SwiftUI, it offers a range of display modes, customizable options, and support for localization.

Features:

  • Three display modes: Alert (pop at the center), HUD (drop from the top), and Banner (pop/slide from the bottom)
  • Supports different types of alert content such as Complete, Error SystemImage, Image, Loading, and Regular (only text)
  • Works with any kind of view builder
  • Supports Light & Dark Mode
  • Localization support
  • Font & Background customization

CocoaPods:

  1. Install CocoaPods by following the instructions on their website.
  2. Specify "AlertToast" in your Podfile.
  3. Run pod install in your project directory to install the library.

Swift Package Manager:

  1. Open your Xcode project.
  2. Go to File > Swift Packages > Add Package Dependency...
  3. Specify the repository URL for AlertToast.
  4. Follow the prompts to complete the installation.

Manually:

  1. Download the AlertToast source code from the repository.
  2. Add the "AlertToast" folder to your Xcode project.
  3. Make sure to enable "Copy items if needed" and "Create groups" options.

Summary:

The AlertToast-SwiftUI library is a useful tool for developers using SwiftUI to present Apple-like alert and toast notifications in their apps. It offers a range of display options, customization features, and support for different types of content. By providing a better user experience, this library can enhance the overall usability of SwiftUI apps.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.