Skip to content

Commit

Permalink
add export to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex009 authored May 30, 2022
1 parent 2df1e2a commit c59420b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c59420b

Please sign in to comment.