From 043faeb6043250a743a4a77e6697c833ec682676 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 23 Jul 2020 22:35:54 +0200 Subject: [PATCH] Added extension TanImage.imageBytesAsNSData() as common's toNSData() extension is exported to Swift as if it was for a different class --- .../iosMain/kotlin/net/dankito/banking/Extensions.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ui/BankingUiCommon/src/iosMain/kotlin/net/dankito/banking/Extensions.kt diff --git a/ui/BankingUiCommon/src/iosMain/kotlin/net/dankito/banking/Extensions.kt b/ui/BankingUiCommon/src/iosMain/kotlin/net/dankito/banking/Extensions.kt new file mode 100644 index 00000000..f468868c --- /dev/null +++ b/ui/BankingUiCommon/src/iosMain/kotlin/net/dankito/banking/Extensions.kt @@ -0,0 +1,10 @@ +package net.dankito.banking + +import net.dankito.banking.ui.model.tan.TanImage +import net.dankito.utils.multiplatform.toNSData +import platform.Foundation.NSData + + +fun TanImage.imageBytesAsNSData(): NSData { + return imageBytes.toNSData() +} \ No newline at end of file