NSNotificationCenter is a classic API on iOS. It's used so that classes can register for notifications by name and execute the function/block whenever the notification with same name is fired somewhere else in the project.
Today, we will see how to implement NSNotificationCenter API in Swift from scratch. Here