Skip to content

Commit

Permalink
[#90] LoginView 컨벤션 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
CJiu01 committed Nov 27, 2024
1 parent 43e671e commit bd04b70
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 181 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ extension ReviewRouter: TargetType, AccessTokenAuthorizable {

var headers: [String : String]? {
switch self {
case .reviewRate, .reviewList:
case .reviewRate:
return ["Content-Type":"application/json"]
default:
let token = RealmService.shared.getToken()
Expand Down
104 changes: 52 additions & 52 deletions EATSSU_MVC/EATSSU_MVC/Sources/Presentation/Auth/View/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,62 @@ import Then
import EATSSUDesign

final class LoginView: BaseUIView {
// MARK: - UI Components
// MARK: - UI Components

private let logoImage = UIImageView().then {
$0.image = EATSSUAsset.Images.Version2.authLogo.image
}

private let logoSubTitle = UIImageView().then { imageView in
imageView.image = EATSSUAsset.Images.Version2.authSubTitle.image
}
private let logoImage = UIImageView().then {
$0.image = EATSSUAsset.Images.Version2.authLogo.image
}

let appleLoginButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.appleLoginButton.image, for: .normal)
}

let kakaoLoginButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.kakaoLoginButton.image, for: .normal)
}
private let logoSubTitle = UIImageView().then { imageView in
imageView.image = EATSSUAsset.Images.Version2.authSubTitle.image
}

let appleLoginButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.appleLoginButton.image, for: .normal)
}

let kakaoLoginButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.kakaoLoginButton.image, for: .normal)
}

let lookingWithNoSignInButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.lookAroundButton.image, for: .normal)
}
let lookingWithNoSignInButton = UIButton().then { button in
button.setImage(EATSSUAsset.Images.Version2.lookAroundButton.image, for: .normal)
}

override func configureUI() {
addSubviews(
logoImage,
logoSubTitle,
appleLoginButton,
kakaoLoginButton,
lookingWithNoSignInButton
)
}
override func configureUI() {
addSubviews(
logoImage,
logoSubTitle,
appleLoginButton,
kakaoLoginButton,
lookingWithNoSignInButton
)
}

override func setLayout() {
logoImage.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalToSuperview().inset(223)
}
override func setLayout() {
logoImage.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalToSuperview().inset(223)
}

logoSubTitle.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalTo(logoImage.snp.bottom)
}

appleLoginButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(151)
}

kakaoLoginButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(90)
}

logoSubTitle.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalTo(logoImage.snp.bottom)
}

appleLoginButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(151)
}

kakaoLoginButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(90)
}

lookingWithNoSignInButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(30)
}
}
lookingWithNoSignInButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.bottom.equalTo(self.safeAreaLayoutGuide).inset(30)
}
}
}

0 comments on commit bd04b70

Please sign in to comment.