mirror of
https://github.com/SagerNet/sing-box-for-apple.git
synced 2026-06-03 11:37:44 +00:00
13 lines
367 B
Swift
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 }
|
|
}
|
|
}
|