In 2015, Apple introduced a new concept - Protocol Oriented Programming
[https://developer.apple.com/videos/play/wwdc2015/408/]. I encourage you to
watch the whole 50 minutes of the WWDC video. One
Like all Objective-C APIs, Notification Center has Strings everywhere. With
iOS10 Apple introduced NSNotification.Name but, still, there is some space for
improvement.
If you use notifications without any payload, new nested type
Let's continue the work we did in the previous post
[https://arturgruchala.com/strongly-typed-collection-cells/] by making
UITableView and UICollectionView handle cells without hassle. Elevating Reusable
protocol, write extension:
From now on,
Do you ever feel that using Strings as identifiers is not ideal? Losing track of
names in storyboards, constants, view controllers, and data sources? We all have
been there.
There is a solution