Frederik Handberg
banner
frederikhandberg.com
Frederik Handberg
@frederikhandberg.com
🇩🇰 23. Studying for a degree in Software Engineering, while working as a Freelance News Photographer. I'm also learning to sew garments...
For the past month or two, I've been working on some pretty complex logic to support caret navigation and text selections across multiple sequential `NSTextView`s in #AppKit.

I need this functionality for my block-based notes app, where each block lives inside its own text view. #dev
December 8, 2025 at 8:55 PM
I FINALLY have `NSTextAttachmentViewProvider` working in my native #macOS notes app! 🎉
This means I can now display interactive #SwiftUI views inside an `NSTextView`. Notice how I’m embedding an image directly into the textview, which the user can click to show the image in a popup. #dev
November 15, 2025 at 4:42 PM
I finally figured out a solution to fix the many issues I had with my approach for the editor 😅

Basically, I was using an independent and separate `NSTextView` inside of each block. For example, if I had two text blocks, it would be two separate `NSTextViews`.

#dev #Swift #AppKit #SwiftUI
November 3, 2025 at 10:02 PM
I added a new image popup to my #macOS notes app 🚀

Simply click on an image, and it will open the image in a popup with a blurry and slightly dark background. I think it looks beautiful 🤩
Also added a subtle fade-out effect to the note content right below the tabs at the top.
October 31, 2025 at 5:40 PM
Funny how in autumn I get way more productive. I just code all the time 😂 And besides coding, I walk the dog 🐕‍🦺

The weather outside is cold and it’s raining 🌧️ Not very fun to be outside this time of the year…
October 29, 2025 at 9:35 PM
Importing images and videos is now working in my notes app 🚀
But it's not quite perfect yet! There's still more work to do 💻
#dev #Swift #AppKit #macOS
October 29, 2025 at 11:59 AM
I changed the UI a bit for my native #macOS notes app 🚀

Now the note documents are displayed inside what looks like a page. I personally really like the design, but it’s just an option the user can toggle. If disabled, the note shows without the page outline. #dev #Swift #AppKit
October 26, 2025 at 7:50 PM
I'm doing an internship for my Software Engineering degree this fall semester.

One of my tasks is to develop a widget that clients can embed on their websites using a simple `<script>` tag. That tag should fetch a JavaScript file from our server that contains all the logic.
August 28, 2025 at 9:33 AM
The collapsing and uncollapsing folder functionality is now working. #dev #swift

1/2👇
April 24, 2025 at 1:25 PM
This problem has been bugging me for the whole day…

I’d like to make the selected row item stand out by adding a custom background color and corner radius, instead of using the default styling.

1/4👇
April 12, 2025 at 5:21 PM
I improved the tab bar to switch views in the sidebar.
Additionally, the search functionality now works quite well. I implemented it so that the letters matching the search query will be highlighted.
April 8, 2025 at 7:56 AM
I had to switch from wrapping everything in a Button to using a ZStack instead.

I could not get the dragging functionality to work when using the Button, but now, at least it sort of works. The UX is still a bit rough.
March 31, 2025 at 12:45 PM
Video from a few days ago, when a driver lost control and ended up in the trees.
March 30, 2025 at 5:29 PM