This week ended with a big annoyance — and I still have no idea how to fix it. What I want to do seems so easy, but it isn’t working.
SwiftUI redraws every view affected by a state change. If you are not careful this might cause your entire UI to redraw on every interaction. For me this happened at every keystroke in an text-field. Using random background colors you can find such issues.
The second week working on Blip didn’t quite start off as I wanted but I managed to turn it all around by the end of the week. Sweet!
Week 1 of working on Blip has been a huge boon to me. I’ve set out to create the basic “new entry” window. Now I thought that would take me 1-2 days tops. That turned out to be wrong and I’ve spent the entire week on getting just that done. That was frustrating.
Let’s have a look into how to create a window similar to how Spotlight or Alfred looks.
Here I’ll show you how to show/hide a window using a global keyboard hotkey/shortcut, similar to how Spotlight or Alfred work, on macOS using Swift.
The latest SwiftUI 2 at the time of this writing has native support for multi-line text areas. This feature is bound to macOS 11.0+ (Big Sur).
For my projects, the last two years haven’t been great. I started work on multiple things but for one reason or another they all fizzled out in the end. Some of them with good reason, others maybe not so much. Then towards the end of 2020 it became nigh impossible for me to sit down and get any work done. The corona virus pandemic wasn’t helpful either.
I write this post in hope to stop my future self from doing this again. Sometimes I waste a few hours to find an implementation for something because I don’t like my first draft, or it should do more. The result is always the same: Whatever that first draft was.