Last active
February 23, 2017 00:30
-
-
Save leoneparise/48b0447c76ac5a232b21aa19cd0bc3c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileprivate func notificationFactory(userInfo: [AnyHashable : Any]) -> RemoteNotificationType? { | |
guard let type = userInfo["type"] as? String else { return nil } | |
if type == Notifications.openUserProfile.name.rawValue { | |
return Notifications.openUserProfile(userInfo: userInfo) | |
} | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment