1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- import SwiftUI
16- import FirebaseAuth
1715import FirebaseAppleSwiftUI
18- import FirebasePhoneAuthSwiftUI
19- import FirebaseGoogleSwiftUI
20- import FirebaseTwitterSwiftUI
16+ import FirebaseAuth
2117import FirebaseAuthSwiftUI
2218import FirebaseFacebookSwiftUI
19+ import FirebaseGoogleSwiftUI
2320import FirebaseOAuthSwiftUI
24-
21+ import FirebasePhoneAuthSwiftUI
22+ import FirebaseTwitterSwiftUI
23+ import SwiftUI
2524
2625struct ContentView : View {
2726 init ( ) {
28- // Auth.auth().useEmulator(withHost: "127.0.0.1", port: 9099)
27+ Auth . auth ( ) . useEmulator ( withHost: " 127.0.0.1 " , port: 9099 )
2928
3029 let actionCodeSettings = ActionCodeSettings ( )
3130
@@ -40,7 +39,7 @@ struct ContentView: View {
4039 emailLinkSignInActionCodeSettings: actionCodeSettings,
4140 mfaEnabled: true
4241 )
43-
42+
4443 authService = AuthService (
4544 configuration: configuration
4645 )
@@ -65,9 +64,9 @@ struct ContentView: View {
6564 )
6665 . withEmailSignIn ( )
6766 }
68-
67+
6968 let authService : AuthService
70-
69+
7170 var body : some View {
7271 NavigationStack {
7372 VStack ( spacing: 24 ) {
@@ -103,9 +102,11 @@ struct ContentView: View {
103102 . font ( . headline)
104103 . fontWeight ( . bold)
105104 Text ( " How to use with AuthService with a custom view " )
106- Text ( " • Build custom authentication UI \n • Direct AuthService method calls \n • Full control over user experience " )
107- . font ( . caption)
108- . foregroundColor ( . secondary)
105+ Text (
106+ " • Build custom authentication UI \n • Direct AuthService method calls \n • Full control over user experience "
107+ )
108+ . font ( . caption)
109+ . foregroundColor ( . secondary)
109110 }
110111 . multilineTextAlignment ( . leading)
111112 . padding ( )
0 commit comments