In this episode, we optimize the implementation of the day view controller and the day view model. There are a few details we need to take care of. First, the day view controller should display an error message when its view model emits an error. Second, the day view controller should only display its activity indicator view if it has no weather data to display. Let's tackle these problems one by one.
Subscribe to Cocoacasts Plus to watch this episode.
Building Reactive Applications With Combine
Reducing Complexity and Code Duplication
by Bart Jacobs in Programming
Swift 5
Xcode 12
iOS 14
Building Reactive Applications With Combine
-
03:12
-
2 What Is Reactive Programming
09:53
-
04:17
-
04:24
-
05:48
-
13 Using Publishers to Push Data
06:27
-
17 Reducing Complexity and Code Duplication
07:07
-
18 Reducing State with Subjects
08:35
-
20 Reactifying the Week View Controller
08:32
-
21 Combine and Diffable Data Sources
08:53
-
23 Subscribing to Settings Changes
11:08
-
07:25
-
06:48
-
07:35
-
09:30
-
11:04