Tech
The Crash That Only Happened Sometimes — A SwiftUI Bug
This is a submission for DEV's Summer Bug Smash: Smash Stories powered by Sentry .
I spent three hours debugging a SwiftUI crash that felt completely random. It wasn't random at all. It was me, a force unwrap, and a fundamental misunderstanding of when SwiftUI renders its views.
Okay gather round because I need to tell you about the three hours I spent convinced I had found a bug in SwiftUI itself. I had not found a bug in SwiftUI. I had found a bug in my own assumptions, ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to