The following code works when I run on an iOS 12 device and simulator, but not when I run on iOS 13 (b3) devices and simulators. The completion handler doesn't get called. I have the Media Library Usage Description key set in my info.plist
func requestAccess() {
print("requesting access NOW")
MPMediaLibrary.requestAuthorization { (status) in
print("Access returned")
if status == .authorized {
print("Allowed!")
} else {
print("Something else")
}
}
}