Skip to content

Commit

Permalink
[Set/#1] UIScreen extension추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Dec 29, 2023
1 parent 1deb723 commit 35246f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HMH_iOS/HMH_iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
36A3D9B62B3EBBF7007EA272 /* Adjust+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36A3D9B52B3EBBF7007EA272 /* Adjust+.swift */; };
36A3D9B82B3EBC3B007EA272 /* UILabel+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36A3D9B72B3EBC3B007EA272 /* UILabel+.swift */; };
36A3D9BA2B3EBC65007EA272 /* UIButton+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36A3D9B92B3EBC65007EA272 /* UIButton+.swift */; };
36A3D9BC2B3EBD2D007EA272 /* UIScreen+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36A3D9BB2B3EBD2D007EA272 /* UIScreen+.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -71,6 +72,7 @@
36A3D9B52B3EBBF7007EA272 /* Adjust+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Adjust+.swift"; sourceTree = "<group>"; };
36A3D9B72B3EBC3B007EA272 /* UILabel+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UILabel+.swift"; sourceTree = "<group>"; };
36A3D9B92B3EBC65007EA272 /* UIButton+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIButton+.swift"; sourceTree = "<group>"; };
36A3D9BB2B3EBD2D007EA272 /* UIScreen+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIScreen+.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -176,6 +178,7 @@
36A3D9B92B3EBC65007EA272 /* UIButton+.swift */,
36A3D9B52B3EBBF7007EA272 /* Adjust+.swift */,
36A3D9B72B3EBC3B007EA272 /* UILabel+.swift */,
36A3D9BB2B3EBD2D007EA272 /* UIScreen+.swift */,
);
path = Extension;
sourceTree = "<group>";
Expand Down Expand Up @@ -437,6 +440,7 @@
0B8A89B52B369F0100688BA6 /* B.swift in Sources */,
0B8A89B12B369E4C00688BA6 /* HomeView.swift in Sources */,
36A3D9B62B3EBBF7007EA272 /* Adjust+.swift in Sources */,
36A3D9BC2B3EBD2D007EA272 /* UIScreen+.swift in Sources */,
0B50F9CD2B369813000C5046 /* SceneDelegate.swift in Sources */,
36A3D9B42B3EBBED007EA272 /* UIStackView+.swift in Sources */,
0B8A89B32B369EF700688BA6 /* A.swift in Sources */,
Expand Down
14 changes: 14 additions & 0 deletions HMH_iOS/HMH_iOS/Global/Extension/UIScreen+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// UIScreen+.swift
// HMH_iOS
//
// Created by 지희의 MAC on 12/29/23.
//

import UIKit

extension UIScreen {
var isWiderThan375pt: Bool { self.bounds.size.width > 375 }
var isLongerThan812pt: Bool {self.bounds.size.height >= 812}
}

0 comments on commit 35246f0

Please sign in to comment.