git » sdk » commit 1767a15

All our Swift objects are Sendable

author Stephen Paul Weber
2025-05-21 17:15:51 UTC
committer Stephen Paul Weber
2025-06-24 17:15:22 UTC
parent 37416a116d52b44b7b8c75e766ba668ab8bdf0ec

All our Swift objects are Sendable

This is because we handle all synchronization on our side

HaxeSwiftBridge.hx +3 -0

diff --git a/HaxeSwiftBridge.hx b/HaxeSwiftBridge.hx
index 257f488..5d4f326 100644
--- a/HaxeSwiftBridge.hx
+++ b/HaxeSwiftBridge.hx
@@ -305,6 +305,9 @@ class HaxeSwiftBridge {
 			builder.add(", ");
 			builder.add(iface.t.get().name);
 		}
+		if (!cls.isInterface) {
+			builder.add(", @unchecked Sendable");
+		}
 
 		builder.add(" {\n");
 		if (!cls.isInterface && superClass == null) {