Search code examples
xcodegridviewswiftuilazyvgrid

Not able to run Grid views in swift ui


Xcode Version - 12.5 Swift Version - 5.4

code (ContentView.swift) enter image description here

When I try to run this code I get and error in SceneDelegate.swift as follows enter image description here


Solution

  • Change contentView to ContentView(). Case-sensitive.