det.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon Server des Unterhaltungsfernsehen Ehrenfeld zum dezentralen Diskurs.

Administered by:

Server stats:

2.2K
active users

#swiftui

29 posts26 participants0 posts today
Chris Wu :toucan:<p>I had completely forgotten that you can add .gradient to a SwiftUI Color until Vincent Pradeilles mentioned it in his talk for iOS Dev Happy Hour.</p><p>I think I'm going to spruce up my buttons.</p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/PleaseDontRain" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PleaseDontRain</span></a></p>
robb<p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a>'s Color.mix(with:by:in:) makes it easy to increasingly interpolate the current foreground color towards white (or black) while keeping its hue reasonably intact.</p>
Peter Friese<p>📱 Not only Swift #79 is out! 🎉</p><p>- Watch my MCP server implementation with Keynote integration<br>- Check out <span class="h-card" translate="no"><a href="https://mastodon.social/@Mecid" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Mecid</span></a></span>'s WWDC25 wishlist<br>- Discover CodeEditorView for SwiftUI<br>- Updated list of upcoming conferences</p><p><a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</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/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a></p><p><a href="https://peterfriese.dev/newsletter/issues/79/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">peterfriese.dev/newsletter/iss</span><span class="invisible">ues/79/</span></a></p>
robb<p>I'm working on a <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> view modifier that calculates a foreground Color that maintains sufficient contrast with the background and also takes the font into account. This can improve <a href="https://mastodon.social/tags/accessibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>accessibility</span></a> without too much design-time overhead.</p><p>It's using APCA by <span class="h-card" translate="no"><a href="https://techhub.social/@Myndex" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Myndex</span></a></span>.</p>
Natalia Panferova<p>We can set a custom background for a window on macOS in <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> using the containerBackground() modifier. And to extend it to the toolbar, we need to apply toolbarBackgroundVisibility(.hidden, for: .windowToolbar) to the window’s content.</p><p>Learn more: <a href="https://nilcoalescing.com/blog/CustomizingMacOSWindowBackgroundInSwiftUI/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">nilcoalescing.com/blog/Customi</span><span class="invisible">zingMacOSWindowBackgroundInSwiftUI/</span></a></p>
Cihat Gündüz<p>Every great conference needs an amazing after-party, and <a href="https://iosdev.space/tags/trySwift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>trySwift</span></a> delivered! Great food, drinks, and connections with fellow Swift enthusiasts made for an unforgettable night. The venue was perfect!</p><p>Who else had as much fun as I did? 🎉 <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/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a></p>
Sylvia Borin<p><span class="h-card" translate="no"><a href="https://mstdn.social/@nerdd" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>nerdd</span></a></span></p><p>Answer from Perplexity:</p><p>To fix this issue, replace unsupported types with alternatives that SwiftData can handle:</p><p>For Duration: Use TimeInterval instead, as it is supported by SwiftData.</p><p>For Color.Resolved: Avoid using it directly in your models. Instead, store color-related data in a format like RGB values or another supported type.</p><p>This ensures compatibility with SwiftData's encoding requirements.</p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a></p>
Rasmus Grouleff (he/him)<p>Heeeelp!</p><p>What does the following error mean, and how do I fix it? It happens, when I call `modelContext.save()` in a SwiftUI view.</p><p>"SwiftData/ModelCoders.swift:105: Fatal error: Composite Coder only supports Keyed Container”</p><p>Edit: Solved! It appears SwiftData does not support Duration properties in models. Changing it to a TimeInterval instead fixes it.</p><p><a href="https://mstdn.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://mstdn.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mstdn.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a></p>
Keith Harrison :clubtwit:<p>My notes on the (to me) surprising scope of SwiftUI keyboard shortcuts <a href="https://twit.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://twit.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://useyourloaf.com/blog/swiftui-keyboard-shortcut-scope/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">useyourloaf.com/blog/swiftui-k</span><span class="invisible">eyboard-shortcut-scope/</span></a></p>
J. Blake<p>Today in TIL...</p><p>I have been struggling with understanding how to import whatever might be on the clipboard and this bit of code helped immensely. </p><p>If you copy an image in Safari via the context menu, there are actually nearly 20 different objects placed on the clipboard.</p><p>If this is documented anywhere, I never found it.</p><p><a href="https://mastodon.social/tags/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</span></a></p>
Ryan Lintott<p>With ShareLink there's really no way to know if a user has shared something or even dismissed the share sheet?</p><p><a href="https://developer.apple.com/documentation/SwiftUI/ShareLink" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/SwiftUI/ShareLink</span></a></p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a></p>
Natalia Panferova<p>SwiftUI supports several scene types on macOS, and they each serve a different role, from managing multiple windows to adding menu bar functionality. I have a post that covers them all, and I often find myself referring back to it for a quick reference: <a href="https://nilcoalescing.com/blog/ScenesTypesInASwiftUIMacApp/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">nilcoalescing.com/blog/ScenesT</span><span class="invisible">ypesInASwiftUIMacApp/</span></a> <br><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a></p>
Mark Moeykens<p>❓In <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a>, which do you prefer?</p>
Aleksander Stojanowski<p>The <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> built-in calendar view has basically no customization options besides changing its color, and as I want to learn through the process of creating Spark, I decided to create my own!<br><a href="https://iosdev.space/tags/MobileApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MobileApp</span></a> <a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a> <a href="https://iosdev.space/tags/UI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UI</span></a> <a href="https://iosdev.space/tags/UX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UX</span></a></p>
Daniel Saidi<p>ScrollKit 0.7 is out! 🚀 This is a <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> library with a bunch of scroll utilities, such as easily being able to setup a scroll view with a sticky &amp; stretchy header, hide the status bar until the content is scrolled, etc. This version drastically improves the sticky header and adds more capabilities to it, such as being able to define a content corner radius to create an inverted, rounded mask under which the content will scroll.<br><a href="https://github.com/danielsaidi/ScrollKit" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/danielsaidi/ScrollK</span><span class="invisible">it</span></a></p>
Mohammad Azam<p>Video: Programmatic Navigation in <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <br><a href="https://youtu.be/p_jG6dRRzmA" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/p_jG6dRRzmA</span><span class="invisible"></span></a></p><p>* This video is sponsored by @AppScreensASO. Use coupon code "azam10" to get 10% off.</p>
Nick<p>Thought I was clever making a custom drawer component, only to realize that SwiftUI already has a DisclosureGroup component that’s literally the same thing 🤦‍♂️. Weird thing tho is that my custom component would ignore its transition animations to show/hide its content if the component was rendered inside of a List or Form. DisclosureGroup works just fine under a List. What am I missing here? Why are my animations ignored if inside a List? <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</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/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</span></a></p>
Holger Krupp<p>Buttons in a SwiftUI List are still a problem, right?<br><a href="https://mastodon.social/tags/iosDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iosDev</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a></p>
Stewart Lynch 🇨🇦<p>More progress on my Symbol Browser App.<br>✅ iPhone, iPad, Mac MenuBar</p><p>✅ Browse and search by category, name or search term</p><p>✅ View Rendering mode and symbolEfects</p><p>✅ Copy symbol name or code snippet</p><p>I am having a memory leak issue on Mac app to work on but otherwise MVP<br><a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</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/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
James Gobert<p>I started building Chunk knowing I’d support all of Apple’s major platforms but assumed iOS would be the main focus. Looks like I underestimated the Mac.</p><p>Since January it’s closed the gap as far as usage and will probably surpass iOS as the top platform people use Chunk. Which is why in the 2.0 release I made sure show lots of attention to the Mac app. I’m proud of the work. Hope you all love it too.</p><p><a href="https://mastodon.social/tags/Chunk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Chunk</span></a> <a href="https://mastodon.social/tags/indiedev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>indiedev</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/macos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macos</span></a> <a href="https://mastodon.social/tags/research" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>research</span></a> <a href="https://mastodon.social/tags/search" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>search</span></a> <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ai</span></a></p>