Skip to content
Snippets Groups Projects
Select Git revision
  • c438e05476cf9c861a542aed96524af4b6ed2fed
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

Alerts.swift

  • Alerts.swift 264 B
    import ComposableArchitecture
    
    extension AlertState {
      public static func error(_ message: String) -> AlertState<MyContactAction> {
        AlertState<MyContactAction>(
          title: TextState("Error"),
          message: TextState(message),
          buttons: []
        )
      }
    }