python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Timer within EnvironmentObject view model not updating the View
I have a view model, that has multiple child view models. I am fairly new to watchOS, SwiftUI and Combine - taking this opportunity to learn.
I have a watchUI where it has
Play Button (View) - SetTim...

Michael
Votes: 0
Answers: 1
SwiftUI View not updating with binding to computed property on ObservableObject
I have a very simple SwiftUI view that only shows a TextField. The text field's text is bound to the string property of my viewModel that I instantiate as a @StateObject:
struct ContentView: View {
...

Mischa
Votes: 0
Answers: 1
Forward/chained properties from service to model using @published, @StaticObject etc. in SwiftUI
Trying to go from UIKit to SwiftUI I keep wondering how to apply a service layer properly and use observables to publish updates from the service layer all the way out through the view model and to th...
esbenr
Votes: 0
Answers: 1
Why is didSet called twice on the TextField binding in SwiftUI?
I have a very basic view that only shows a TextField:
View
struct ContentView: View {
@StateObject var viewModel = ViewModel()
var body: some View {
TextField("Enter a strin...

Mischa
Votes: 0
Answers: 2