This lesson talks about Chris talks signing the model.get cards method into a new variabel, why?
from
let model = CardModel()
model.getCards
to
var cardsArray = Card
cardsArray = model.getCards
is it because the the function getCards returns the type of [Card]?
sorry for my bad English
class ViewController: UIViewController {
let model = CardModel()
var cardsArray = [Card]()
@IBOutlet weak var collectionView: UICollectionView!
override func viewDidLoad() {
super.viewDidLoad()
collectionView.delegate = self
collectionView.dataSource = self
cardsArray = model.getCards()
}