File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Sources/swiftui-loop-videoplayer/view/main Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,7 @@ extension LoopPlayerMultiPlatform: UIViewRepresentable{
104104 }
105105
106106 makeErrorView ( container, error: error)
107- if let e = error {
108- eventPublisher. send ( . error( e) )
109- }
110-
107+
111108 return container
112109 }
113110
@@ -129,6 +126,11 @@ extension LoopPlayerMultiPlatform: UIViewRepresentable{
129126 }
130127 }
131128
129+ if let e = error {
130+ eventPublisher
131+ . send ( . error( e) )
132+ }
133+
132134 updateView ( uiView, error: error)
133135 }
134136}
@@ -149,11 +151,8 @@ extension LoopPlayerMultiPlatform: NSViewRepresentable{
149151 }
150152
151153 makeErrorView ( container, error: error)
152- if let e = error {
153- eventPublisher. send ( . error( e) )
154- }
155154
156- return container
155+ return container
157156 }
158157
159158 /// Updates the specified NSView during the view's lifecycle in response to state changes.
@@ -174,6 +173,11 @@ extension LoopPlayerMultiPlatform: NSViewRepresentable{
174173
175174 }
176175
176+ if let e = error {
177+ eventPublisher
178+ . send ( . error( e) )
179+ }
180+
177181 updateView ( nsView, error: error)
178182 }
179183}
You can’t perform that action at this time.
0 commit comments