@@ -11,7 +11,7 @@ struct LoginForm<C: Client, S: Session>: View {
1111 @State private var loading : Bool = false
1212 @FocusState private var focusedField : LoginField ?
1313
14- internal let inspection = Inspection < Self > ( )
14+ let inspection = Inspection < Self > ( )
1515
1616 var body : some View {
1717 VStack {
@@ -56,7 +56,7 @@ struct LoginForm<C: Client, S: Session>: View {
5656 . onReceive ( inspection. notice) { self . inspection. visit ( self , $0) } // ViewInspector
5757 }
5858
59- internal func submit( ) async {
59+ func submit( ) async {
6060 loginError = nil
6161 guard sessionToken != " " else {
6262 loginError = . invalidToken
@@ -67,7 +67,7 @@ struct LoginForm<C: Client, S: Session>: View {
6767 return
6868 }
6969 loading = true
70- defer { loading = false }
70+ defer { loading = false }
7171 let client = C ( url: url, token: sessionToken)
7272 do {
7373 _ = try await client. user ( " me " )
@@ -135,8 +135,8 @@ struct LoginForm<C: Client, S: Session>: View {
135135 Button ( " Sign In " ) {
136136 Task { await submit ( ) }
137137 }
138- . buttonStyle ( . borderedProminent)
139- . keyboardShortcut ( . defaultAction)
138+ . buttonStyle ( . borderedProminent)
139+ . keyboardShortcut ( . defaultAction)
140140 } . padding ( . top, 5 )
141141 }
142142 }
0 commit comments