Sign in

aviel

@avielg.bsky.social
177 followers 233 following 18 posts

SwiftUI at Meta • swiftui.wtf • Philly

PostsRepliesMedia
aviel @avielg.bsky.social · 22/12/2024
Fixing Image Perf for the Worst iPhone - my @swiftleeds.co.uk talk is out! 🎉 See real world examples of cpu choking, memory crash, a bunch of other problems, and how we solved them… youtu.be/DCxjfQ_sx_I?... #swift #swiftui
youtu.be
Fixing Image Performance for The Worst iPhone - Aviel Gross | SwiftLeeds 2024
YouTube video by SwiftLeeds
040
Reposted by aviel
Simon B. Støvring @simonbs.dev · 19/12/2024
Is it normal for memory to grow over time when a SwiftUI view observes a model with the Observation framework? In my ~35 LOC app, memory grows with ObservableSettings.isEnabled, but stays stable with NonObservableSettings. See memory usage graphs. Code: gist.github.com/simonbs/3e5...
Two graphs comparing the memory usage when using ObservableSettings and when using NonObservableSettings. The graph using the former grows linearly over time. The graph using the latter stays stable.Screenshot of the same code snippet shared in the gist.
5252
aviel @avielg.bsky.social · 15/12/2024
I just go straight to Apple Store for a new MacBook when doing that
030
aviel @avielg.bsky.social · 08/12/2024
Yea I like that domain 😆 stems from a lot of confusion when I got started with swiftui
030
aviel @avielg.bsky.social · 08/12/2024
Amazing! Curious where you found it?
100
aviel @avielg.bsky.social · 08/12/2024
Death by a 1000 cuts 😏
000
aviel @avielg.bsky.social · 07/12/2024
Is there any perf difference between the two?
100
aviel @avielg.bsky.social · 07/12/2024
Shameless plug check out swiftui.wtf 😀
swiftui.wtf
121
Reposted by aviel
nolen @itseieio.bsky.social · 06/12/2024
how do you all remember every UUID? I find it really hard. so I wrote them all down on every uuid dot com the list has fast search across all 2^122 values (so you can find your favorites) - hoping to add some social features like "trending UUIDs" soon!
481161276
aviel @avielg.bsky.social · 07/12/2024
True if RN ever wants to become a sui wrapper instead UIKit wrapper (which I don’t think it should), but for simple “entry point” you can just make an RN component that takes a sui view and handles the UIHostingController bridging and that’s about it no?
000
aviel @avielg.bsky.social · 07/12/2024
Sounds like the same issue CK had… the solution they went with is to write a wrapper of CK with syntax almost identical to SUI to make fb engineers happy, but it’s like Xamarin/Osmeta so it still doesn’t solve interop with actual sui (eg like Charts or Widgets which are sui native)
010
aviel @avielg.bsky.social · 07/12/2024
Are there any blockers or just not implemented? On the surface it seems like SUI is actually a much more natural fit for RN declarative style than UIKit
100
aviel @avielg.bsky.social · 07/12/2024
Anyone has a way to scan (Mirror/Reflection) a SwiftUI view at runtime and get its entire hierarchy including subviews recursively? snippet, gist, library, private API, whatever you got…?
010
aviel @avielg.bsky.social · 07/12/2024
Oh interesting I had no idea RN has significant outside contributions!
010
aviel @avielg.bsky.social · 07/12/2024
Oh this is niceeeee
000
aviel @avielg.bsky.social · 07/12/2024
Oh rewatching the the vid I see it’s a standalone app and quite different. Was it built in house and open sourced or outside by the community? I always felt like some things (gql, react) are fully embraced and enhanced by the community while RN still felt like “meta’s baby” that others just use?
100
aviel @avielg.bsky.social · 07/12/2024
Is this basically exported from Flipper/Sonar?
100
aviel @avielg.bsky.social · 05/12/2024
Hi me too! 😀
000
aviel @avielg.bsky.social · 17/11/2024
LazyVStack is lazy but doesn’t recycle the views. Once they are created - they stay and aren’t reused. List can’t create view on the fly (ie make them lazy) if the view size is ambiguous (size being number is resolved views, not point size) This ww covers it: developer.apple.com/videos/play/...
developer.apple.com
Demystify SwiftUI performance - WWDC23 - Videos - Apple Developer
Learn how you can build a mental model for performance in SwiftUI and write faster, more efficient code. We'll share some of the common...
130
aviel @avielg.bsky.social · 17/11/2024
AL does the layout on main thread, and it doesn’t scale for very large/complex apps. I honestly don’t know if SwiftUI is doing layout on main (i think it does actually) but it must be more optimized than AL. IIUC it’s kinda like web’s flexbox model
000