Frederik Handberg's avatar
Frederik Handberg
npub1nj0c...2gqz
23 🇩🇰 Studying for a degree in Software Engineering while building fun projects and working freelance as a News Photographer 📷 I share my software projects, photos and videos from my work as a news photographer, and progress updates as I learn to sew garments. Basically, I just write about my hobbies. frederikhandberg.com
Traffic accident on the E45 near Hedensted towards Horsens. Car flipped onto its roof. #press
**Switching to Observation framework worked** I’m surprised to say it, but converting my code from using ObservableObject to the newer Observation framework that Apple released fixed the problem I had with the view rerendering. I did read that the Observation framework had improvements made to rerendering, as it will only rerender the views that actually need to be rerendered, but I didn’t know it would work just immediately without making any significant changes to the codebase. So now, the rotation animation for the chevron is working and it looks great. It would be nice to have an animation where the contents of a folder will slide down when expanding the folder. And likewise, when collapsing a folder, the contents should slide up. #dev #swift View quoted note →
Fire in mini excavator at large solar project in Juelsminde. #press
**SwiftUI rerendering issue** I thought that my implementation of the ‘Files’ view in the sidebar of my Swift app was pretty solid. It does work, but it is rerendering the view each time I collapse and expand folders. This means, I cannot add an animation for the chevron when it rotates. Even though it’s a small detail, I still find it pretty annoying. Looking into how can implement the functionality in a way where Swift does not rerender the view like it’s doing now. I will try to use the Observation framework instead of ObservableObject. Let's see if that gives me a better result. #dev #Swift #macOS
The collapsing and uncollapsing folder functionality is now working. Next, I should implement the functionality to create new notes and folders. Also, I should work on figuring out how I can add functionality to drag-and-drop files and folders, allowing users to relocate content to other directories. #dev #swift
**Code backend before coding frontend** When I start working on a new app idea I have, I always begin by designing the UI in Figma. It’s a good way for me to brainstorm things like which features the app should include and get an idea of how I want the UI to look. After the brainstorming and getting a rough idea of the UI, I start building the frontend. This is the part that I really want to change when I start a new software project. I have this tendency to immediately begin working on the frontend. I think it’s because it comes easily to me. You know, to design and build a pretty UI. But I think it would be beneficial to change, so that instead of starting with the frontend, I should begin with the backend once the brainstorming is done. That way, I can quickly find out which features are tough to implement. That’s valuable information, because there’s no reason to build the UI for a feature that turns out to be too time-consuming to implement. This is something I experienced when I was working on a macOS app that was supposed to control volume per application (exactly like how the Windows volume-mixer works). I had designed and built the UI, and personally, I think it was looking really good. But when it came time to actually implement the features, things started going downhill. Turns out, that the necessary APIs are closed source, and getting it to work required a lot of low-level C++ code. I barely have any experience with C outside of the 'Embedded Software' course I am doing this semester, so it was way out of my league.
I think I have screwed up with my state management in my Swift notes app. I can’t get a view to update immediately. Every time a change happens, the user must go back and forth between views before the change is reflected in the UI. Done some research, and it seems like my problem is a classic Swift problem known as “the nested Observable Objects issue”. #swift #dev
Found this hole today while walking the dog. Wonder what’s living down there 🤔
I completed an assignment today for my WEB2 course. The assignment involved developing a web application that displays all Pokémon. Users could then click on a Pokémon to view detailed information about it. #dev
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. I need to implement a new separate window for settings. I think it’d be a really cool UX if the user could simply swipe between the different tab views in the sidebar. #dev #swift
Police operation near Sejet between Horsens and Juelsminde. Multiple arrests. #press
I finally have the empty tabs mostly functional for my notes app. (I’m building a notes app to learn Swift and how to develop apps for MacOS) I still need to figure out how I can implement the necessary functionality to allow the user to drag the tabs so they can be rearranged – similar to how it works in Chrome and other browsers. Still have a LONG way to go before the app is fully functional, but I’m making a bit of progress each day. #dev #swift
Bicyclist hit by semitruck. The bicyclist is reportedly in critical condition. Intersection of Ringvejen and Thorsvej in 8700 Horsens. #press
Frederik Handberg's avatar
frederikhandberg 10 months ago
Today, I’ve been making some fake profiles for my social media portfolio project and generating some content for their profiles (posts, comments, etc.) Tomorrow, I will be taking screenshots of the platform and writing about the platform for my personal website. Basically, I want to write about the features of the platform, struggles I had developing the platform along the way, future improvements that could be made, and so on. It should be a personal website I include a link to in my CV. #portfolio #internship