Skip to content

Commit

Permalink
♻️ :: [#210] SigninViewController / lint, 줄바꿈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Nov 27, 2023
1 parent d8d0d3f commit ff2ca6f
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,63 @@ final class SigninViewController: BaseStoredViewController<SigninStore> {
private let dotoriLogoImageView = UIImageView()
.set(
\.image,
.Dotori.dotoriSigninLogo
.Dotori.dotoriSigninLogo
.withRenderingMode(.alwaysTemplate)
.withTintColor(.dotori(.primary(.p10)))
.resize(width: 182, height: 41)
)
private let dotoriSubTitle = DotoriLabel(
"광주소프트웨어마이스터고\n기숙사 관리 시스템, DOTORI",
textColor: .neutral(.n20), font: .subtitle2)
textColor: .neutral(.n20),
font: .subtitle2
)
.set(\.numberOfLines, 0)
.set(\.textAlignment, .center)
private let signinButton = GAuthButton(
auth: .signin,
color: .colored,
rounded: .default
)

override func addView() {
view.addSubviews {
dotoriLogoImageView
dotoriSubTitle
signinButton
}
}

override func setLayout() {
MSGLayout.buildLayout {
dotoriLogoImageView.layout
.centerX(.toSuperview())
.top(.to(view.safeAreaLayoutGuide).top, .equal(233))
.height(41)

dotoriSubTitle.layout
.centerX(.toSuperview())
.top(.to(dotoriLogoImageView).bottom, .equal(21))

signinButton.layout
.centerX(.toSuperview())
.horizontal(.toSuperview(), .equal(20))
.bottom(.to(view.safeAreaLayoutGuide), .equal(-60))
.height(50)
}
}

override func configureViewController() {
self.view.backgroundColor = .dotori(.background(.card))
}

override func configureNavigation() {
self.navigationItem.title = L10n.Signin.loginNavigationTitle
}

override func bindAction() {
signinButton.tapPublisher
.map { Store.Action.signinButtonDidTap }
.sink(receiveValue: store.send(_:))
.store(in: &subscription)
}
}

0 comments on commit ff2ca6f

Please sign in to comment.