-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
[SwiftUI] Accessing Environment's value outside of being installed on a View. This will always read the default value and will not update.
@State private var value: Double = .zero
private var formatter: NumberFormatter {
let f = NumberFormatter()
f.numberStyle = .decimal
f.maximumFractionDigits = 20
return f
}
var body: some View {
SlidingRuler(value: $value,
in: 0...1,
step: 0.1,
snap: .fraction,
tick: .fraction,
formatter: formatter)
Metadata
Metadata
Assignees
Labels
No labels
