import SwiftUI
struct menjeans: View {
var menje:[UIImage] =
[UIImage(named:"IMG_9917")!,
UIImage(named:"IMG_9920")!,
UIImage(named:"IMG_9923")!]
let layout=[GridItem(.flexible()),GridItem(.flexible())]
var body: some View
{
NavigationView
{
ScrollView(.vertical)
{
LazyVGrid(columns: layout,spacing: 2)
{
ForEach(menje, id: .self)
{
imager in
maincustom(content: Image(uiImage:imager), text: "df")
}
.navigationBarTitle("Men")
}
}
}
}
}
struct menjeans_Previews: PreviewProvider {
static var previews: some View {
menjeans()
}
}