@@ -12,11 +12,12 @@ class LoginSheetView: UIView {
12
12
let logo = UIImageView ( )
13
13
logo. translatesAutoresizingMaskIntoConstraints = false
14
14
logo. image = UIImage ( named: " workationlogo " )
15
+ logo. contentMode = . scaleAspectFit
15
16
16
17
return logo
17
18
} ( )
18
19
19
- private let guideLable : UILabel = {
20
+ private let guideLabel : UILabel = {
20
21
let guide = UILabel ( )
21
22
guide. translatesAutoresizingMaskIntoConstraints = false
22
23
guide. setLineHeight ( lineHeight: 6 )
@@ -48,14 +49,14 @@ class LoginSheetView: UIView {
48
49
} ( )
49
50
50
51
lazy var appleLoginButton : LoginButtonView = {
51
- let loginButton = LoginButtonView ( logo: UIImage ( named: " applelogo " ) , guideance : " Apple로 게속하기 " )
52
+ let loginButton = LoginButtonView ( logo: UIImage ( named: " applelogo " ) , loginCase : . apple )
52
53
loginButton. translatesAutoresizingMaskIntoConstraints = false
53
54
54
55
return loginButton
55
56
} ( )
56
57
57
58
lazy var googleLoginButton : LoginButtonView = {
58
- let loginButton = LoginButtonView ( logo: UIImage ( named: " googlelogo " ) , guideance : " Google로 계속하기 " )
59
+ let loginButton = LoginButtonView ( logo: UIImage ( named: " googlelogo " ) , loginCase : . google )
59
60
loginButton. translatesAutoresizingMaskIntoConstraints = false
60
61
61
62
return loginButton
@@ -84,10 +85,10 @@ class LoginSheetView: UIView {
84
85
logoImageView. heightAnchor. constraint ( equalToConstant: 20 )
85
86
] )
86
87
87
- addSubview ( guideLable )
88
+ addSubview ( guideLabel )
88
89
NSLayoutConstraint . activate ( [
89
- guideLable . centerXAnchor. constraint ( equalTo: self . centerXAnchor) ,
90
- guideLable . topAnchor. constraint ( equalTo: logoImageView. bottomAnchor, constant: 36.5 )
90
+ guideLabel . centerXAnchor. constraint ( equalTo: self . centerXAnchor) ,
91
+ guideLabel . topAnchor. constraint ( equalTo: logoImageView. bottomAnchor, constant: 36.5 )
91
92
] )
92
93
93
94
addSubview ( closeButton)
@@ -98,24 +99,24 @@ class LoginSheetView: UIView {
98
99
closeButton. bottomAnchor. constraint ( equalTo: self . topAnchor, constant: 48 ) // 20 + 28
99
100
] )
100
101
101
- let appleTabGesture = UITapGestureRecognizer ( target: self , action: #selector( handleAppleLogin) )
102
- appleLoginButton. addGestureRecognizer ( appleTabGesture)
103
- addSubview ( appleLoginButton)
104
- NSLayoutConstraint . activate ( [
105
- appleLoginButton. topAnchor. constraint ( equalTo: self . topAnchor, constant: 173 ) ,
106
- appleLoginButton. trailingAnchor. constraint ( equalTo: self . centerXAnchor, constant: - 6 ) ,
107
- appleLoginButton. leadingAnchor. constraint ( equalTo: self . leadingAnchor, constant: 30 ) ,
108
- appleLoginButton. bottomAnchor. constraint ( equalTo: self . topAnchor, constant: 280 )
109
- ] )
110
-
111
102
let googleTabGesture = UITapGestureRecognizer ( target: self , action: #selector( handleGoogleLogin) )
112
103
googleLoginButton. addGestureRecognizer ( googleTabGesture)
113
104
addSubview ( googleLoginButton)
114
105
NSLayoutConstraint . activate ( [
115
- googleLoginButton. topAnchor. constraint ( equalTo: self . topAnchor, constant: 173 ) ,
116
- googleLoginButton. leadingAnchor. constraint ( equalTo: self . centerXAnchor, constant: 6 ) ,
117
106
googleLoginButton. trailingAnchor. constraint ( equalTo: self . trailingAnchor, constant: - 30 ) ,
118
- googleLoginButton. bottomAnchor. constraint ( equalTo: self . topAnchor, constant: 280 )
107
+ googleLoginButton. leadingAnchor. constraint ( equalTo: self . leadingAnchor, constant: 30 ) ,
108
+ googleLoginButton. heightAnchor. constraint ( equalToConstant: 50 )
109
+ ] )
110
+
111
+ let appleTabGesture = UITapGestureRecognizer ( target: self , action: #selector( handleAppleLogin) )
112
+ appleLoginButton. addGestureRecognizer ( appleTabGesture)
113
+ addSubview ( appleLoginButton)
114
+ NSLayoutConstraint . activate ( [
115
+ appleLoginButton. trailingAnchor. constraint ( equalTo: self . trailingAnchor, constant: - 30 ) ,
116
+ appleLoginButton. leadingAnchor. constraint ( equalTo: self . leadingAnchor, constant: 30 ) ,
117
+ appleLoginButton. heightAnchor. constraint ( equalToConstant: 50 ) ,
118
+ appleLoginButton. bottomAnchor. constraint ( equalTo: self . layoutMarginsGuide. bottomAnchor, constant: 0 ) ,
119
+ appleLoginButton. topAnchor. constraint ( equalTo: googleLoginButton. bottomAnchor, constant: 10 )
119
120
] )
120
121
}
121
122
0 commit comments