Files
2026-05-25 13:28:53 +08:00

13 lines
367 B
Swift

import SwiftUI
public struct GhosttyConfigEditorKey: EnvironmentKey {
public static let defaultValue: ((Binding<String>) -> AnyView)? = nil
}
public extension EnvironmentValues {
var ghosttyConfigEditor: ((Binding<String>) -> AnyView)? {
get { self[GhosttyConfigEditorKey.self] }
set { self[GhosttyConfigEditorKey.self] = newValue }
}
}