adding slideshow to app

hello I am trying to add a slideshow to my app but I am getting 2 error messages and 1 warning the code is as follows:

//  ContentView.swift
//  BEMCO iOS
//
//  Created by Lewis Dunn on 06/01/2023.
//
import SwiftUI
import WebKit
import UIKit

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

struct MainView : View {
    var body : some View {
        VStack {
    }
}

    struct MainViewController : UIViewControllerRepresentable {
        func makeUIViewController(context: UIViewControllerRepresentableContext<MainViewController>) -> UIHostingController<MainView> {
            return UIHostingController(rootView: MainView())
        }
        func updateUIViewController(_ uiViewController: UIHostingController<MainView>, context: UIViewControllerRepresentableContext<MainViewController>) {
            let viewController = UIHostingController<MainViewController>(rootView:MainViewController())}
        }
    }



struct ContentView: View {
    let webView = WebView(request: URLRequest(url: URL(string: "https://www.bemcouk.com")!))
    var body: some View {
        VStack {
            webView
            HStack {
                Button(action: {
                    self.webView.goBack()
                }) {
                    Image(systemName: "arrowshape.left")
                        .font(.title)
                        .foregroundColor(.blue)
                    }
                Spacer()
                Button(action: {
                    self.webView.goHome()
                }) {
                    Image(systemName: "house.fill")
                        .font(.title)
                        .foregroundColor(.blue)
                }
                Spacer()
                Button(action: {
                    self.webView.goForward()
                }) {
                    Image(systemName: "arrowshape.right")
                        .font(.title)
                        .foregroundColor(.blue)
                }
            }
        }
    }
}
struct WebView: UIViewRepresentable **{**2 errors are here _"UIViewRepresentable' requires the types 'some View' and 'Never' be equivalent _ and the other error is _"Type 'WebView' does not conform to protocol 'UIViewRepresentable'_**
    let request: URLRequest
    private var webView: WKWebView?
    init (request: URLRequest) {
        self.webView = WKWebView()
        self.request = request
    }
    func makeUIView(context: Context) -> WKWebView {
        return webView!
    }
    func updateUIView(_ uiView: WKWebView, context: Context) {
        uiView.load(request)
    }
    func goBack() {
        webView?.goBack()
    }
    func goForward() {
        webView?.goForward()
    }
    func goHome() {
        webView?.load(request)
    }
    
    @State private var currentIndex = 0
    let images : [String] = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
    let imagesCount = 19
    var body : some View {
        VStack {
            Image(images[currentIndex])
                .resizable()
                .scaledToFit()
            HStack{
                ForEach(0..<imagesCount){ index in **warning is here. Non-constant range: argument must be an integer literal**
                    Circle()
                        .fill(self.currentIndex == index ? Color.gray : Color.blue)
                        .frame(width: 10, height: 10)
                }
            }
            .onAppear{
                print("Appear")
                // We are going to use Timers
                Timer.scheduledTimer(withTimeInterval: 2, repeats: true){ timer in
                    if self.currentIndex + 1 == self.images.count{
                        self.currentIndex = 0
                    }else{
                        self.currentIndex += 1
                    }
                }
            }
        }
    }
}
adding slideshow to app
 
 
Q