```
var imageFileName = ["Ahri.jpg", "Bard.jpg", "batman.jpg", "Janna.jpg", "spiderman.jpg", "Twisted Fate.jpg"]

@IBOutlet var pickerImage: UIPickerView!

@IBOutlet var lblImageFileName: UILabel!

@IBOutlet var imageView: UIImageView!

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.

    for i in 0 ..< MAX_ARRAY_NUM {
        let image = UIImage(named: imageFileName[i])
        imageArray.append(image)
    }

```

this is my Swift code and it keeps "Thread 1: Fatal error: Index out of range" error is coming "let image = UIImage(named: imageFileName[i])" this point so how can I fix this one