It's funny how sometimes when asking a complex question to Claude, it will go in an infinite loop. It's like: - "Wait, that won't work" - "Actual Fix:" - "Actually, that's not the right approach either." - "Actually, let me check the actual update flow more carefully:" - "The ACTUAL problem:" And then it ends with: "Let me try a different approach - add logging:" Please Claude, just tell me to add print statements before you start rambling off... It's wasting my weekly limit 😭
I have now finished implementing support for adding and removing note documents as bookmarks. The user can simply right-click a note and then select the option called 'Bookmark'. Bookmarks are saved locally on the user's device in a file called `bookmarks.json` located in the hidden folder `.space/`. Also, I have worked on making a small preview overlay that appears when hovering notes. It's not quite done yet. Still need to work on the UI of it, but I think it's pretty nice. #dev #AppKit #SwiftUI #macOS
I’m starting to get a pretty good understanding of the limitations and quirks/bugs in SwiftUI and AppKit, and of ways to workaround these issues. It makes developing native apps with SwiftUI and AppKit a lot more fun.
I don't understand why liquid glass buttons are so boring on macOS 26 compared to iOS. They are just static without any cool effect when clicking them... :( Been thinking about integrating them into my notes app, but I don't even see why I would want to. This is probably not an easy task, but I wonder if it's possible to modify the `.glass` effect on SwiftUI buttons. Otherwise, maybe I could go completely custom and use the `.glassEffect()` modifier on my own buttons. But the animation will not be easy to accomplish - it's what makes the buttons so engaging to click on iOS.
I have now implemented functionality to save and remove bookmarks. Simply right-click on a note document, and the context menu will show a ‘Bookmark’ button. Bookmarks are stored in a local file called `bookmarks.json` located in the hidden folder `.space/`. **Next task:** Display list of bookmarks in the UI.
I was wrong… It had nothing to do with switching to `NSWindowController` from `WindowGroup`. I just didn’t realize my SwiftUI `CommandGroup` was messing up my close shortcut for the AppKit window. I thought they wouldn’t work with the AppKit approach, but apparently they still do. Now `Cmd+W` will close the selected tab while using `Cmd+Shift+W` will close the focused window. View quoted note →
Well, turns out I also needed to replace my `LaunchView` from being initialized with SwiftUI's `WindowGroup` to an AppKit approach using `NSWindowController`. Now I have full control with AppKit and can easily choose when to open and close the window 😌 #dev View quoted note →