Updated for Xcode 12.5
This usually happens because you accidentally created a view without filling in its contents, like this:
struct DetailView: View {
var body: some View {
}
}
If you created that view as a placeholder, just give it so temporary content to make the compiler happy, like this:
struct DetailView: View {
var body: some View {
Text("Placeholder")
}
}
SPONSORED ViRE offers discoverable way of working with regex. It provides really readable regex experience, code complete & cheat sheet, unit tests, powerful replace system, step-by-step search & replace, regex visual scheme, regex history & playground. ViRE is available on Mac & iPad.
Sponsor Hacking with Swift and reach the world's largest Swift community!
Link copied to your pasteboard.