ios-nd-networking
ios-nd-networking copied to clipboard
Resources for Udacity's iOS Networking with Swift course.
When first committing the Movie Manager code, I accidentally left my API key in the TMDBClient.swift file. Oops! This is a common mistake, especially when the API key is in...
In lesson 7, we added an activity indicator to the login view. The view appears and starts spinning when the login process begins, and stops spinning and disappears when the...
`TMDBClient` has an `Auth` struct that gets modified to store the request token and session ID. These values are only accessed from `TMDBClient`, but they could be read or modified...
The default VC for the tab bar is ```SearchVC```. It would be better to get user's ```watchlist``` and ```favorites``` when loading ```SearchVC```. Because if not, ```WatchlistVC``` will not know whether...
When we call `dataTask(with:)`, we receive a completion handler with three values: `data`, `response`, and `error`. Similarly, the completion handlers we provide in our helper methods, return either the generic...
Right now, the watchlist and favorites list are initially populated from viewDidLoad. Then, we rely on adding and removing movies from the lists to keep the data in sync. This...
We use a `UIActivityIndicatorView` on the login screen to signal network activity. Apps will also signal network activity for other types of long running tasks (like image downloads). There's not...
Remember how we accessed the global image view property in `downloadPosterImage`'s completion handler? ```swift TMDBClient.downloadPosterImage(path: posterPath) { data, error in guard let data = data else { return } let...
In the App on the login view controller it asks for email to login but the app really would like a username instead. Ran into problems logging in because I...
If you've added a lot of movies to the watchlist and favorites list, then you'll need to scroll down to see your most recently added movies. And if you use...