Recently I've made 1 character mistake in my code and have hard time during searching what was the problem.
Basically I forgot to set dot near one of the frame modifiers and compiler did not warn me, but during app running I got 100% CPU and rocket increase of RAM (on real app). Feels like recursion, but no any hint in call stack inside Xcode on crash stop.
struct BadView: View {
var body: some View {
Color.red
frame(height: 36)
}
}
I would like to see at least warning for such cases. Problem may look simple on this small example, but if you added 1k+ lines after last compilation - searching this type of errors could be problematic when you have no idea what to search.