File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ where Content == Never {
12
12
associatedtype Coordinator = Void
13
13
14
14
/// Create the initial NSView instance.
15
+ @MainActor
15
16
func makeNSView( context: NSViewRepresentableContext < Coordinator > ) -> NSViewType
16
17
17
18
/// Update the view with new values.
@@ -20,12 +21,14 @@ where Content == Never {
20
21
/// - context: The context, including the coordinator and potentially new environment
21
22
/// values.
22
23
/// - Note: This may be called even when `context` has not changed.
24
+ @MainActor
23
25
func updateNSView( _ nsView: NSViewType , context: NSViewRepresentableContext < Coordinator > )
24
26
25
27
/// Make the coordinator for this view.
26
28
///
27
29
/// The coordinator is used when the view needs to communicate changes to the rest of
28
30
/// the view hierarchy (i.e. through bindings), and is often the view's delegate.
31
+ @MainActor
29
32
func makeCoordinator( ) -> Coordinator
30
33
31
34
/// Compute the view's size.
You can’t perform that action at this time.
0 commit comments