Value of type 'PhotoStore' has no member 'fetchRecentPhotos'


#1

Hello,

I am stuck with this error message in the PhotosViewController.swift file. I am perplexed because PhotoStore.swift contains a function called ‘fetchRecentPhotos’. Can anyone please help me ?

import UIKit

class PhotosViewController: UIViewController {
    @IBOutlet var imageView: UIImageView!
    var store: PhotoStore!

    override func viewDidLoad() {
        super.viewDidLoad()
        store.fetchRecentPhotos()
    }
}