Improve UI
This commit is contained in:
@@ -11,10 +11,12 @@ public struct InstallProfileButton: View {
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Button("Install NetworkExtension") {
|
||||
FormButton {
|
||||
Task {
|
||||
await installProfile()
|
||||
}
|
||||
} label: {
|
||||
Label("Install Network Extension", systemImage: "lock.doc.fill")
|
||||
}
|
||||
.alertBinding($alert)
|
||||
}
|
||||
|
||||
@@ -12,10 +12,12 @@
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Button("Install SystemExtension") {
|
||||
FormButton {
|
||||
Task {
|
||||
await installSystemExtension()
|
||||
}
|
||||
} label: {
|
||||
Label("Install System Extension", systemImage: "lock.doc.fill")
|
||||
}
|
||||
.alertBinding($alert)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user