For this task, it's best to define a dedicated data type. For example:
// Quote.swift
struct Quote {
let order: Int
let text: String
}
Next, create an array of quotes using this structure:
let quotes: [Quote] = [
Quote(order: 1, text: "I love you more."),
Quote(order: 2, text: "Nothing is permanent."),
]
Next, you can then access the array by index to retrieve a quote:
cell.textLabel?.text = quotes[indexPath.row].text
Also, I recommend you take a look at these resources:
Structures and Classes
Choosing Between Structures and Classes