Hi, thanks - I've raised FB9015476.
If anyone's interested in what I've gone for as a workaround in the meantime, DateToolsSwift - https://github.com/MatthewYork/DateTools/tree/master/DateToolsSwift/ provides a good alternative with the timeAgoSinceNow extension to Date instances.
Post
Replies
Boosts
Views
Activity
Hey, I've run into this problem and I've found that using
let strongReferenceToDelegate = ResourceLoaderDelegate()
let asset = /* some AVAsset */
(asset as? AVURLAsset)?.resourceLoader.setDelegate(strongReferenceToDelegate, queue: .main)
where ResourceLoaderDelegate is simply:
extension ResourceLoaderDelegate: AVAssetResourceLoaderDelegate {
}
resolved the issue for me. Unfortunately I couldn't tell you why this works, I suspect it's a bug with the implementation. If this works for you, and you can figure out whats going on, please let us know as I'd like to understand this as well.
If you're after a UIImage representation of SF Symbols, it's just UIImage(systemName: "some_sf_symbol_name")
Thanks, I've raised FB9750875
Is there anything I can do to react to this kind of media service reset? I can observe AVAudioSession.mediaServicesWereResetNotification but this doesn't seem to be posted when this issue occurs