AlertMessage.mov
dependencies: [
.package(url: "https://github.com/exyte/PopupView.git")
]
:branch="main"
Only iOS 15.0+
It turns off two seconds after opening
import SwiftUI
import AlertMessage
struct ContentView: View {
@State var showAlert : Bool = false
var body: some View {
VStack {
Button("Alert Message") {
showAlert = true
}
}
.message(isPresenting: $showAlert) {
AlertMessage(text: "Error", desc: "Lorem Ipsum is simply dummy text of the printing and typesetting ")
//AlertMessage(text: "Error", desc: "Lorem Ipsum is simply dummy text of the printing and typesetting ",alertIcon: .multiplyCircle)
// AlertMessage(text: "Error", desc: "Lorem Ipsum is simply dummy text of the printing and typesetting ",backroundColor: .red)
}
}
}