The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.
the switch case function worked in playgrounds why not in Xcode?
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.
the switch case function worked in playgrounds why not in Xcode?
Could you show the line of code where the error occurs ?
Type inference may be done differently in playgrounds (REPL is somehow an interpreter). So behavior may be different.
var body: some View {
NavigationView {
ZStack {
Image("DogTreat")
.resizable()
.ignoresSafeArea(.all)
.opacity(0.99)