Open task views in a sheet over the left pane
This commit is contained in:
@@ -173,7 +173,7 @@ private struct PaneAccentKey: EnvironmentKey {
|
||||
static let defaultValue = Palette.accent
|
||||
}
|
||||
|
||||
private struct InRightPaneKey: EnvironmentKey {
|
||||
private struct InTaskKey: EnvironmentKey {
|
||||
static let defaultValue = false
|
||||
}
|
||||
|
||||
@@ -187,12 +187,12 @@ extension EnvironmentValues {
|
||||
}
|
||||
}
|
||||
|
||||
var inRightPane: Bool {
|
||||
var inTask: Bool {
|
||||
get {
|
||||
self[InRightPaneKey.self]
|
||||
self[InTaskKey.self]
|
||||
}
|
||||
set {
|
||||
self[InRightPaneKey.self] = newValue
|
||||
self[InTaskKey.self] = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user