-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlertView.swift
40 lines (34 loc) · 994 Bytes
/
AlertView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// AlertView.swift
// Deleite
//
// Created by Thaynara da Silva Andrade on 22/09/23.
//
import SwiftUI
struct AlertView: View {
@State private var showAlert = false
var body: some View {
Button(action: {
showAlert = true
}) {
Text("Mostrar Alerta")
Image("Agendar coleta")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 110)
.position(x:93, y:134)
}
.alert(isPresented: $showAlert) {
Alert(
title: Text("Em Construção"),
message: Text("Esta tela ainda está em desenvolvimento."),
dismissButton: .default(Text("OK"))
)
}
}
}
struct AlertView_Previews: PreviewProvider {
static var previews: some View {
AlertView()
}
}