Skip to content

Commit

Permalink
[feat] #154 디바이스 분기 extension 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 24, 2024
1 parent 86be574 commit c8c424c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Projects/Util/Sources/Extension/UIDevice+Extension.swift
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit c8c424c

Please sign in to comment.