Taehyeon-Kim / Mogakco

🕹 위치 기반 스터디 매칭 서비스
https://github.com/Taehyeon-Kim/Mogakco/wiki
2 stars 0 forks source link

[#9] 스플래시 뷰 레이아웃 구현 #11

Closed Taehyeon-Kim closed 1 year ago

Taehyeon-Kim commented 1 year ago

🔍 What is this PR?

스플래시 뷰 레이아웃 구현

$0.contentMode = .scaleAspectFit
override func setLayout() {
    splashLogoImageView.snp.makeConstraints {
        $0.top.equalTo(view.safeAreaLayoutGuide).offset(Metric.logoTopMargin.adjustedHeight)
        $0.width.equalTo(Metric.logoWidth.adjustedWidth)
        $0.height.equalTo(Metric.logoHeight.adjustedHeight)
        $0.centerX.equalToSuperview()
    }

    splashTextImageView.snp.makeConstraints {
        $0.top.equalTo(splashLogoImageView.snp.bottom).offset(Metric.textTopMargin.adjustedHeight)
        $0.width.equalTo(Metric.textWidth.adjustedWidth)
        $0.height.equalTo(Metric.textHeight.adjustedHeight)
        $0.centerX.equalTo(splashLogoImageView.snp.centerX)
    }
}

📝 Changes

📸 Screenshot

구현 내용 스크린샷
iPhone 8
iPhone 14 Pro

☑️ Test Checklist

📮 Issue

SwiftTBot commented 1 year ago

All File Checked 📝

LGTM✨ No Errors or Warnings Found

Good Job!

SwiftLint all file passed!! 고생하셨습니다!!

Generated by :no_entry_sign: Danger

Taehyeon-Kim commented 1 year ago