I want to know how to add a button that will add a new rectangle every time the button is pressed in swiftUI?
Post
Replies
Boosts
Views
Activity
Is there a way to save a CGFloat like if a rectangle is doing a ease out animation and the CGFloat is on 1 on the it goes to 2
is there a way to save that. Please tell me if this makes no sense.
does anybody know every feature you can add to an image in swiftUI.
I can't figure out how to make a app clip apple said download this to make one when I click on the link it takes me to a place to download it but nothing is there.
is there a way to add 3d usdz to swiftUI I can't find anything.
do I need the paid apple developer account to use notifications on real device because when I use them on a real device they do not work when I sue them on the simulator they 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()
}
}
Is a their way to add game controller support to swiftUI apps.
I want how to run a terminal command by pressing a button in swiftUI macOS
I want to know if it is ok to use code snippets off here.
how to make a textfield non editable please just give me the answer if you have none of this you can do this instead.
I want to know to make something happen when a variable changes.
I want to know how to make something happen when i type a specific word in a textfield
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()
}
}
I want to know how to add two Variables to a text field