Skip to content

Commit

Permalink
Center toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCulbertson authored Oct 10, 2024
1 parent 52988de commit 0c2942f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public struct ParameterRow: View {
case .boolean:
Toggle("", isOn: Binding(get: { param.value == 1.0 }, set: {
param.value = $0 ? 1.0 : 0.0; refresher.version += 1
}))
})).labelsHidden()
case .indexed:
if param.range.upperBound - param.range.lowerBound < 5 {
Picker(param.def.name, selection: getIntBinding()) {
Expand Down

0 comments on commit 0c2942f

Please sign in to comment.