How do you create custom notifications in Swift 3?
There is a cleaner (I think) way to achieve it extension Notification.Name { static let onSelectedSkin = Notification.Name(“on-selected-skin”) } And then you can use it like this NotificationCenter.default.post(name: .onSelectedSkin, object: selectedSkin)