Posts
steipete's blog
Cancel

Top-Level Menu Visibility in SwiftUI for macOS

Pretty much all Mac apps have a semi-hidden Debug menu that can be triggered via a user defaults entry or via settings. Naturally I wanted to add the same in my latest project. I’m building a new...

Fixing keyboardShortcut in SwiftUI

iOS 14 introduced keyboardShortcut, a convenient native way to add keyboard shortcuts to SwiftUI. However, if you end up using it, it likely won’t work. I was curious why that is, so follow along w...

Supporting Both Tap and Long Press on a Button in SwiftUI

My task today was quite simple: adding an optional long-press handler to a button in SwiftUI. A regular tap opens our website and a long press does… something else. Not so difficult, right? Naive ...

On Using Apple Silicon Mac Mini for Continuous Integration

Ever since the M1 was announced, I’ve been curious how well Apple’s new Mac mini would perform for our CI system. A few days ago, we finally got access to two M1 Mac minis hosted on MacStadium (8-c...

Apple Silicon M1: A Developer's Perspective

The excitement around Apple’s new M1 chip is everywhere. I bought a MacBook Air 16 GB M1 to see how viable it is as a main development machine — here’s an early report after a week of testing. Xco...

Gardening Your Twitter: Curating Your Timeline

Your timeline defines your Twitter experience. Learn strategies how to pick your followers, how to hide what’s not interesting and how to mute negative people and keep Twitter fun for you. This is ...

Gardening Your Twitter: Growing Your Followers

I’ve been using Twitter for almost 12 years now. It can be challenging to navigate your timeline, so today I’m sharing some tips to keep it fun. This is the first part of my Twitter series about G...

Forbidden Controls in Catalyst: Optimize Interface for Mac

While working on our PDF Viewer update for Big Sur and switching to the new Catalyst Mac Interface Idiom, I was greeted with a new exception coming directly from UIKit: [General] UIStepper is no...

Disabling Keyboard Avoidance in SwiftUI's UIHostingController

While SwiftUI is still being cooked hot, it’s already really useful and can replace many parts of your app. And with UIHostingController, it can easily be mixed with existing UIKit code. With iOS...

The State of SwiftUI

Apple released SwiftUI last year, and it’s been an exciting and wild ride. With iOS 14, a lot of the rough edges have been smoothed out — is SwiftUI finally ready for production? Fruta Sample Ap...