mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
22 lines
379 B
Swift
22 lines
379 B
Swift
|
|
import SwiftUI
|
||
|
|
|
||
|
|
struct AlertButton: View {
|
||
|
|
let action: () -> Void
|
||
|
|
|
||
|
|
var body: some View {
|
||
|
|
Button(action: action) {
|
||
|
|
Text("Alert")
|
||
|
|
Image(systemName: "bell.fill")
|
||
|
|
.symbolRenderingMode(.hierarchical)
|
||
|
|
.imageScale(.large)
|
||
|
|
.foregroundColor(.accentColor)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
struct AlertButtonPreview: PreviewProvider {
|
||
|
|
static var previews: some View {
|
||
|
|
AlertButton {}
|
||
|
|
}
|
||
|
|
}
|