                                                            options: .none) else {
             return
         }
-        
         
         let content = UNMutableNotificationContent()
         content.title = "\(parrot.name) wants to join the party!"

        //Note: For a remote notification to invoke your Notification Content extension, you'd need to add this same category identifier as the value for the category key in the payload dictionary.
        content.categoryIdentifier = NotificationCategory.partyRequest.rawValue
        
        let trigger = UNTimeIntervalNotificationTrigger(timeInterval: delay, repeats: false)
        
        // 1
        let request = UNNotificationRequest(identifier: parrot.gif.rawValue,
                                            content: content,
                                            trigger: trigger)
        // 2
        UNUserNotificationCenter.current().add(request) {
            error in
            if let error = error {

    }
    
    func scheduleNotification(for parrot: PartyParrot, delay: TimeInterval) {
        guard
            let imageURL = Bundle.main.url(forResource: parrot.gif.rawValue, withExtension: "gif"),
            let attachment = try? UNNotificationAttachment(identifier: parrot.gif.rawValue,
