no need for NotificationCenter

This commit is contained in:
Toni Förster
2023-12-05 00:07:36 +01:00
parent 4ca8adc4dd
commit 721a97dc41
4 changed files with 4 additions and 24 deletions

View File

@@ -1,4 +1,3 @@
import CoreMedia
import Defaults
import Foundation
import SDWebImageSwiftUI
@@ -486,15 +485,6 @@ struct VideoDetails: View {
.padding(.horizontal)
}
}
.onReceive(
NotificationCenter.default
.publisher(for: .getTimeUpdatesNotification)
.receive(on: DispatchQueue.main)
) { notification in
if let cmTime = notification.object as? CMTime {
player.updateTime(cmTime)
}
}
}
}