Today’s example of the (allegedly) “cross-platform” #SwiftUI working differently depending on the target platform:
In a `fileImporter`, to specify that the user has to select a directory:
* on macOS: `.directory`
* on iOS, and others: `.folder`
Example code in my StackOverflow answer here:
https://stackoverflow.com/a/79747117/468361
The following article shows how to show an alert from a menu item in a SwiftUI Mac app:
https://swiftdevjournal.com/posts/show-swiftui-alert-from-mac-menu/
EmojiKit 2.0 is out! 🚀 EmojiKit adds emoji-based features to #Swift and #SwiftUI. This new version targets iOS 16 and aligned platform versions.
https://github.com/danielsaidi/EmojiKit
Finished adding all releases to tvOS, and moved on to improving the marquee sizing, but failed to use idealWidth correctly haha. Tomorrow let's dig into that deeper. See you then!
🔜 Tomorrow’s stream: https://youtube.com/live/m3igvHUZroU
⏮️ Playlist so far: https://www.youtube.com/playlist?list=PLRxjf93xotuofCtaxtGOcWeuxVZYJyY-m
📲 Download Jiiiii: https://apps.apple.com/app/apple-store/id6472801548?pt=14724&ct=MastodonCCStreams&mt=8
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
I'm making a seasonal anime guide app, in the open for all to experience and learn from.
Let's see if we can get releases showing on tvOS without breaking layout!
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #SwiftLang #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
Come chill with me: https://youtube.com/live/2aHv9PapZDg
In UIKit I use lldb or the View Debugger to find views I need to change. Those seem no to work with SwiftUI views.
How can I find the view that is visible in the simulator?
There needs to be a better way than randomly adding background colours until I found the view I was searching for.
. #Tahoe 26 is great but weird. Why on earth would anyone hide the sidebar on the left and make it appear on the right?
#macos #developers #swift #swiftui #OS
Hot Take: A large part of why #Swift and #SwiftUI can take forever to compile and/or produce unhelpful errors is because the community is overly obsessed with keeping code "simple" by removing all explicit type declarations.
This is simply adding extra work for the compiler and it's reducing readability for the human.
A few simple, well-placed explicit type declarations make the world a better place for compile times and your sanity.
Had a bit of a firtle tonight and read the HIG etc to get Hike Maker working better with iOS26. Some layout tweaks, especially around the tab and toolbars. Starting to look ok, but lots still to do...
#indiedev #swiftUI #swift #iOS26
The new corner concentric APIs are still such a mess. You basically cannot use them in production. #SwiftUI #UIKit
Here's a weird #SwiftUI question: why does adding another view to the hierarchy pushes the navigation title down?
I.e.: why is there an extra padding above BBB that wasn't there on the root view?
#iosnavigation

How is this still the default look of a text field in #iOS26? #SwiftUI #UIKit
