Tuesday, January 23, 2024

SwiftUI Main Thread Hang Detector

Wade Tregaskis:

This is just a little snippet that is quite useful for reporting when your GUI thread (the main thread / actor) hangs for a significant amount of time. There are numerous heavier-weight tools for analysing this sort of thing, but I’ve found that this simple monitor does what I need most of the time.

1 Comment RSS · Twitter · Mastodon

Are hangs and UI unresponsiveness such a common problem in SwiftUI that using something like this is necessary?

Leave a Comment