@@ -35,55 +35,55 @@ struct LoginView: View {
35
35
36
36
Spacer ( )
37
37
38
- Button {
39
- viewStore . send ( . kakaoLoginButtonTapped )
40
- } label : {
41
- HStack {
42
- CofficeAsset . Asset . kakaoLogo18px . swiftUIImage
43
- . frame ( width : 18 , height : 18 )
44
- Text ( " 카카오톡으로 로그인 " )
45
- . tint ( . black )
46
- . applyCofficeFont ( font : . subtitleSemiBold )
47
- }
48
- . frame ( maxWidth : . infinity )
38
+ Spacer ( )
39
+
40
+ Button {
41
+ viewStore . send ( . kakaoLoginButtonTapped )
42
+ } label : {
43
+ HStack {
44
+ CofficeAsset . Asset . kakaoLogo18px . swiftUIImage
45
+ . frame ( width : 18 , height : 18 )
46
+ Text ( " 카카오톡으로 로그인 " )
47
+ . tint ( . black )
48
+ . applyCofficeFont ( font : . subtitleSemiBold )
49
49
}
50
- . frame ( height: 52 )
51
- . background ( CofficeAsset . Colors. kakao. swiftUIColor)
52
- . cornerRadius ( 25 )
53
- . padding ( . bottom, 16 )
50
+ . frame ( maxWidth: . infinity)
51
+ }
52
+ . frame ( height: 52 )
53
+ . background ( CofficeAsset . Colors. kakao. swiftUIColor)
54
+ . cornerRadius ( 25 )
55
+ . padding ( . bottom, 16 )
54
56
55
- SignInWithAppleButton { request in
56
- request. requestedScopes = [ ]
57
- } onCompletion: { result in
58
- switch result {
59
- case . success( let authResults) :
60
- guard let appleIDCredential = authResults. credential as? ASAuthorizationAppleIDCredential ,
61
- let identityToken = appleIDCredential. identityToken,
62
- let token = String ( data: identityToken, encoding: . utf8) else {
63
- return
64
- }
65
- viewStore. send ( . appleLoginButtonTapped( token: token) )
66
- case . failure( let error) :
67
- debugPrint ( error)
57
+ SignInWithAppleButton { request in
58
+ request. requestedScopes = [ ]
59
+ } onCompletion: { result in
60
+ switch result {
61
+ case . success( let authResults) :
62
+ guard let appleIDCredential = authResults. credential as? ASAuthorizationAppleIDCredential ,
63
+ let identityToken = appleIDCredential. identityToken,
64
+ let token = String ( data: identityToken, encoding: . utf8) else {
65
+ return
68
66
}
67
+ viewStore. send ( . appleLoginButtonTapped( token: token) )
68
+ case . failure( let error) :
69
+ debugPrint ( error)
69
70
}
70
- . cornerRadius ( 25 )
71
- . frame ( height: 50 )
72
- . padding ( . bottom, 24 )
71
+ }
72
+ . cornerRadius ( 25 )
73
+ . frame ( height: 50 )
74
+ . padding ( . bottom, 24 )
73
75
74
- HStack ( spacing: 4 ) {
75
- Text ( " 회원가입 없이 " )
76
- Button {
77
- viewStore. send ( . lookAroundButtonTapped)
78
- } label: {
79
- Text ( " 둘러보기 " )
80
- . foregroundColor ( CofficeAsset . Colors. secondary1. swiftUIColor)
81
- }
76
+ HStack ( spacing: 4 ) {
77
+ Text ( " 회원가입 없이 " )
78
+ Button {
79
+ viewStore. send ( . lookAroundButtonTapped)
80
+ } label: {
81
+ Text ( " 둘러보기 " )
82
+ . foregroundColor ( CofficeAsset . Colors. secondary1. swiftUIColor)
82
83
}
83
- . applyCofficeFont ( font: . body1Medium)
84
- . hiddenWithOpacity ( isHidden: viewStore. isOnboarding. isFalse)
85
84
}
86
- . padding ( EdgeInsets ( top: 163 , leading: 36 , bottom: 129 , trailing: 36 ) )
85
+ . applyCofficeFont ( font: . body1Medium)
86
+ . hiddenWithOpacity ( isHidden: viewStore. isOnboarding. isFalse)
87
87
}
88
88
. navigationBarHidden ( true )
89
89
. padding ( EdgeInsets ( top: 163 , leading: 36 , bottom: 129 , trailing: 36 ) )
0 commit comments