What is the benefit of assigning store
value as property injection in the AppDelegate.swift
application
method, instead of just creating an object within PhotosViewController
as follows:
class PhotosViewController: UIViewController {
@IBOutlet var imageView: UIImageView!
let store = PhotoStore()`
}