Remove all iOS 14 specific components and workarounds and comply with SwiftUI 3. Signed-off-by: kingbri <bdashore3@proton.me>
18 lines
327 B
Swift
18 lines
327 B
Swift
//
|
|
// UIDevice.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 2/16/23.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIDevice {
|
|
var hasNotch: Bool {
|
|
if #available(iOS 11.0, *) {
|
|
return UIApplication.shared.currentUIWindow?.safeAreaInsets.bottom ?? 0 > 0
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|