I genuinely, truly enjoy SwiftUI. It has made my products **so much** better.
However, if I see “The compiler is unable to type-check this expression in reasonable time" one more time, I may drop-kick my computer.
I genuinely, truly enjoy SwiftUI. It has made my products **so much** better.
However, if I see “The compiler is unable to type-check this expression in reasonable time" one more time, I may drop-kick my computer.
@caseyliss 💯!
I’ve developed ridiculous coping mechanisms, like binary searching for the error by commenting out half the code at a time until it compiles again 😫 (thankfully SwiftUI by its nature makes this part comparitively easy)
?SYNTAX ERROR vibes
Try breaking your expressions of anger into distinct sub-expressions.
@chucker –
Except that in my experience, "view too complex" is false. Usually it's just been some minor syntax thing like it was for Casey here.
@caseyliss “Try breaking your expressions into distinct sub-expressions. :)”
WHAT EXPRESSIONS AM I SUPPOSED TO BREAK UP
Attached: 1 video One of the biggest pains in Swift (and SwiftUI) is the "The compiler is unable to type-check this expression in reasonable time" While it's true it's not helpful. Besides explicitly declaring the type and breaking up your SwiftUI code, what else have you found helpful? In this episode @[email protected] and I discuss the joys and pains of Swift's type system. https://brightdigit.com/episodes/188-ludicrous-types-with-nick-lockwood