TodayViewController uses individual outlets for each collection view displaying the day's emoji trackers. UIKit has a feature that will save us some code: IBOutletCollections.
Goal:
- Take each IBOutlet assigning
DayColumnView and replace them with an IBOutletCollection
Fix the following errors:
- Make sure you remove the dangling references to each IBOutlet in
Today.storyboard.
- Change
private func configureViews() to use the outlet collection.
- When assigning
day.onDayTapped, use fast enumeration with an index.
TodayViewControlleruses individual outlets for each collection view displaying the day's emoji trackers. UIKit has a feature that will save us some code: IBOutletCollections.Goal:
DayColumnViewand replace them with an IBOutletCollectionFix the following errors:
Today.storyboard.private func configureViews()to use the outlet collection.day.onDayTapped, use fast enumeration with an index.