SwiftUI @ Apple

San Francisco Bay Area
Joined September 2018
Sima Nerush retweeted
A prompt for native app builders. Go through all my unit tests and identify tests or assertions matching the following: * realitically relies on the UI frameworks, and the assertion would break if the framework behavior changes, and there'd be no actionable step to fix it other than updating the test again? * renders the UI but in reality it's asserting on results of a value being rendered, therefore should be replaced by headless tests on the alue being correctly delivered? * restates constants, prompt strings, table rows in the app logic? * repeats logic from app's implementation, then assert on the output of said logic with no calls to the actual app code?
2
3
1
39
4,322
Claude Code Dev meetup at @AnthropicAI HQ!
21
3
5
962
47,144
SF Fleet Week, views from the bay!✈️ 📸Shot on iPhone 18 Pro
5
7
3
168
5,858
What a great day!! We were BLOWN AWAY by the quality of projects people built in 3 hours at Bitrig Hacks! And a massive thank you to our judges, @simanerush @AriX @yumaSoerianto @davemorin @bradflora @lllucas
3
3
1
40
4,210
Sima Nerush retweeted
New for Apple developers: Foundation Models support for Claude lets developers use Apple's Foundation Models framework to call Claude for multi-step reasoning, code generation, and longer context.
92
229
59
3,526
300,800
Sima Nerush retweeted
Getting day 3 started with the SwiftUI group lab #WWDC #WWDC26
1
25
1,142
If you missed it, the recording of today's SwiftUI Group Lab is now available on YouTube: youtube.com/live/7g-Xg5xiH4o
3
7
2
75
4,825
So many great questions in the #WWDC SwiftUI group lab this morning! There’s one more tomorrow evening that you won’t want to miss. Bring your questions, or just watch to learn a ton of interesting stuff. developer.apple.com/videos/p…
3
4
38
5,933
Sima Nerush retweeted
SwiftUI’s new type-checking enhancements (`@ContentBuilder`) and lazy `@State` are the culmination of literally years of careful effort behind the scenes to solve some of the biggest everyday pain points in SwiftUI development. At this point, there are millions of lines of SwiftUI result builder and state code shipping in production. With these changes, every one of those lines of code will suddenly compile differently, improving both compilation and runtime performance, and most developers *will never even notice*. That doesn’t normally happen. Maintaining binary, source, and backwards compatibility across releases imposes strict limitations on how SDK APIs can evolve. If you think of a better way to compile some library DSL syntax after shipping it publicly, you’re usually out of luck. These enhancements were only possible because of dedicated engineers on the Swift and SwiftUI teams working closely together, sweating the subtlest of details, and persevering through countless dead-end experiments and fraught internal deployments. Their reward? That future developers will *not* see some type-check error or performance hitch, and will *never* have to know that it ever worked any differently. But that’s wonderful. We love it. The joy is in the doing. Thank you @slazarus, @daniel_duan, @hollyborla, Pavel Yaskevich, and others from the Swift and SwiftUI teams for getting these enhancements over the finish line! (I’m no longer at Apple but can’t help but brag about these talented people 👏🏻)
3
19
3
164
13,223
> Maintaining binary, source, and backwards compatibility across releases imposes strict limitations on how SDK APIs can evolve. You can learn more about how we achieved this while making @.State lazy here: xitter.cf/i/status/2064195688469…
SwiftUI’s new type-checking enhancements (`@ContentBuilder`) and lazy `@State` are the culmination of literally years of careful effort behind the scenes to solve some of the biggest everyday pain points in SwiftUI development. At this point, there are millions of lines of SwiftUI result builder and state code shipping in production. With these changes, every one of those lines of code will suddenly compile differently, improving both compilation and runtime performance, and most developers *will never even notice*. That doesn’t normally happen. Maintaining binary, source, and backwards compatibility across releases imposes strict limitations on how SDK APIs can evolve. If you think of a better way to compile some library DSL syntax after shipping it publicly, you’re usually out of luck. These enhancements were only possible because of dedicated engineers on the Swift and SwiftUI teams working closely together, sweating the subtlest of details, and persevering through countless dead-end experiments and fraught internal deployments. Their reward? That future developers will *not* see some type-check error or performance hitch, and will *never* have to know that it ever worked any differently. But that’s wonderful. We love it. The joy is in the doing. Thank you @slazarus, @daniel_duan, @hollyborla, Pavel Yaskevich, and others from the Swift and SwiftUI teams for getting these enhancements over the finish line! (I’m no longer at Apple but can’t help but brag about these talented people 👏🏻)
1
13
2,655
This is a great tip for diagnosing and improving the performance of ForEach!
Perf tip: In SwiftUI's lazy containers (List, LazyVStack) each ForEach element should return a constant number of views. An AnyView or if inside the closure (0 or 1 views) hits a slow path. Fix: filter your data upfront. Debug: -LogForEachSlowPath YES 🔗 developer.apple.com/document…
24
5,491
The recording of SwiftUI for Beginners Group Lab is now available on YouTube! Go check it out in case you missed it: youtube.com/watch?v=IbNHuOt5…
2
7
65
4,385
Sima Nerush retweeted
A great behind-the-scenes improvement is ContentBuilder – which has been a massive undertaking – and delivers meaningful improvements to type checking performance.
8
2
61
21,425
Sima Nerush retweeted
Hope you like lazy stuff cause we made State and AsyncImage lazy.
2
5
1
42
9,409