From 4ef5243bbe77aaa238f3b99d6853d10db0f4456a Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 11 Jul 2020 23:47:15 +0200 Subject: [PATCH] Added Freezer to be able to freeze objects from Swift --- common/src/iosMain/kotlin/Freezer/Freezer.kt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 common/src/iosMain/kotlin/Freezer/Freezer.kt diff --git a/common/src/iosMain/kotlin/Freezer/Freezer.kt b/common/src/iosMain/kotlin/Freezer/Freezer.kt new file mode 100644 index 00000000..a4bc8db6 --- /dev/null +++ b/common/src/iosMain/kotlin/Freezer/Freezer.kt @@ -0,0 +1,8 @@ +package Freezer + +import kotlin.native.concurrent.freeze + + +fun freeze(obj: T): T { + return obj.freeze() +} \ No newline at end of file