Skip to content

Commit

Permalink
Merge pull request #55 from Idea-Archive/54-autolayout-Responsive-change
Browse files Browse the repository at this point in the history
: πŸ”€ : λ°˜μ‘ν˜• μˆ˜μ •
  • Loading branch information
uuuunseo authored Sep 9, 2023
2 parents 6b59d14 + e745244 commit 43ac78f
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class FindPasswordVC: BaseVC {

override func setLayout(){
self.changePasswordLabel.snp.makeConstraints{
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(32)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.04)
$0.leading.equalTo(self.view).offset(28)
}
self.idTextField.snp.makeConstraints{
Expand Down
9 changes: 4 additions & 5 deletions Idea-Archive/Sources/Presentation/Login/View/LoginVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ final class LoginVC: BaseVC {

override func setLayout(){
self.loginLabel.snp.makeConstraints {
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(52)
$0.centerX.equalTo(view.snp.centerX)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.06)
$0.centerX.equalToSuperview()
}
self.textFieldStackView.snp.makeConstraints {
$0.height.equalTo(116)
Expand All @@ -149,12 +149,11 @@ final class LoginVC: BaseVC {
self.loginButton.snp.makeConstraints {
$0.height.equalTo(52)
$0.top.equalTo(passwordTextField.snp.bottom).offset(48)
$0.leading.equalTo(self.view).offset(24)
$0.centerX.equalTo(view.snp.centerX)
$0.leading.trailing.equalToSuperview().inset(24)
}
self.socialLoginButtonStackView.snp.makeConstraints {
$0.height.equalTo(36)
$0.bottom.equalToSuperview().inset(96)
$0.bottom.equalToSuperview().inset(bound.height * 0.07)
$0.centerX.equalToSuperview()
}
self.appleLoginButton.snp.makeConstraints{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class MakeNewPasswordVC: BaseVC {

override func setLayout(){
self.changePasswordLabel.snp.makeConstraints{
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(32)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.04)
$0.leading.equalTo(self.view).offset(28)
}
self.passwordInformLabel.snp.makeConstraints{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class CertificationNumberVC: BaseVC {

override func setLayout() {
self.certificationNoticeLabel.snp.makeConstraints{
$0.top.equalTo(view.safeAreaLayoutGuide).offset(40)
$0.top.equalTo(view.safeAreaLayoutGuide).inset(bound.height * 0.04)
$0.leading.equalTo(self.view).offset(40)
}
self.sentCertificationLabel.snp.makeConstraints{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class FailAuthVC: BaseVC {

override func setLayout(){
failAuthorizeImage.snp.makeConstraints{
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(102)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.14)
$0.centerX.equalTo(view.snp.centerX)
}
failAuthorizeLabel.snp.makeConstraints{
Expand All @@ -52,7 +52,7 @@ final class FailAuthVC: BaseVC {
}
goBackToLoginButton.snp.makeConstraints{
$0.height.equalTo(52)
$0.bottom.equalTo(self.view.safeAreaLayoutGuide).inset(18)
$0.bottom.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.03)
$0.leading.trailing.equalTo(self.view).inset(28)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class SuccessAuthVC: BaseVC {

override func setLayout(){
self.successImage.snp.makeConstraints{
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(102)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.14)
$0.centerX.equalTo(view.snp.centerX)
}
self.successAuthorizeLabel.snp.makeConstraints{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class SignupVC: BaseVC {

override func setLayout(){
self.signupLabel.snp.makeConstraints{
$0.top.equalTo(self.view.safeAreaLayoutGuide).offset(52)
$0.top.equalTo(self.view.safeAreaLayoutGuide).inset(bound.height * 0.06)
$0.centerX.equalTo(view.snp.centerX)
}
self.nameTextField.snp.makeConstraints{
Expand Down
2 changes: 1 addition & 1 deletion Idea-Archive/Sources/Utility/Base/BaseVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Moya

class BaseVC: UIViewController {
// MARK: - Properties
let bounds = UIScreen().bounds
let bound = UIScreen.main.bounds
// MARK: - LifeCycle
override func viewDidLoad() {
super.viewDidLoad()
Expand Down
84 changes: 43 additions & 41 deletions Idea-Archive/Support/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,48 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleIdentifier</key>
<string>.class.Idea-Archive</string>
<key>CFBundleExecutable</key>
<string>Idea_Archive</string>
<key>UIAppFonts</key>
<array>
<string>Pretendard-Bold.otf</string>
<string>Pretendard-ExtraBold.otf</string>
<string>Pretendard-ExtraLight.otf</string>
<string>Pretendard-Light.otf</string>
<string>Pretendard-Medium.otf</string>
<string>Pretendard-Regular.otf</string>
<string>Pretendard-SemiBold.otf</string>
<string>Pretendard-Thin.otf</string>
</array>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
</dict>
</array>
</dict>
</dict>
<key>CFBundleExecutable</key>
<string>Idea_Archive</string>
<key>CFBundleIdentifier</key>
<string>.class.Idea-Archive</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIAppFonts</key>
<array>
<string>Pretendard-Bold.otf</string>
<string>Pretendard-ExtraBold.otf</string>
<string>Pretendard-ExtraLight.otf</string>
<string>Pretendard-Light.otf</string>
<string>Pretendard-Medium.otf</string>
<string>Pretendard-Regular.otf</string>
<string>Pretendard-SemiBold.otf</string>
<string>Pretendard-Thin.otf</string>
</array>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
</dict>
</array>
</dict>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen.storyboard</string>
</dict>
</plist>

0 comments on commit 43ac78f

Please sign in to comment.