Enable SwiftLint inside of Xcode
This commit also fixes all linter warnings and errors.
This commit is contained in:
parent
941d465570
commit
3c30a4b336
7 changed files with 130 additions and 21 deletions
|
|
@ -1,15 +1,13 @@
|
|||
import SwiftUI
|
||||
|
||||
struct TunnelView: View {
|
||||
|
||||
@ObservedObject
|
||||
var tunnel: Tunnel
|
||||
@ObservedObject var tunnel: Tunnel
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text(verbatim: tunnel.status.description)
|
||||
switch tunnel.status {
|
||||
case .connected(_):
|
||||
case .connected:
|
||||
Button("Disconnect", action: stop)
|
||||
case .permissionRequired:
|
||||
Button("Allow", action: configure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue