Okay, so somehow it is only Saturday afternoon and that means it's time to blast some music and get stuck into wrangling MusicKit into how I want to use it. https://music.apple.com/au/album/bricks-are-heavy/309736061
#musicKit #iOSDev #macOSDev

Okay, so somehow it is only Saturday afternoon and that means it's time to blast some music and get stuck into wrangling MusicKit into how I want to use it. https://music.apple.com/au/album/bricks-are-heavy/309736061
#musicKit #iOSDev #macOSDev
A proper Mac app deserves some proper documentation so I'm going overboard creating a help book for Cartographer.
None of that link to a webpage stuff here.
Trying to find some joy in that second 90% of the project…
If you have any previews in your #Xcode projects that are using the `return someView{}` syntax the latest update will return an error for this.
The error is that you are not returning a `some SwiftUI.View` type regardless if the view you are returning is in fact a SwiftUI.View.
I've not refactored my code around this yet but if you have this sort of pattern you may want to hold off on updating
If you are lucky enough to be able to safely travel to Cupertino for #wwdc25 then I highly recommend including @CommunityKit as part of your week long #wwdc adventures. #iOSDev #macOSDev
Friday afternoon #SwiftUI fun.
Trying to print a mapView. The SwiftUI printing methods don't work with views such as Map and Web.
I can create an imageRepresentation of the map that gets everything but the annotation markers. Close but I need the markers.
I can use old AppKit methods like printView() but that only prints the markers.
Can't make this stuff up.
Think I may need to manually composite each marker onto the map image.
I'm thinking that's a next week task.
How well documented should a project be before being published to Codeberg (or Github)? I have something to share, but feel it should be explained...
I'm going to assume this is documented somewhere but…
if you're doing #SwiftUI #MacOSDev with a customizable toolbar you have to be sure any view you pass as the toolbar is not just a standard View Struct.
You must pass a CustomizableToolbarContent Struct.
Also each toolbar item and the toolbar itself must have an id declared.
A standard View will display and work as a toolbar but you will not get the ability to edit the toolbar in any way.
Happy to have this working now.
long shot question:
#SwiftUI Mac app.
has anyone had luck getting windowToolbarStyle to restore the AppStorage bound value as explained in the Apple docs?
.windowToolbarLabelStyle($labelStyle)
does not appear to work no matter how I try it. Followed the sample code provided exactly. Doesn’t work.
https://developer.apple.com/documentation/swiftui/scene/windowtoolbarlabelstyle(_:)
A new #TestFlight build of DataOrganizer is now available.
DataOrganizer is a bento-esque personal database.
This build fixes an issue where moving certain items using drag and drop, such as fields in a form, would place the relocated items in the wrong place. This would sometimes be followed up by a crash.
https://testflight.apple.com/join/qWWpZDe9
#MacDev #macOSDev #AppDev #IndieDev #IndieApps #soloDev #filemaker
Hot take: Apple should not be allowed to ship any new sample code:
• Unless it is 100% “Strict Concurrency Checking == Complete” compliant (no warnings or errors).
• Unless it comes with unit tests (or, failing that, at least UI tests) providing 100% code coverage.
Further, they should be required to embark on retrofitting all of their prior sample code (for systems still active) to be compliant with the above.
#AppleDev #iOSDev #macOSDev #WWDC #Xcode
Figured out the gauntlet of APIs to get a macOS app to access a file outside of its sandbox today. Feeling proud of myself but wow what a journey. #macosdev
After working with Objective-C again after a very long time, I have to say, it's actually quite nice.
In hindsight, I have to agree. An improved Objective-C with some Swift elements might have been nicer compared to what Swift has become.
I also got the feeling that the problem wasn't Objective-C, but rather the terrible APIs Apple forced developers to use, such as Storyboards and Interface Builder.
#macosdev #iosdev #swift #objectivec
I released another #TestFlight build of DataOrganizer, a personal database.
This build eliminates a crasher that would sometimes occur after control / right clicking on a library’s cards list to display the context menu.
https://testflight.apple.com/join/qWWpZDe9
#MacDev #macOSDev #AppDev #IndieDev #IndieApps #soloDev #filemaker
#Swift Charts are pretty great. You can get a lot done right out of the box.
Thats it. No snark.
Quick elevation profile chart for my Cartographer app. Needs polish but this is about 15 lines of code for the chart.
https://developer.apple.com/documentation/charts/creating-a-chart-using-swift-charts
Excited to share that a podcast episode @leogdion and I recorded together, where we chat about my new book "SwiftUI Fundamentals", common SwiftUI misconceptions, and building iOS and macOS apps, is now live: https://brightdigit.com/episodes/197-swiftui-fundamentals-with-natalia-panferova/
#SwiftUI #iOSDev #macOSDev