techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

#swiftui

91 posts73 participants11 posts today
Daniel Lyons<p>I'm building a new macOS app that makes it easy to make informative descriptions of images. It's perfect for alt text. </p><p>Beta coming soon. Let me know if you'd like to join. </p><p><a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/buildinpublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buildinpublic</span></a></p>
Mohammad Azam<p>📺 New Video for iOS Devs!</p><p>Learn how to write flexible &amp; efficient dynamic queries using SwiftData — perfect for building scalable SwiftUI apps. 💡</p><p>✅ Dynamic conditions<br>✅ Clean, reusable logic<br>✅ Real-world SwiftUI examples<br>Watch now 👉 <a href="https://youtu.be/s-a9pPD_41U" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/s-a9pPD_41U</span><span class="invisible"></span></a></p><p><a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a></p>
Continued thread

Xcode 16 introduced the Previewable macro, making it easier to preview #SwiftUI views with bindings. By annotating dynamic properties like @State in a Preview body with @Previewable, we can pass them as bindings to views directly:
nilcoalescing.com/blog/Preview

Nil CoalescingPreview SwiftUI views with bindings using @PreviewableXcode 16 introduced the @Previewable macro, making it easier to preview SwiftUI views with bindings.

SF Symbols Picker v0.6.0 released! Now with official visionOS 1.0+ support, bringing the native symbol picker experience to Apple Vision Pro! Uses elegant popover presentation on Vision Pro while maintaining full compatibility with iOS 14+, iPadOS 14+, and macOS 11+. No API changes required - your existing code works seamlessly across all platforms!
Check it out here: github.com/SzpakKamil/SymbolPi
#SwiftLang #SwiftUI #iOSDev #macOS

More fun printing MKMapViews…

If I call my method to print the map from a toolbar on the view things work as expected.

If I trigger a call to the same method from a menu command I lose the markers in the print.

You can clearly see the screen redraw when the menu command is selected. I assume the image is generated so quickly that the markers are not redrawn yet .

The toolbar button does not cause a redraw

Sigh.