exyte / Grid

The most powerful Grid container missed in SwiftUI
MIT License
1.71k stars 90 forks source link

When placed inside a NavigationView cell takes the whole screen #14

Open orkenstein opened 3 years ago

orkenstein commented 3 years ago

Awesome framework! Please, consider looking into the following issue:

I'm trying to embed Grid into the following setup:

import ExyteGrid
import SwiftUI

struct Test: View {
  var body: some View {
    NavigationView {
      Grid(tracks: 3) {
        Color(.blue)
        Color(.purple)
        Color(.red)
        Color(.cyan)
        Color(.green)
        Color(.orange)
      }
    }
  }
}

struct Test_Previews: PreviewProvider {
  static var previews: some View {
    Test()
  }
}

The result:

Screen Shot 2020-09-24 at 17 02 15
Xcode Version 12.0 (12A7209)
ExyteGrid (0.1.0)
iOS 14.0
Sam-Spencer commented 3 years ago

Same issue here!