@@ -11,7 +11,7 @@ struct LoginForm<C: Client, S: Session>: View {
11
11
@State private var loading : Bool = false
12
12
@FocusState private var focusedField : LoginField ?
13
13
14
- internal let inspection = Inspection < Self > ( )
14
+ let inspection = Inspection < Self > ( )
15
15
16
16
var body : some View {
17
17
VStack {
@@ -56,7 +56,7 @@ struct LoginForm<C: Client, S: Session>: View {
56
56
. onReceive ( inspection. notice) { self . inspection. visit ( self , $0) } // ViewInspector
57
57
}
58
58
59
- internal func submit( ) async {
59
+ func submit( ) async {
60
60
loginError = nil
61
61
guard sessionToken != " " else {
62
62
loginError = . invalidToken
@@ -67,7 +67,7 @@ struct LoginForm<C: Client, S: Session>: View {
67
67
return
68
68
}
69
69
loading = true
70
- defer { loading = false }
70
+ defer { loading = false }
71
71
let client = C ( url: url, token: sessionToken)
72
72
do {
73
73
_ = try await client. user ( " me " )
@@ -135,8 +135,8 @@ struct LoginForm<C: Client, S: Session>: View {
135
135
Button ( " Sign In " ) {
136
136
Task { await submit ( ) }
137
137
}
138
- . buttonStyle ( . borderedProminent)
139
- . keyboardShortcut ( . defaultAction)
138
+ . buttonStyle ( . borderedProminent)
139
+ . keyboardShortcut ( . defaultAction)
140
140
} . padding ( . top, 5 )
141
141
}
142
142
}
0 commit comments