We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c08ceec commit 717ce0dCopy full SHA for 717ce0d
Sources/Controls/Implementations/ArcKnob.swift
@@ -7,6 +7,7 @@ public struct ArcKnob: View {
7
8
var backgroundColor: Color = .gray
9
var foregroundColor: Color = .red
10
+ var textColor: Color = .gray
11
12
@State var isShowingValue = false
13
var range: ClosedRange<Float>
@@ -90,7 +91,10 @@ public struct ArcKnob: View {
90
91
Text("\(isShowingValue ? "\(Int(value))" : text)")
92
.frame(width: dim(geo) * 0.8)
93
.font(Font.system(size: dim(geo) * 0.2, weight: .bold))
- .foregroundColor(backgroundColor)
94
+ .foregroundColor(textColor)
95
+ .minimumScaleFactor(0.5)
96
+ .lineLimit(1)
97
+
98
}
99
100
0 commit comments