Grid icon indicating copy to clipboard operation
Grid copied to clipboard

Items overlap

Open Jomy10 opened this issue 4 years ago • 4 comments

I have a problem where the elements of the grid are overlapping. My code is:

var body: some View {
     ScrollView {
            VStack(alignment: .leading) {
                Group {
                    Text("Letters en woorden")
                        .font(.title)
                    Grid(tracks: 3) {
                        Text("_eererer_")
                        Text("_eererer__")
                        Text("_eererer_")
                        Text("_eererer_")
                        Text("_eererer_")
                        Text("_eererer_")
                    }
                // ...
                }
            }.padding(.bottom)
     }.navigationTitle("Morse")
       .padding(.horizontal)
}

This is how my view look Schermafbeelding 2021-10-16 om 13 06 56

Jomy10 avatar Oct 16 '21 11:10 Jomy10

Grid currently doesn't support nesting into ScrollView. Intrinsic-sized mode is under development

denis-obukhov avatar Nov 25 '21 10:11 denis-obukhov

Grid currently doesn't support nesting into ScrollView. Intrinsic-sized mode is under development

Are there any news about that issue?

Elektronenhirn108 avatar Apr 20 '22 12:04 Elektronenhirn108

@denis-obukhov Will Intrinsic-sized continue to be updated?

birdmichael avatar Jun 21 '23 03:06 birdmichael

@denis-obukhov I have implemented the basic functions. I just need to replace GeometryReader with HuggingGeometryReader. But there is a little problem: because all the code depends on the specific width, is there any solution?

birdmichael avatar Jun 21 '23 05:06 birdmichael