git » sdk » commit 95a5578

All our Swift objects are Sendable

author Stephen Paul Weber
2025-05-21 17:15:51 UTC
committer Stephen Paul Weber
2025-06-11 17:45:31 UTC
parent 0f1e8891dc2cf41f080ef1cf63a38f4b921ad4c8

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) {