From c59420bee59e99f6d0481226db86cdc4661c91df Mon Sep 17 00:00:00 2001 From: Aleksey Mikhailov Date: Mon, 30 May 2022 09:32:12 +0700 Subject: [PATCH] add export to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2e08ebe9..c59df423 100755 --- a/README.md +++ b/README.md @@ -78,6 +78,14 @@ multiplatformResources { } ``` +To use `toUIColor()`, `toUIImage()`, `desc()` and other iOS extensions from Swift - you should [add `export` declarations](https://kotlinlang.org/docs/multiplatform-build-native-binaries.html#export-dependencies-to-binaries): +``` +framework { + export("dev.icerock.moko:resources:0.20.1") + export("dev.icerock.moko:graphics:0.9.0") // toUIColor here +} +``` + If your project includes a build type, for example `staging` which isn't in moko-resources. That isn't an issue. Use matchingFallbacks to specify alternative matches for a given build type, as shown below ``` buildTypes {