From 2b063c8c75ee181d1e45fcf31024b2b9ee20340a Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Wed, 22 Feb 2023 13:16:31 +0100 Subject: [PATCH] Align picker left --- Diffusion-macOS/ControlsView.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Diffusion-macOS/ControlsView.swift b/Diffusion-macOS/ControlsView.swift index b0a68a1..ab4b6e6 100644 --- a/Diffusion-macOS/ControlsView.swift +++ b/Diffusion-macOS/ControlsView.swift @@ -303,12 +303,14 @@ struct ControlsView: View { if Capabilities.hasANE { Divider() DisclosureGroup(isExpanded: $disclosedAdvanced) { - Picker(selection: $generation.computeUnits, label: Text("Use")) { - Text("GPU").tag(ComputeUnits.cpuAndGPU) - Text("Neural Engine").tag(ComputeUnits.cpuAndNeuralEngine) - Text("GPU and Neural Engine").tag(ComputeUnits.all) + HStack { + Picker(selection: $generation.computeUnits, label: Text("Use")) { + Text("GPU").tag(ComputeUnits.cpuAndGPU) + Text("Neural Engine").tag(ComputeUnits.cpuAndNeuralEngine) + Text("GPU and Neural Engine").tag(ComputeUnits.all) + }.pickerStyle(.radioGroup).padding(.leading) + Spacer() } - .pickerStyle(.radioGroup) .onChange(of: generation.computeUnits) { units in guard let currentModel = ModelInfo.from(modelVersion: model) else { return } let variantDownloaded = isModelDownloaded(currentModel, computeUnits: units)