The following code is based on the WWDC 2018 video Adding Delight to Your iOS App and the recipe for layout driven UI. Find and track the state that affects the UI. Create a variable named feelingCool. Dirty layout when the state changes with setNeedsLayout(). Update feelingCool and add the didSet property observer. Update UI […]