I'm working on an XCode project and can't figure out how to get rid of this error. I have imported the SwiftUI library which 'Content' is from but XCode doesn't seem to realize that. Any suggestions?
func body(content: Content) -> some View {
content
.blur(radius: spotify.isAuthorized ? 0 : 3)
.overlay(
ZStack {
if !spotify.isAuthorized || Self.debugAlwaysShowing {
Color.black.opacity(0.25)
.edgesIgnoringSafeArea(.all)
if self.finishedViewLoadDelay || Self.debugAlwaysShowing {
loginView
}
}
}
)
.onAppear {
// After the app first launches, add a short delay before
// showing this view so that the animation can be seen.
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
withAnimation(LoginViewController.animation) {
self.finishedViewLoadDelay = true
}
}
}
}