Skip to content

Commit

Permalink
[#90] 모달 color 속성 제거 및 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
CJiu01 committed Nov 28, 2024
1 parent 3f8655d commit 7f2419e
Showing 1 changed file with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,43 +35,30 @@ final class LoginPromptViewController: BaseViewController {
$0.numberOfLines = 0
$0.font = EATSSUFontFamily.Pretendard.bold.font(size: 18)
$0.setContentHuggingPriority(.defaultHigh, for: .vertical)
$0.backgroundColor = .green
}

appleLoginButton.do {
$0.setImage(EATSSUAsset.Images.Version2.appleLoginButton.image, for: .normal)
$0.backgroundColor = .lightGray

}

kakaoLoginButton.do {
$0.setImage(EATSSUAsset.Images.Version2.kakaoLoginButton.image, for: .normal)
$0.backgroundColor = .purple
}

buttonView.do {
$0.backgroundColor = .red
}

buttonStackView.do {
$0.axis = .vertical
$0.spacing = 8
$0.backgroundColor = .blue

}

loginPromptStackView.do {
$0.axis = .vertical
$0.backgroundColor = .yellow
}
}

override func configureUI() {
view.addSubview(
loginPromptStackView
)
view.addSubview(loginPromptStackView)
buttonView.addSubview(buttonStackView)

buttonStackView.addArrangedSubviews([appleLoginButton,
kakaoLoginButton])
loginPromptStackView.addArrangedSubviews([loginAlertLabel,
Expand All @@ -81,12 +68,12 @@ final class LoginPromptViewController: BaseViewController {
override func setLayout() {
loginAlertLabel.snp.makeConstraints {
$0.top.equalToSuperview()

}

buttonStackView.snp.makeConstraints{
$0.center.equalToSuperview()
}

loginPromptStackView.snp.makeConstraints {
$0.horizontalEdges.equalToSuperview().inset(30)
$0.height.equalToSuperview().multipliedBy(0.7)
Expand Down

0 comments on commit 7f2419e

Please sign in to comment.