Problem with use of Binding
import SwiftUI
@main
struct MagnatoshApp: App {
var body: some Scene {
@Binding var b : Double
@State var fullDescStr = ""
var fullDesc : Binding<String> = Binding<String>(projectedValue: $fullDescStr)
WindowGroup {
ContentView(cmd: "", output: "", commandDesc: "", selCommand: Binding<Command?>(nil), description: "dddd" )
}
}
}
the line
@Binding var b : Double
gives the error
Missing argument for parameter 'projectedValue' in property wrapper initializer; add 'wrappedValue' and 'projectedValue' arguments in '@Binding(...)'
I have been at this for hours trying different combinations which end up going down a long series of code changes which get me nowhere
I think this is a compiler bug.Trying to find a work around is difficult