How elai950/alerttoast works
AlertToast is a SwiftUI library for presenting configurable, self-dismissing alerts and toast-style messages. A host view supplies a presentation binding and an AlertToast configuration through .toast; the modifier overlays the configured presentation, with alert, HUD, and banner layouts and support for completion, error, image, text, and loading states. The sampled implementation shows loading presentations using ActivityIndicator. BlurView is included as a platform-specific visual effect component, but its use is not established by the excerpts. This map follows the README and sampled source; unsampled implementation details are omitted.
Main entry points: AlertToast.swift Toast Modifier · ActivityIndicator.swift Activity Indicator
Components 5
Toast Presentation
- Toast Modifier
Sources/AlertToast/AlertToast.swift - Alert Toast View
Sources/AlertToast/AlertToast.swift
Visual Components
- Activity Indicator
Sources/AlertToast/ActivityIndicator.swift - Platform Blur View
Sources/AlertToast/BlurView.swift
Other components
- Host View
Connections 3
- Host View → Toast Modifier: attaches modifier
README.md - Toast Modifier → Alert Toast View: overlays presentation
Sources/AlertToast/AlertToast.swift - Alert Toast View → Activity Indicator: renders loading
Sources/AlertToast/AlertToast.swift