func alert<S, A>(S, isPresented : Binding<Bool>, actions: () -> A) -> some View
Presents an alert when a given condition is true, using a string variable as a title.
func alert<A>(Text, isPresented : Binding<Bool>, actions: () -> A) -> some View
Presents an alert when a given condition is true, using a text view for the title.
func alert<A>(LocalizedStringKey , isPresented : Binding<Bool>, actions: () -> A) -> some View
Presents an alert when a given condition is true, using a localized string key for the title.
func alert<A, T>(Text, isPresented : Binding<Bool>, presenting: T?, actions: (T) -> A) -> some View
Presents an alert using the given data to produce the alert’s content and a text view as a title.
func alert<A, T>(LocalizedStringKey , isPresented : Binding<Bool>, presenting: T?, actions: (T) -> A) -> some View
Presents an alert using the given data to produce the alert’s content and a localized string key for a title.
func alert<S, A, T>(S, isPresented : Binding<Bool>, presenting: T?, actions: (T) -> A) -> some View
Presents an alert using the given data to produce the alert’s content and a string variable as a title.
func alert<E, A>(isPresented : Binding<Bool>, error: E?, actions: () -> A) -> some View
Presents an alert when an error is present.