How to get array's original value in SwiftUI? – Ios swift
If i have an array like this: @State private var names = ["Steve", "Bill", "Elon", "Jeff", "Michael"] and i remove its items onAppear, how can i get the original names.count value despite the elements being removed? I tried creating a…