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 +}