Toast

Transient non-blocking feedback managed through a shared toast queue.

Transient non-blocking feedback managed through a shared toast queue.

Public API

  • FToast
  • FToastManager
  • FToastStyle
  • FToastIcon
  • FToastDuration
  • FToastPlacement
  • FToastColorStyle
  • FToastAppearance

Example

ZStack {
    AppContent()
    FToast(placement: .topCenter)
}

FToastManager.shared.show(
    "Changes saved",
    style: .success,
    duration: .short
)

Source

This reference follows Sources/FreakUI/Components/Feedback/FToast.swift. Component-specific configuration is documented under the public initializer, modifier, and supporting types in that source file.