Skip to content

Commit

Permalink
[FEAT] ScreenUtils 보완 - 비율 프로퍼티 생성 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim830 authored Jan 15, 2025
2 parents c1cacc9 + c85f047 commit 393d258
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ACON-iOS/ACON-iOS/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
self.window = UIWindow(windowScene: windowScene)
let navigationController = UINavigationController(rootViewController: LoginViewController())
navigationController.navigationBar.isHidden = true
// self.window?.rootViewController = navigationController
self.window?.rootViewController = SpotListFilterViewController()
self.window?.rootViewController = navigationController
self.window?.makeKeyAndVisible()
}

Expand Down
13 changes: 13 additions & 0 deletions ACON-iOS/ACON-iOS/Global/Utils/ScreenUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,17 @@ struct ScreenUtils {
return UIScreen.main.bounds.height
}


// MARK: - 비율 프로퍼티

static var widthRatio: CGFloat {
let figmaWidth: CGFloat = 360
return width / figmaWidth
}

static var heightRatio: CGFloat {
let figmaHeight: CGFloat = 780
return height / figmaHeight
}

}

0 comments on commit 393d258

Please sign in to comment.