I have array and need to reverse it without Array.reverse method, only with a for loop.
Array.reverse
for
var names:[String] = [\"Apple\", \"Microsof
You can use the swift3 document:
let names = ["Chris", "Alex", "Ewa", "Barry", "Daniella"] let reversedNames = names.sorted(by: >) // reversedNames is equal to: // ["Ewa", "Daniella", "Chris", "Barry", "Alex"]