-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HELP WANTED - How show section in your WaterfallGrid? #29
Comments
Ciao @CPiersigilli, non vedo errori nel modo in cui stai usando Hi, I don't see errors in the way you are using import SwiftUI
import WaterfallGrid
struct ContentView: View {
let images: [String] = Generator.Images.random()
var body: some View {
ForEach(0..<3, id: \.self) { section in
Section {
Text("Section N. \(section)")
WaterfallGrid((0..<self.images.count), id: \.self) { index in
Image(self.images[index])
.resizable()
.aspectRatio(contentMode: .fit)
}.gridStyle(columns: 4)
}
}
}
} |
Se possono esserti utili, ti invio i codici relativi a |
Uno strano comportamento con I think it may be something to do with NavigationView {
VStack {
...
}
} |
Il tuo suggerimento ha migliorato un po' la situazione, ma ancora il risultato non è soddisfacente, infatti le immagini si riescono a vedere tutte esclusivamente scrollando all'interno della sezione, pur avendo inserito nel codice il modificatore
Inoltre, altra anomalia, è quella che le immagini si vedono soltanto dopo aver modificato il numero delle colonne da |
Ciao, scusa il ritardo nella risposta. Hi, sorry for the delay. |
Come debbo modificare il codice sotto, per visualizzare le sezioni?
Tieni presente che se utilizzo il codice sotto:
funziona perfettamente, come puoi vedere nello screenshot sotto.
The text was updated successfully, but these errors were encountered: