SwiftUI ForEach index jump by 2

I am working on SwiftUI ForEach. Blow image shows what I want to achieve. For this purpose I need next two elements of array in single iteration, so that I can show two card in single go. I search on a lot but did find any way to jump index swiftUI ForEach. Here is my… Read More SwiftUI ForEach index jump by 2

"Unable to infer type of a closure parameter 'b' in the current context". Getting this error while calling the function

getting error while calling the function. func hitService<T : Codable>(urlS: String , completion : @escaping (T) -> Void) { guard let url = URL(string: urlS) else {return} let session = URLSession.shared let _ = session.dataTask(with: url) { dt, resp, err in let decoder = JSONDecoder() if let d = dt { do { let obj… Read More "Unable to infer type of a closure parameter 'b' in the current context". Getting this error while calling the function