Sometimes #Claude has a tendency to mix #UIKit and #AppKit. I experience quite often that it writes some code using methods from UIKit that just does not exist in AppKit...
Files and folders can now be relocated by drag and drop. Would be cool to have an animation that shows the files being moved from one folder to another. Something I could work on in the future... **TODO:** Currently the user must drop directly over a folder to relocate. Instead, dragging over a folder’s contents should highlight the parent folder’s background and allow the user to drop the dragged file or folder to relocate it. #dev #macOS #Swift #SwiftUI #AppKit
It's a beautiful day with blue sky and the sun is shining ☀️ image Today will be about implementing a solution to monitor changes to the filesystem. More specifically, my notes app needs to be able to know when the user modifies their Space vault from outside the app. Currently, the app will not update the list of files if the user manipulates the vault through Finder. E.g., if the user renames or deletes files in their Space vault. _(the vault is just the root folder containing all the files and directories in the Space)_ From the research I've done, it seems like `DispatchSourceFileSystemObject` is what I need to be using. #dev #macOS #Swift #SwiftUI #AppKit
I'm having a re-rendering issue in SwiftUI. - I have two windows open with the same Space in each. - I then change the name of the space in `LaunchView`. Now, only the frontmost window will be automatically updated to display the new name of the Space. However, the window behind does **NOT** update unless I hover above the button displaying the name. I have tried the `.id()` approach, but that didn't work. It's a minor problem, but it's still driving me crazy. Using `@Observable` in the ViewModel should take care of re-rendering the necessary parts in the UI. I just don't understand why it only works in the frontmost window...