mirror of
https://github.com/yattee/yattee.git
synced 2025-10-09 17:08:15 +00:00
Fix various issues
This commit is contained in:
@@ -4,4 +4,12 @@ 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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user