From c8c424cb18a1ffdbc61fd9f26850b0e862708efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:05:14 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#154=20=EB=94=94=EB=B0=94=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=20=EB=B6=84=EA=B8=B0=20extension=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Extension/UIDevice+Extension.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Projects/Util/Sources/Extension/UIDevice+Extension.swift diff --git a/Projects/Util/Sources/Extension/UIDevice+Extension.swift b/Projects/Util/Sources/Extension/UIDevice+Extension.swift new file mode 100644 index 00000000..5a03fd07 --- /dev/null +++ b/Projects/Util/Sources/Extension/UIDevice+Extension.swift @@ -0,0 +1,18 @@ +// +// UIDevice+Extension.swift +// Util +// +// Created by κΉ€λ„ν˜• on 10/24/24. +// + +import UIKit + +public extension UIDevice { + static let device = UIDevice.current.userInterfaceIdiom + + static let isPhone: Bool = device == .phone + + static let isPad: Bool = device == .pad + + static let isMac: Bool = device == .mac +}