I have a problem making an application similar to an alarm. It turns out that I can not find any way for the user to select a song in their library and use it when they touch a notification. Is that possible in Swift?
What I implemented was an excerpt that carries an internal sound file, but I would like to take a song from the library:
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");
Another issue is that I did not find anything related to the iOS alarm, in that it opens a screen with a STOP or ADVANCE button even in the background. In Swift, is it possible?