ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

#macosdev

4 posts3 participants0 posts today

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

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.

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.

developer.apple.com/documentat

Apple Developer DocumentationwindowToolbarLabelStyle(_:) | Apple Developer DocumentationSets the label style of items in a toolbar and enables user customization.

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.
testflight.apple.com/join/qWWp
#MacDev #macOSDev #AppDev #IndieDev #IndieApps #soloDev #filemaker

testflight.apple.comJoin the DataOrganizer betaUsing TestFlight is a great way to help developers test beta versions of their apps.

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

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.
testflight.apple.com/join/qWWp
#MacDev #macOSDev #AppDev #IndieDev #IndieApps #soloDev #filemaker

testflight.apple.comJoin the DataOrganizer betaUsing TestFlight is a great way to help developers test beta versions of their apps.