Estou com um problema ao fazer um aplicativo semelhante à um alarme. Ocorre é que não consigo achar alguma forma do usuário selecionar uma música em sua biblioteca e utiliza-la quando tocar uma notificação. É possível isso em Swift?
O que implementei foi um trecho que carrega um arquivo de som interno, mas gostaria de pegar uma música da biblioteca:
let content = UNMutableNotificationContent()
content.title = "Late wake up call"
content.body = "The early bird catches the worm, but the second mouse gets the cheese."
content.categoryIdentifier = "alarm"
content.sound = UNNotificationSound.init(named: "my-music.mp3");
Outra questão é que não achei algo relacionado ao alarme do iOS, em que ele abre uma tela com um botão PARAR ou ADIANTAR mesmo estando em background. Em Swift isso é possível?