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 Original file line number Diff line number Diff line change 7
7
"location" : " https://github.com/swiftuiux/swiftui-loop-videoplayer" ,
8
8
"state" : {
9
9
"branch" : " main" ,
10
- "revision" : " 6d82e977a1b9c005606a636cf4ce682d214a5996 "
10
+ "revision" : " b10236aff3aa9e86664a55e77353930586990199 "
11
11
}
12
12
}
13
13
],
Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ struct Video6: VideoTpl {
87
87
private func onPlayerEventChange( events: [ PlayerEvent ] ) {
88
88
events. forEach {
89
89
if case . boundsChanged( let rect) = $0{
90
- print ( rect, " rect " )
91
90
// Send boundsChanged event to the throttle mechanism
92
91
boundsChangeSubject. send ( rect)
93
92
}
@@ -100,7 +99,8 @@ struct Video6: VideoTpl {
100
99
boundsChangeSubject
101
100
. throttle ( for: . milliseconds( 500 ) , scheduler: DispatchQueue . main, latest: true )
102
101
. sink { rect in
103
- print ( rect)
102
+ print ( " View bounds updated: " , rect)
103
+ /// Hear you can update the vector layer according the new bounds
104
104
}
105
105
. store ( in: & cancellables)
106
106
}
You can’t perform that action at this time.
0 commit comments