eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

228
active users

#macosdev

1 post1 participant0 posts today

SwiftUI gurus.

How to make the shuffling of this code fast on macOS? It performs without a problem under iOS, but macOS is blocking the main thread for a long time.

I think it’s the underlying NSOutlineView that moves Views around. From what I can see, the only workaround is to totally invalidate the View with a different ID.

Were the haters right about SwiftUI? 😭
#iosdev #macosdev #apple #swift #swiftui #indiedev

I have a question for the seasoned macOS devs.

Looks like I’ll have to redesign Cork for this next release. How do I go about redesigning it, without having to drop older system versions? I really don’t want to implement the same feature twice, once for the old design, and once for the new design.

Adding a custom font to a macOS app works a bit differently than on iOS, and it’s not particularly well documented. I wrote up the steps that worked for me, both as a reference for myself and in case it helps other developers looking to use a custom font in their Mac apps: nilcoalescing.com/blog/Embeddi
#macOSDev

Nil CoalescingEmbedding a custom font into a macOS app bundleAdd a custom font to your Mac app by embedding it in the app bundle and making sure it loads correctly for use in your UI.

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: nilcoalescing.com/blog/ScenesT
#SwiftUI #macOSDev

Nil CoalescingScenes types in a SwiftUI Mac appDiscover how to leverage SwiftUI's versatile scene types, like WindowGroup, DocumentGroup, Settings, Window, and MenuBarExtra, to create efficient and dynamic macOS applications.