writing.exchange is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small, intentional community for poets, authors, and every kind of writer.

Administered by:

Server stats:

336
active users

#swiftui

29 posts14 participants1 post today
Goose Medori<p>Here's a first step toward a UI for boolean search expressions for Magic cards.</p><p>Baby steps y'all.</p><p><a href="https://hachyderm.io/tags/MagicTheGathering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MagicTheGathering</span></a> <a href="https://hachyderm.io/tags/mtg" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mtg</span></a> <a href="https://hachyderm.io/tags/edh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>edh</span></a> <a href="https://hachyderm.io/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://hachyderm.io/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://hachyderm.io/tags/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</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>
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>
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>
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>
Álvaro R.<p>From <span class="h-card" translate="no"><a href="https://taonaw.com/activitypub/jtr" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>jtr</span></a></span>'s lovely post:</p><p>"Journalley blows this mental challenge away. It invites me to take notes and just notes. It’s the opposite of a chore. “Go ahead,” it winks at me, “spill the beans. Snap some pictures. We’ll work on the details later.” Suddenly, I’m free to let my mind go."</p><p><a href="https://taonaw.com/categories/emacs-org-mode" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">taonaw.com/categories/emacs-or</span><span class="invisible">g-mode</span></a></p><p><a href="https://indieweb.social/tags/app" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>app</span></a> <a href="https://indieweb.social/tags/apps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>apps</span></a> <a href="https://indieweb.social/tags/privacy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>privacy</span></a> <a href="https://indieweb.social/tags/plaintext" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>plaintext</span></a> <a href="https://indieweb.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://indieweb.social/tags/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</span></a> <a href="https://indieweb.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://indieweb.social/tags/orgmode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>orgmode</span></a> <a href="https://indieweb.social/tags/iphone" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iphone</span></a> <a href="https://indieweb.social/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://indieweb.social/tags/journaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>journaling</span></a> <a href="https://indieweb.social/tags/notetaking" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>notetaking</span></a></p>
ꜰᴀʙɪᴏ :xcode:<p>ok, maybe I've almost finished with Import/Export..🎉</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/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/iOSDeveloper" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDeveloper</span></a> <a href="https://iosdev.space/tags/AppDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AppDev</span></a> <a href="https://iosdev.space/tags/indieDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>indieDev</span></a> <a href="https://iosdev.space/tags/indieApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>indieApp</span></a> <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
Helge Heß<p><span class="h-card" translate="no"><a href="https://mastodon.social/@caseyliss" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>caseyliss</span></a></span> Honestly that is not the problem, but the sheer complexity of the <a href="https://mastodon.social/tags/Swiftlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swiftlang</span></a> type system, and it actually being used by <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a>.</p>
gallaugher<p><a href="https://mastodon.world/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> friends, it seems if I create an ephemeral URLSession things work, where as standard URLSessions weren't returning data in the simulator or Preview. Anyone else see this?</p>
jack<p>Today:<br>- Merged QR Sticker universal links esupport!<br>- Very pleased with this new test suite: ViewModel unit tests and a small start for UI tests on universal links.<br>- Waiting for v1.3 App Review 😇 and integration testing soon 😁</p><p>(Sorry for two links which some clients don't display well but…)<br>1. How to use Bike Index QR Stickers -- order yours today! <a href="https://bikeindex.org/info/how-to-use-bike-index-qr-stickers" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">bikeindex.org/info/how-to-use-</span><span class="invisible">bike-index-qr-stickers</span></a><br>2. Pull request with a mad-scientist Mermaid 🧜‍♀️ state diagram <a href="https://github.com/bikeindex/bike_index_ios/pull/55" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/bikeindex/bike_inde</span><span class="invisible">x_ios/pull/55</span></a></p><p> <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> <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
jack<p>Is anyone else seeing `brew bundle` fail? On GitHub Actions I'm seeing a 50% failure rate 😕<br>"Error: homebrew/bundle was deprecated. This tap is now empty and all its contents were either depleted or migrated.”<br>But it succeeds locally with brew update!<br>Ex: <a href="https://github.com/bikeindex/bike_index_ios/actions/runs/14283418190/job/40035917728#step:5:8" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/bikeindex/bike_inde</span><span class="invisible">x_ios/actions/runs/14283418190/job/40035917728#step:5:8</span></a><br><a href="https://iosdev.space/tags/Brew" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Brew</span></a> <a href="https://iosdev.space/tags/Homebrew" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Homebrew</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> <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
jack<p>Previously: Development Assets seemed broken (the post this one is replying to)<br>A: Fixed it with adding the assets to the build target, and to the development_assets_paths, as seen in changeset <a href="https://github.com/bikeindex/bike_index_ios/pull/50/files" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/bikeindex/bike_inde</span><span class="invisible">x_ios/pull/50/files</span></a> (and renamed the file in this change too)<br> <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> <a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildInPublic</span></a></p>
Natalia Panferova<p>SwiftUI Text views support flexible data formatting using the format parameter and FormatStyle, adapting content to different contexts and locales.<br>For example, an array can be formatted as a grammatically correct list: <a href="https://books.nilcoalescing.com/swiftui-fundamentals/Text-and-localization/text-formatting#format-styles" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">books.nilcoalescing.com/swiftu</span><span class="invisible">i-fundamentals/Text-and-localization/text-formatting#format-styles</span></a></p><p><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>
Justin Ferrell<p>Reminds me of the story <span class="h-card" translate="no"><a href="https://mastodon.social/@siracusa" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>siracusa</span></a></span> shared on <span class="h-card" translate="no"><a href="https://mastodon.social/@atpfm" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>atpfm</span></a></span> a while back about how much CPU usage he trimmed by rendering text as HTML instead of <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a></p>
Cork: The Homebrew Companion<p>Cork version 1.5.3 is out. </p><p>This update includes support for `--greedy` packages, option to automatically accept package EULAs, fixes for the Service Manager, and more.</p><p>Read the full changelog: <a href="https://blog.corkmac.app/p/cork-153-out-greedy-packages-and" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.corkmac.app/p/cork-153-ou</span><span class="invisible">t-greedy-packages-and</span></a></p><p>Get cork: <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>
Joseph Humfrey<p>✨ SUBSTAGE ✨ has just got prettier, faster and smarter!</p><p>The natural language command bar for Finder windows now has:</p><p>🕺 Fancy new animations<br>💨 Faster responses<br>🧠 Smarter responses</p><p>It's super handy, whether you work with images, video, you're a developer or 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/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</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/productivity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>productivity</span></a></p>