TabView(selection: $currentIndex) {
ForEach(1..<numberOfImages) { num in
Image("er\(num)")
.resizable()
.aspectRatio(contentMode: .fill)
.frame(height: 200)
.cornerRadius(15)
.overlay(Color.black.opacity(0.4)).cornerRadius(15)
.padding([.leading, .trailing], 10)
.tag(num)
}
}
.frame(height: 200)
.tabViewStyle(PageTabViewStyle())
.padding()
HStack {
Image(champions.imagei1)
.resizable()
.scaledToFit()
.aspectRatio(1, contentMode: .fit)
.frame(width: 60, height: 60)
Spacer()
Image(champions.imagei2)
.resizable()
.scaledToFit()
.aspectRatio(1, contentMode: .fit)
.frame(width: 60, height: 60)
Spacer()
Image(champions.imagei3)
.resizable()
.scaledToFit()
.aspectRatio(1, contentMode: .fit)
.frame(width: 60, height: 60)
}.padding()