Good afternoon, everyone! I made a typo and didn't add a dot before the overlay
and got a crash while the application was running. There was no useful information in the crash stack to find the problem spot. But over time I realized that the mistake was that I forgot to add a dot. And here's the question: If the code falls without a dot and it seems to be initially incorrect, then why didn't the compiler report an error during assembly?
struct ContentView: View {
var body: some View {
Text("Text 1")
overlay(Text("Text 2"))
}
}