Categories
Apple MacOS App Swift SwiftUI

Practical SwiftUI stuff I learned while building a Photo Viewer for MacOS

If you just want to tinker with all the code, you can get it here. How to make your SwiftUI MacOS app open a file You can open the file by using “Command + Click” Open With dialog, or you change the file association to use your app as the default app for that file […]

Categories
Create ML Machine Learning Swift

Xcode Testing ML model for your app without running on the device

As of this writing, testing the image detection ML model inside the simulator (I am using Xcode 14.0 beta 3), won’t work if you are targeting iOS or iPadOS, you have to use an actual device. But now I stumbled onto the fact that if you can make your app, run for the “My Mac […]

Categories
Apple

Today I started coding (using Xcode) on the MacBook Pro 16 2021, here are my first thoughts

Let me start with the main reason I switched from MacBook Air to MacBook Pro 16, easy to guess, screen size. After coding for a while on the Air, I realized that I need a bit more real estate for running the simulator or seeing the changes in the Canvas while working on some SwiftUI […]