#swiftui

9 posts · Last used 8h

Back to Timeline
@obrhoff@mastodon.social · 8h ago
I went with this approach to the new TabBar which kinda got a bit inspired by Tidal. #iosdev #buildinpublic #swiftui #liquidglass #hatersgonnahate
6
3
0
Boosted by AssertionError("Joe Groff") @joe@f.duriansoftware.com
@natpanferova@mastodon.social · 1d ago

SwiftUI’s List is only lazy when SwiftUI can determine how many views a ForEach element resolves to without evaluating the closure.

Two common patterns prevent this:

  • Using an if statement inside ForEach
  • Wrapping rows in AnyView

In both cases, SwiftUI evaluates the ForEach closure for every element before any rows are displayed.

You can learn more in the free sample chapter of my book “The SwiftUI Way”: https://books.nilcoalescing.com/the-swiftui-way/building-a-performant-and-stable-interface/maximizing-the-performance-of-dynamic-lists/

#SwiftUI #iOSDev

35
0
14
@gregatron5@vmst.io · Mar 09, 2026
Any #iOS or #mac devs have a good resource for #SwiftUI #TDD? I think I'm OK on straight Swift testing. I'm specifically looking for reading up on SwiftUI testing.
0
0
1
@gregatron5@vmst.io · Feb 12, 2026
Due to @MonaApp@mastodon.social never clearing the “iCloud Position Restored" button at the bottom of the app, I have inadvertently discovered a way to get decent shadows in modern macOS: just stack a dozen identical views on top of each other! #SwiftUI #LiquidGlass
2
1
0
@gregatron5@vmst.io · Feb 12, 2026
I really wish there was a way to preview notifications during iOS app development without actually running the app and triggering a notification event. Like some Preview macro or debug framework that you can throw notification info to just to get a rendering of what it will look like. I really don't want to hide a button that actually creates a notification behind #IF DEBUG but it looks like that's what I'll have to do. #Swift #SwiftUI #iOS #Xcode
0
0
0
@gallaugher@mastodon.world · Feb 02, 2026
The #1 question my #SwiftUI students ask my TAs (and me) is how to fix "The Local Repository is Out of Date" error when trying to push from #Xcode to GitHub. I've created this YouTube video illustrating a fix. I hope it helps others. https://youtu.be/bEkuh95iajc
0
0
1
@gregatron5@vmst.io · Feb 01, 2026
Hey #Swift #SwiftUI #iOS devs. How do you manage/increment your build numbers? I'm doing this on a solo project with no CI. Just me and Xcode on my personal machine.
0
0
0
@gregatron5@vmst.io · Feb 01, 2026
Increasingly disappointed to learn you can't write a standalone #iOS app with updatable Live Activities. It REQUIRES a server for remote push notifications for updating, something I do not want to write or maintain. #Swift #SwiftUI
0
0
0
@gregatron5@vmst.io · Jan 29, 2026
Someone make sense of what the different Weights, Flexibility, and Impact of SensorFeedback in #SwiftUI mean. Also, what values are supported on which devices?
0
0
0

You've seen all posts