mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-30 20:22:06 +00:00 
			
		
		
		
	no need for NotificationCenter
This commit is contained in:
		| @@ -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) | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Toni Förster
					Toni Förster