I am learning SwiftUI, from scratch and trying to show a Image from a URL, I am using the built in AsyncImage method, yet I get this error with no context.
Cannot call value of non-function type 'module<AsyncImage>', Googling didn't help and I am following the exact same code line-by-line from a article I am following.
.
Here's some more details from the diagnostics popup, I received.
cannot call value of non-function type 'module'
SchemeBuildError: Failed to build the scheme "AsyncImage"
cannot call value of non-function type 'module'
Compile ContentView.swift (x86_64): /Users/fayaz/Learn/AsyncImage/AsyncImage/ContentView.swift:14:9: error: cannot call value of non-function type 'module' AsyncImage(url: URL(string: imageUrl)) ^
Here's my setup.
- Macos BigSur v11.0.1
- Xcode Version 12.5