The overall UI of Ferrite has been changed to make animations smoother and streamline the experiences. A new search filter interface has been added for all iOS versions, but iOS 15 and up have smooth UI applied due to bugs with searchbars in iOS 14 (which shouldn't even have a searchbar in the first place). Also fix the plugin fetching logic to not listen to a combine publisher and instead use a notification that is easier to control. Signed-off-by: kingbri <bdashore3@proton.me>
18 lines
366 B
Swift
18 lines
366 B
Swift
//
|
|
// UIDevice.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 2/16/23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
extension UIDevice {
|
|
var hasNotch: Bool {
|
|
if #available(iOS 11.0, *) {
|
|
let keyWindow = UIApplication.shared.windows.filter(\.isKeyWindow).first
|
|
return keyWindow?.safeAreaInsets.bottom ?? 0 > 0
|
|
}
|
|
return false
|
|
}
|
|
}
|