mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
import AppleAPI
|
|
import Path
|
|
import SwiftUI
|
|
|
|
struct ExperimentsPreferencePane: View {
|
|
@EnvironmentObject var appState: AppState
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: 20) {
|
|
GroupBox(label: Text("FasterUnxip")) {
|
|
VStack(alignment: .leading) {
|
|
Toggle(
|
|
"UseUnxipExperiment",
|
|
isOn: $appState.unxipExperiment
|
|
)
|
|
Text("FasterUnxipDescription")
|
|
.font(.footnote)
|
|
.foregroundStyle(.secondary)
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
}
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
}
|
|
.groupBoxStyle(PreferencesGroupBoxStyle())
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ExperimentsPreferencePane_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
Group {
|
|
ExperimentsPreferencePane()
|
|
.environmentObject(AppState())
|
|
.frame(maxWidth: 600)
|
|
}
|
|
}
|
|
}
|