Categories
AI GPT-3 Swift SwiftUI

GPT-3 use case – summarise current news feed from website and classify the sentiment – open-sourced

Source code: https://github.com/cosmindolha/Scrapper I had this idea in my had for a few years now. It would be cool, if you could just open an app, and the app will go, fetch the latest news, summarises them for you, and also classifies the sentiment, in this way you could in theory, cover a lot of […]

Categories
Apple Swift

If you are having problems paying for your Apple Developer membership in 2022, try this

I have been trying to renew my Apple Developer membership for a couple of days now, talking with support at Apple provided very little info on what might be going on. The card i use, is the card I have used before, and is being used for other Apple services and purchases, so it works […]

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 Swift SwiftUI

Extension for inverting the Color of your image in SwiftUI based on .dark or .light theme

I am using this little extension to invert the colors of the icons in my app. The icons are in black and white, and designed first to be used in the .light theme mode, that means they have beed design in black lines, so when the user will switch to dark, the icons should change […]

Categories
Apple Create ML Machine Learning Swift

Error – The VNCoreMLTransform request failed

If you are working with the vision framework and you are getting this error, while testing the iOS app in simulator, well, test it on the actual device and see if the error goes away. Very unfortunate error description. This was very confusing personally, since the code was working fine while I was using it […]