Base ForEach generation

SomeView.swift
import SwiftUI

struct SomeView: View {
    @State private var someArray: [String] = ["Igor"] 

    var body: some View {
        ForEach(someArray, id: \.self) { item in
            HStack {
                Text("\(item)")
                    .font(.title3)
                    .fontWeight(.semibold)
            }
        }
    }
}

#Preview {
    SomeView()
}

ForEach snippet + Delete item

SomeView.swift
import SwiftUI

struct SomeView: View {
    @State private var someArray: [String] = ["Igor"] 

    var body: some View {
        ForEach(someArray, id: \.self) { item in
            HStack {
                Text("\(item)")
                    .font(.title3)
                    .fontWeight(.semibold)
                    .onTapGesture {
                        someArray.remove(at: someArray.firstIndex(of: person ) ?? 0)
                    }
            }
        }
    }
}

#Preview {
    SomeView()
}