mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-18 05:00:35 +00:00
14 lines
293 B
Swift
14 lines
293 B
Swift
|
import Foundation
|
||
|
import SwiftUI
|
||
|
|
||
|
private struct SecondaryColumnKey: EnvironmentKey {
|
||
|
static let defaultValue = false
|
||
|
}
|
||
|
|
||
|
extension EnvironmentValues {
|
||
|
public var isSecondaryColumn: Bool {
|
||
|
get { self[SecondaryColumnKey.self] }
|
||
|
set { self[SecondaryColumnKey.self] = newValue }
|
||
|
}
|
||
|
}
|