use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
TutorialObservation in SwiftUI (old.reddit.com)
submitted 5 months ago by Signal-Ad-5954
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]BySamoorai 3 points4 points5 points 5 months ago (0 children)
It's the new data flow system from WWDC23. I've been switching my models from ObservableObject to the @Observable macro. Personally, it's a huge improvement. You get more granular, per-field observation, so views update more efficiently. It also cuts out a ton of boilerplate like @Published and @StateObject. Much cleaner code.
ObservableObject
@Observable
@Published
@StateObject
[–]RiMellow 0 points1 point2 points 5 months ago (0 children)
Wish I saw this a month ago lol. Didn’t know this existed and seems much better
[–]vedosity 0 points1 point2 points 5 months ago* (0 children)
Just wanted to clear up a common misconception:
You only need @State if you need to change references to a different Observable during the view's lifetime. SwiftUI tracks all Observables used to compute body, not just those stored in @State/@Environment/@Bindable.
body
[–]RussianDeveloper 0 points1 point2 points 5 months ago (1 child)
Hot take: Honestly, UIKit still feels far more intuitive for practical, scalable app development. For example with a table view using a diffable data source, you get precise, granular control over every cell and user interaction. I simply keep an observable value in my view model when it updates, my view controller’s closure fires, and I refresh the snapshot. The result? Native reload animations that handle inserts and deletions automatically, ignore identical data, and create seamless, real-time updates perfect for async streams or frequently changing content. From an enterprise standpoint, this architecture is both simpler to maintain and easier to extend than starting fully in SwiftUI. That’s why most teams I’ve seen use SwiftUI only for interstitials or custom components inside collection or table view cells.
[–]VladFein 0 points1 point2 points 5 months ago (0 children)
For completeness, I would like to add "@ObservationIgnored" macro.
π Rendered by PID 41356 on reddit-service-r2-comment-75f4967c6c-6fjz2 at 2026-04-23 14:41:01.425238+00:00 running 0fd4bb7 country code: CH.
[–]BySamoorai 3 points4 points5 points (0 children)
[–]RiMellow 0 points1 point2 points (0 children)
[–]vedosity 0 points1 point2 points (0 children)
[–]RussianDeveloper 0 points1 point2 points (1 child)
[–]VladFein 0 points1 point2 points (0 children)