mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
16 lines
331 B
Swift
16 lines
331 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
final class SafeAreaModel: ObservableObject {
|
|
static var shared = SafeAreaModel()
|
|
@Published var safeArea = EdgeInsets()
|
|
|
|
var horizontalInsets: Double {
|
|
safeArea.leading + safeArea.trailing
|
|
}
|
|
|
|
var verticalInsets: Double {
|
|
safeArea.top + safeArea.bottom
|
|
}
|
|
}
|