python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
SwiftUI Child Views not updating as expected with environmentObject
Please see my example provided, I have recreated my pattern as accurately as possible while leaving out details that are not relevant to the question.
I have @Published property variables in my viewmo...
Andre
Votes: 0
Answers: 1
SwiftUI view unexpectedly dismissing on change of state object values
Weird behavior where changing state is auto-dismissing a view.
Xcode 13.2.1,
MacOS 12.2.1,
iPhone 13 simulator iOS 15.something.
I'm genning up an object in the root view and passing it into the envir...
ChrisH
Votes: 0
Answers: 1
How to initialize `var` that depends on `environmentObject` in SwiftUI View init()?
Is there a more natural way (now that it's 2022) of initializing some internal variables that depend on an @EnvironmentObject (or other @ObservedObject) within a view's init() function?
For example, t...
Zaphod
Votes: 0
Answers: 1
SwiftUI - Get data in remote JSON data to refresh on App startup
I am a noob (and my code/model currently will show it so please go easy on me!).
I’m taking a first whack at creating a recipes style (cenotes) app.
So that I can update the data I have a remote json ...
user18175514
Votes: 0
Answers: 2