Skip to content

Commit

Permalink
RINGO-59 Design: SafeArea 고려
Browse files Browse the repository at this point in the history
디테일 추가 및 SafeArea 고려한 레이아웃 위치 변경
  • Loading branch information
hhyukjin committed Jan 31, 2024
1 parent 1337f44 commit 14cbb74
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions iOS/Ringo/Ringo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class ViewController: UIViewController {
signupBtn.setTitle("Sign up here!", for: .normal)
signupBtn.setTitleColor(.systemBlue, for: .normal)
signupBtn.titleLabel?.font = .systemFont(ofSize: 18)
signupBtn.setTitleColor(.systemBlue.withAlphaComponent(0.5), for: .highlighted)

email.text = "E-mail"
email.font = .preferredFont(forTextStyle: .body)
Expand Down Expand Up @@ -108,6 +109,7 @@ class ViewController: UIViewController {
forgotPwBtn.setTitle("Forgot Password?", for: .normal)
forgotPwBtn.setTitleColor(.systemBlue, for: .normal)
forgotPwBtn.titleLabel?.font = .systemFont(ofSize: 13)
forgotPwBtn.setTitleColor(.systemBlue.withAlphaComponent(0.5), for: .highlighted)

signinBtn.configuration = button_filled
signinBtn.configuration?.buttonSize = .large
Expand All @@ -128,9 +130,8 @@ class ViewController: UIViewController {
}

func setConstraints(){

Text1.snp.makeConstraints { make in
make.top.equalToSuperview().offset(30)
make.top.equalTo(view.safeAreaLayoutGuide).offset(30)
make.leading.equalToSuperview().offset(30)
}

Expand Down Expand Up @@ -183,7 +184,7 @@ class ViewController: UIViewController {
}

Text4.snp.makeConstraints { make in
make.top.equalTo(signinBtn.snp.bottom).offset(150)
make.bottom.equalTo(view.safeAreaLayoutGuide).offset(-110)
make.centerX.equalToSuperview()
}

Expand Down Expand Up @@ -221,7 +222,7 @@ struct ViewControllerRepresentable: UIViewControllerRepresentable {
@available(iOS 13.0.0, *)
struct ViewPreview: PreviewProvider {
static var previews: some View {
ViewControllerRepresentable()
ViewControllerRepresentable().edgesIgnoringSafeArea(.all)
}
}

Expand Down

0 comments on commit 14cbb74

Please sign in to comment.