3 struct OutputSettings: View {
5 @AppStorage("outputFormats") var outputFormats: OutputFormatSetting = .all
6 @AppStorage("frameRate") var frameRate = 10.0
10 VStack (alignment: .center) {
11 LabeledContent("GIF Framerate") {
12 Slider(value: $frameRate, in: 4...10, step: 1) {
13 Text("\(Int(frameRate))").font(.body).frame(width: 24)
14 } minimumValueLabel: {
16 } maximumValueLabel: {
20 Picker(selection: $outputFormats, label: Text("Output Formats").font(.headline)) {
22 .tag(OutputFormatSetting.all)
23 .padding(.horizontal, 4.0)
24 .padding(.vertical, 2.0)
26 .tag(OutputFormatSetting.gifOnly)
27 .padding(.horizontal, 4.0)
28 .padding(.vertical, 2.0)
31 .tag(OutputFormatSetting.mp4Only)
32 .padding(.horizontal, 4.0)
33 .padding(.vertical, 2.0)
34 }.pickerStyle(.radioGroup)