[Solved] how to increase the array index in loop by +1 using swift [closed]


Do you mean

for leader in leaders where !leader.isEmpty {
    alert.addAction(UIAlertAction(title: leader[0].name, style: .default, handler:{(_) -> Void in
            
            
    }))
}

0

solved how to increase the array index in loop by +1 using swift [closed]