Skip to content

Commit

Permalink
✨ :: [#210] SigninViewController / dotoriSubTitle 추가, 레이아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Nov 26, 2023
1 parent 53745e1 commit d8d0d3f
Showing 1 changed file with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,62 @@ 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)
.set(\.numberOfLines, 0)
.set(\.textAlignment, .center)
private let signinButton = GAuthButton(
auth: .signin,
color: .colored,
rounded: .default
)

Check warning on line 31 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
override func addView() {
view.addSubviews {
dotoriLogoImageView
dotoriSubTitle
signinButton
}
}

Check warning on line 39 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
override func setLayout() {
MSGLayout.buildLayout {
dotoriLogoImageView.layout
.centerX(.toSuperview())
.top(.to(view.safeAreaLayoutGuide).top, .equal(20))
.top(.to(view.safeAreaLayoutGuide).top, .equal(233))
.height(41)


Check warning on line 46 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
dotoriSubTitle.layout
.centerX(.toSuperview())
.top(.to(dotoriLogoImageView).bottom, .equal(21))

Check warning on line 50 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
signinButton.layout
.centerX(.toSuperview())
.horizontal(.toSuperview(), .equal(20))
.bottom(.toSuperview(), .equal(-60))
.bottom(.to(view.safeAreaLayoutGuide), .equal(-60))
.height(50)
}
}

Check warning on line 58 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
override func configureViewController() {
self.view.backgroundColor = .dotori(.background(.card))
}

Check warning on line 62 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
override func configureNavigation() {
self.navigationItem.title = L10n.Signin.loginNavigationTitle
}

Check warning on line 66 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
override func bindAction() {
signinButton.tapPublisher
.map { Store.Action.signinButtonDidTap }
.sink(receiveValue: store.send(_:))
.store(in: &subscription)
}
}

Check warning on line 74 in Projects/Feature/SigninFeature/Sources/Scene/SigninViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Newline Violation: Files should have a single trailing newline (trailing_newline)

0 comments on commit d8d0d3f

Please sign in to comment.