c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.9K
active users

#swiftui

83 posts64 participants1 post today
Rasmus Grouleff (he/him)<p>Once again I have stumbled onto something I don’t understand.</p><p>In the entry point for my app I set a NavigationContext in the environment, and when I run the app and navigate between views, at some random point, it throws the error in the second image, and the debugger indicates it is on the “struct FooApp: App {“ line.</p><p>What is going on? Help!</p><p>In the subviews I am accessing the context from the env like so: “@ Environment(NavigationContext.self) var context”.</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/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a></p>
Omar Thamri<p><span class="h-card" translate="no"><a href="https://a.gup.pe/u/swift" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>swift</span></a></span> <span class="h-card" translate="no"><a href="https://a.gup.pe/u/swiftui" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>swiftui</span></a></span> Exciting News! 🎉 Just dropped Part 35 of my "Let's Build Pinterest clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 <a href="https://www.youtube.com/watch?v=QSTxmO1slew" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=QSTxmO1sle</span><span class="invisible">w</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/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://iosdev.space/tags/swiftlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftlang</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/ios18" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios18</span></a> <a href="https://iosdev.space/tags/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a></p>
David Bureš<p>Get ready for the upcoming Cork update!</p><p>It will include a lot of various little tweaks, but the main addition is the support for the much requested greedy updating.</p><p>For more context, check out this ticket: <a href="https://github.com/buresdv/Cork/issues/362" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/buresdv/Cork/issues</span><span class="invisible">/362</span></a></p><p>Follow me if you'd like to know exactly when the update comes out, and don't forget to join the Discord: <a href="https://discord.gg/kUHg8uGHpG" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">discord.gg/kUHg8uGHpG</span><span class="invisible"></span></a></p><p><a href="https://corkmac.app" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">corkmac.app</span><span class="invisible"></span></a></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/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> <a href="https://mstdn.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://mstdn.social/tags/buildinpublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buildinpublic</span></a> <a href="https://mstdn.social/tags/macdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macdev</span></a> <a href="https://mstdn.social/tags/homebrew" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homebrew</span></a> <a href="https://mstdn.social/tags/CorkApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CorkApp</span></a></p>
Michael Rowe<p>currently in a HackAthon for SwiftUI, my goal for it is to get a MVP of my current App ready, including my first subscription model. I have held off on doing one, but this app is uniquely designed for this model, as I will have long term maintenance requirements if it is successful. <a href="https://mstdn.social/tags/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a> <a href="https://mstdn.social/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a> <a href="https://mstdn.social/tags/hackathon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hackathon</span></a> <a href="https://mstdn.social/tags/swiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftUI</span></a></p>
ThunDroid<p>SwiftUI vs. Kotlin: The Battle of Modern UI Frameworks<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/kotlin" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kotlin</span></a> </p><p><a href="https://thundroid.co/swiftui-vs-kotlin-the-battle-of-modern-ui-frameworks/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thundroid.co/swiftui-vs-kotlin</span><span class="invisible">-the-battle-of-modern-ui-frameworks/</span></a></p>
Omar Thamri<p><span class="h-card" translate="no"><a href="https://a.gup.pe/u/swift" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>swift</span></a></span> <span class="h-card" translate="no"><a href="https://a.gup.pe/u/swiftui" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>swiftui</span></a></span> Exciting News! 🎉 Just dropped Part 34 of my "Let's Build Pinterest clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 <a href="https://www.youtube.com/watch?v=xd5m734i8TA" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=xd5m734i8T</span><span class="invisible">A</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/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://iosdev.space/tags/swiftlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftlang</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/ios18" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios18</span></a> <a href="https://iosdev.space/tags/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a></p>
David Bureš<p>Guys, how would you improve this design? (ignore the debug "1" next to the Update button) </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/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> <a href="https://mstdn.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://mstdn.social/tags/buildinpublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buildinpublic</span></a> <a href="https://mstdn.social/tags/macdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macdev</span></a> <a href="https://mstdn.social/tags/homebrew" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homebrew</span></a> <a href="https://mstdn.social/tags/CorkApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CorkApp</span></a></p>
Jan Armbrust <p>After finishing the interviews I felt really proud about this milestone. I before that moment never did proper research about a problem people actually have and it was extremely interesting to talk to people I didn’t know a lot personally and also people I knew personally for years about such a sensible topic like dealing with overwhelming emotions. But now I faced the enormous task of (1/3)</p><p><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/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a> <a href="https://mastodon.social/tags/Dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Dev</span></a> <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/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/SwiftStudentChallenge" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftStudentChallenge</span></a> <a href="https://mastodon.social/tags/DoTheSSCWithMe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DoTheSSCWithMe</span></a> <a href="https://mastodon.social/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
Patrick McConnell<p>Friday afternoon <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> fun. </p><p>Trying to print a mapView. The SwiftUI printing methods don't work with views such as Map and Web.</p><p>I can create an imageRepresentation of the map that gets everything but the annotation markers. Close but I need the markers.</p><p>I can use old AppKit methods like printView() but that only prints the markers. </p><p>Can't make this stuff up.</p><p>Think I may need to manually composite each marker onto the map image.</p><p>I'm thinking that's a next week task.</p><p><a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a></p>
Chris Wu :toucan:<p>It can be quite a challenge getting everything to fit into iPad Slide Over mode.</p><p>I added a description to the wind chart popover and realized that wasn't going to fly with accessibility sizes.</p><p>I clamp down the max size with .dynamicTypeSize() in that scenario but let it be bigger otherwise.</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/accessibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>accessibility</span></a> <a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>a11y</span></a> <a href="https://mastodon.social/tags/PleaseDontRain" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PleaseDontRain</span></a></p>
Daniel Saidi<p>If you want to trigger actions for various gestures in <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a>, I have created a GestureButton that lets you trigger actions for press, release, long press, double tap, repeat, drag, etc. I created it for @keyboardkit.bsky.social but has extracted it to its own thing.<br><a href="https://github.com/danielsaidi/GestureButton" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/danielsaidi/Gesture</span><span class="invisible">Button</span></a></p>
Daniel Saidi<p>EmojiKit 1.5 is out! 🚀 This is an open-source project that lets you use emoji-based features &amp; views in <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> and <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a>. This version makes it possible to set a max emoji count for all mutable, persisted categories. It also lets you create custom, persisted categories.<br><a href="https://github.com/danielsaidi/EmojiKit" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/danielsaidi/EmojiKit</span><span class="invisible"></span></a></p>
Helge Heß<p><span class="h-card" translate="no"><a href="https://iosdev.space/@evankstone" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>evankstone</span></a></span> It's not a <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> issue, it's a <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> issue. As soon as you use advanced Swift features (and SwiftUI does), you get those everywhere.</p>
Evan K. Stone<p>I can't believe we still have to deal with the <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> “unable to type check” nonsense.</p><p>It doesn't exactly inspire confidence in features like Swift Assist when <a href="https://iosdev.space/tags/Xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Xcode</span></a> can't even figure out and let you know why it can't compile.</p>
Jan Armbrust <p>New day, other emotion. I‘m always committed to share reality of being a developer. And this is one of the ones that are not great. I did not win the first and only shot I ever had on the Swift Student Challenge. It hurts a lot because I poured everything I had in it. Nights coding, fighting with Sketch or recording yourself for voice overs in a small hotel lobby in Roma. But you know what (1/2)</p><p><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/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a> <a href="https://mastodon.social/tags/Dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Dev</span></a> <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/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/SwiftStudentChallenge" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftStudentChallenge</span></a> <a href="https://mastodon.social/tags/DoTheSSCWithMe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DoTheSSCWithMe</span></a> <a href="https://mastodon.social/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
Patrick McConnell<p>I'm going to assume this is documented somewhere but…</p><p>if you're doing <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> with a customizable toolbar you have to be sure any view you pass as the toolbar is not just a standard View Struct. </p><p>You must pass a CustomizableToolbarContent Struct. </p><p>Also each toolbar item and the toolbar itself must have an id declared.</p><p>A standard View will display and work as a toolbar but you will not get the ability to edit the toolbar in any way.</p><p>Happy to have this working now.</p>
Joseph Humfrey<p>My Mac productivity app SUBSTAGE now has a one-time purchase option! (turns out, subscriptions are a hard sell)</p><p>(ICYMI: Substage puts a command bar underneath your Finder windows and lets you use natural language to convert media, manage files, perform calculations and more!)</p><p>🌐 👉 <a href="https://selkie.design/substage/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">selkie.design/substage/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.gamedev.place/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.gamedev.place/tags/MacOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MacOS</span></a> <a href="https://mastodon.gamedev.place/tags/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</span></a> <a href="https://mastodon.gamedev.place/tags/apple" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>apple</span></a></p>
Marcel<p>Hmmm. 🤔 Lil' Widgies! </p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a></p>
skip.tools<p>Compiled Swift and <a href="https://mas.to/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> on Android filling out nicely. Recently added some big surface areas like Path/Shape and Animation APIs. We're getting close to being able to port our first full sample app from transpiled to native Swift!</p>
Daniel Saidi<p>DeckKit 1.5 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> SDK that makes it easy to render a list of items as a deck of cards. This new version cleans up the code, lets you handle all item swipe directions with a single action, and makes it possible to customize the state change animation.<br><a href="https://github.com/danielsaidi/DeckKit" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/danielsaidi/DeckKit</span><span class="invisible"></span></a></p>