Skip to content

Commit 81167f1

Browse files
committed
update
1 parent bcc9ee5 commit 81167f1

File tree

2 files changed

+3
-3
lines changed
  • swiftui-loop-videoplayer-example/views/video
  • swiftui-loop-videoplayer-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm

2 files changed

+3
-3
lines changed

swiftui-loop-videoplayer-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"location" : "https://github.com/swiftuiux/swiftui-loop-videoplayer",
88
"state" : {
99
"branch" : "main",
10-
"revision" : "6d82e977a1b9c005606a636cf4ce682d214a5996"
10+
"revision" : "b10236aff3aa9e86664a55e77353930586990199"
1111
}
1212
}
1313
],

swiftui-loop-videoplayer-example/views/video/Video6.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ struct Video6: VideoTpl {
8787
private func onPlayerEventChange(events: [PlayerEvent]){
8888
events.forEach {
8989
if case .boundsChanged(let rect) = $0{
90-
print(rect, "rect")
9190
// Send boundsChanged event to the throttle mechanism
9291
boundsChangeSubject.send(rect)
9392
}
@@ -100,7 +99,8 @@ struct Video6: VideoTpl {
10099
boundsChangeSubject
101100
.throttle(for: .milliseconds(500), scheduler: DispatchQueue.main, latest: true)
102101
.sink { rect in
103-
print(rect)
102+
print("View bounds updated: ", rect)
103+
/// Hear you can update the vector layer according the new bounds
104104
}
105105
.store(in: &cancellables)
106106
}

0 commit comments

Comments
 (0)