mirror of
https://github.com/yattee/yattee.git
synced 2024-09-19 17:01:32 +00:00
14 lines
302 B
Swift
14 lines
302 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
private struct InNavigationViewKey: EnvironmentKey {
|
|
static let defaultValue = false
|
|
}
|
|
|
|
extension EnvironmentValues {
|
|
var inNavigationView: Bool {
|
|
get { self[InNavigationViewKey.self] }
|
|
set { self[InNavigationViewKey.self] = newValue }
|
|
}
|
|
}
|