workin with data on colab code example
Example 1: how to use 2 alerts in swiftui
enum ActiveAlert {
case first, second
}
struct ToggleView: View {
@State private var showAlert = false
@State private var activeAlert: ActiveAlert = .first
var body: some View {
Button(action: {
if Bool.random() {
self.activeAlert = .first
} else {
self.activeAlert = .second
}
self.showAlert = true
}) {
Text("Show random alert")
}
.alert(isPresented: $showAlert) {
switch activeAlert {
case .first:
return Alert(title: Text("First Alert"), message: Text("This is the first alert"))
case .second:
return Alert(title: Text("Second Alert"), message: Text("This is the second alert"))
}
}
}
}
Example 2: How to Create Google Maps API KEY for Free 2020 Share This Video In this ... MarineTraffic API allows you to integrate AIS data into your application or website.
<script type="text/javascript">
width='100%';
height='450';
border='1';
shownames='false';
latitude='37.4460';
longitude='24.9467';
zoom='9';
maptype='1';
trackvessel='0';
fleet='';
</script>
<script type="text/javascript" src="//www.marinetraffic.com/js/embed.js"></script>