|
1 |
| -This is a Kotlin Multiplatform project targeting Android, iOS, Web, Desktop. |
| 1 | +<h1 align="center">Welcome to Vanish Composable Library 👋</h1> |
2 | 2 |
|
3 |
| -* `/composeApp` is for code that will be shared across your Compose Multiplatform applications. |
4 |
| - It contains several subfolders: |
5 |
| - - `commonMain` is for code that’s common for all targets. |
6 |
| - - Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name. |
7 |
| - For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app, |
8 |
| - `iosMain` would be the right folder for such calls. |
| 3 | +<p align="center"> |
| 4 | + <a href="https://github.com/frinyvonnick/gitmoji-changelog"> |
| 5 | + <img src="https://img.shields.io/badge/API-15%2B-blue.svg?style=flat" alt="gitmoji-changelog"> |
| 6 | + </a> <a href="https://github.com/frinyvonnick/gitmoji-changelog"> |
| 7 | + <img src="https://jitpack.io/v/mejdi14/AndroidColorPicker.svg" alt="gitmoji-changelog"> |
| 8 | + </a> |
| 9 | + </a> |
| 10 | + <a href="https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE"> |
| 11 | + <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-yellow.svg" target="_blank" /> |
| 12 | + </a> |
| 13 | + <a href="https://codecov.io/gh/kefranabg/readme-md-generator"> |
| 14 | + <img src="https://codecov.io/gh/kefranabg/readme-md-generator/branch/master/graph/badge.svg" /> |
| 15 | + </a> |
| 16 | +</p> |
9 | 17 |
|
10 |
| -* `/iosApp` contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform, |
11 |
| - you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project. |
| 18 | +## ✨ Demo |
12 | 19 |
|
| 20 | +<div style="display: flex; justify-content: center; align-items: center;"> |
| 21 | + <img |
| 22 | + src="https://raw.githubusercontent.com/mejdi14/KMP-Image-Censorship/main/demo/output.gif" |
| 23 | + height="400" |
| 24 | + width="675" |
| 25 | + style="margin-right: 20px;" |
| 26 | + /> |
13 | 27 |
|
14 |
| -Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html), |
15 |
| -[Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/#compose-multiplatform), |
16 |
| -[Kotlin/Wasm](https://kotl.in/wasm/)… |
| 28 | +</div> |
17 | 29 |
|
18 |
| -We would appreciate your feedback on Compose/Web and Kotlin/Wasm in the public Slack channel [#compose-web](https://slack-chats.kotlinlang.org/c/compose-web). |
19 |
| -If you face any issues, please report them on [GitHub](https://github.com/JetBrains/compose-multiplatform/issues). |
20 | 30 |
|
21 |
| -You can open the web application by running the `:composeApp:wasmJsBrowserDevelopmentRun` Gradle task. |
| 31 | + |
| 32 | + |
| 33 | +## :art:Design inspiration |
| 34 | + |
| 35 | +many thanks goes to [Jade Franson](https://x.com/jadefranson) for the beautiful design and |
| 36 | +animation |
| 37 | + |
| 38 | +## Installation |
| 39 | + |
| 40 | +Add this to your module's `build.gradle` file (make sure the version matches the JitPack badge |
| 41 | +above): |
| 42 | + |
| 43 | +```gradle |
| 44 | +dependencies { |
| 45 | + ... |
| 46 | + implementation("io.github.mejdi14:kmp_image_censorship:0.1.0") |
| 47 | +} |
| 48 | +``` |
| 49 | + |
| 50 | +## :fire:How to use |
| 51 | + |
| 52 | +``` java |
| 53 | + val painter = painterResource(resId) |
| 54 | + val yourPixelSize = 100 |
| 55 | + CensorshipComposable( |
| 56 | + painter, |
| 57 | + modifier = modifier.align(Alignment.Center), |
| 58 | + pixelSize = yourPixelSize |
| 59 | + ) |
| 60 | +``` |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +## 🤝 Contributing |
| 65 | + |
| 66 | +Contributions, issues and feature requests are welcome.<br /> |
| 67 | +Feel free to check [issues page] if you want to contribute.<br /> |
| 68 | + |
| 69 | +## Author |
| 70 | + |
| 71 | +👤 **Mejdi Hafiane** |
| 72 | + |
| 73 | +- profile: [@MejdiHafiane](https://twitter.com/mejdi141) |
| 74 | + |
| 75 | +## Show your support |
| 76 | + |
| 77 | +Please ⭐️ this repository if this project helped you! |
| 78 | + |
| 79 | +## 📝 License |
| 80 | + |
| 81 | +Copyright © 2019 [Mejdi Hafiane](https://github.com/mejdi14).<br /> |
| 82 | +This project is [MIT](https://github.com/mejdi14/readme-md-generator/blob/master/LICENSE) licensed. |
0 commit comments