Post

Replies

Boosts

Views

Activity

progress bar will not work
progress bar will not work in swiftUI here is the code I used. import SwiftUI struct ContentView: View {     @State private var progress = 0         var body: some View {                  ProgressView(value: $progress)         }                          }                        struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } }     
6
1
3.1k
Feb ’21
variable in func not working
when I try and change a variable in a function it just gives me a error that says Cannot find 'textfield' in scope here is the is the code. import SwiftUI struct ContentView: View {     @State var test = "this is a test"     var body: some View {               Text("Hello")     } }   func testfunc() {         test = "test" } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } }
2
0
676
Feb ’21