Last active
January 27, 2021 18:41
-
-
Save paulaleite/bd9b1c67f008234d9de1b1187dadb6e6 to your computer and use it in GitHub Desktop.
Classe mostrando como adicionar uma local notification em Swift
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
import UIKit | |
import UserNotifications | |
class NotificationViewController: UIViewController, UNUserNotificationCenterDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
UNUserNotificationCenter.current().delegate = self | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment