Open chengyin opened 8 years ago
:+1: Great work Chengyin! We can talk more about the questions you raised at the beginning of class tomorrow.
A few notes after checking out your code:
if (apiVideos != nil)
becomes guard let apiVideos = apiVideos else { return nil }
With computed properties you don't need to put get {} (you can do something like the following)
var posterURL: NSURL? {
return NSURL(string: "\(IMG_PREFIX_LQ)\(posterPath)")
}
I've also included our generic assignment 1 feedback below:
Movie
model class with a factory method to create movie instances from dictionaries is a great pattern that will be become very useful as the model objects get more complex in later assignments.Container View
past the bottom of visible area (and have its background color set).UICollectionViewFlowLayout
to customize the layout of your items.If you have any other questions, feel free to reply here or bring them up at the beginning of class tomorrow.
Thanks, Nick
My app is complete, please review. /cc @codepathreview