Q-Mobile / QGrid

🎛 QGrid: The missing SwiftUI collection view.
MIT License
1.65k stars 105 forks source link

Grid with static cells #4

Closed alelordelo closed 5 years ago

alelordelo commented 5 years ago

Hi @karolkulesza,

Amazing stuff mate, been waiting for this since SwiftUI was introduced! : )

Im trying to make a simple grid without data (static cells), but got the error bellow. Any idea what is wrong?

I am using: Xcode 11 Beta 5 Catalina Beta 5

Screenshot 2019-08-11 at 15 02 02

`// GridView.swift

import QGrid import SwiftUI

struct GridView: View { var body: some View { QGrid(columns: 4, { ProductCell() } } }

if DEBUG

struct GridView_Previews : PreviewProvider { static var previews: some View { GridView() } }

endif`

karolkulesza commented 5 years ago

Hi @alelordelo,

As you can see in the Roadmap / TODOs section, this is one of the features that could be implemented, so if you want, feel free to contribute 😎

Best, Karol