Top Tweets for #multiplatformtip
📣 #MultiplatformTip
Have an Android app and wondering how you can use #KotlinMultiplatform to share business logic with your iOS app?
The process is detailed in this article: https://t.co/Az0CqsJKbQ
In a nutshell:
1️⃣ Make your code cross-platform
2️⃣ Make your cross-platform code work on iOS
3️⃣ Enjoy the results: update the logic only once 🏆

📣 #MultiplatformTip
When building iOS apps, remember to include a privacy manifest, now required for App Store submissions.
For detailed info on these changes and how to ensure your KMP iOS app’s compliance, see our full article ⤵️ https://t.co/zLtD7J5OpI
📣 #MultiplatformTip
We’ve published a handy guide on testing with #KMP. Learn how to use the kotlin.test library to:
✅ Test common code
✅ Test platform-specific code
✅ Create and analyze test reports
Find it here: 👉 https://t.co/16t70mhYY0
📣 #MultiplatformTip
What is the difference between #KMP and Compose Multiplatform? 🤔
Kotlin Multiplatform is a technology by @JetBrains that allows you to write code once and reuse it on different platforms like Android, iOS, web, desktop, and server.
Compose Multiplatform is a declarative framework for sharing UI 🎨 across platforms, based on Kotlin by JetBrains and Jetpack Compose by @Google, and enabled by Kotlin Multiplatform.
📣 #MultiplatformTip
What features does SKIE support?
Improved Kotlin/Swift interop for:
✅ Enums
✅ Sealed classes and interfaces
✅ Default arguments
✅ Global functions
✅ Interface extensions
✅ Overloaded functions
✅ Coroutines and flows
Wow! 🥳
📣 #MultiplatformTip
🧑💻 While the JetBrains team is working on direct Kotlin-to-Swift export for #KMP, our friends 🤝 at @TouchlabHQ have developed a plugin called SKIE (https://t.co/Hc1XiufmRO) to further improve your experience in the meantime.
See the full list of features below: 🧵👇
📣 #MultiplatformTip
Our 2024 #KMP roadmap 🗺️ includes implementing direct Kotlin-to-Swift export. This initiative will eliminate the Objective-C bottleneck, allowing for broader Swift language support and more natural exporting of APIs.
Find it here: 👇 https://t.co/8ds6hFxAc9
📣 #MultiplatformTip
Do you want to know how your Kotlin shared API looks in Swift?
👀 Learn about how the current interop works and which workarounds will help you get the best out of it ��� refer to our Kotlin/Swift Interopedia: 👇
https://t.co/z5HWreOnxe
📣 #MultiplatformTip
Can you share View Models across platforms with #KMP? Yes, you sure can! 🎉
Here are some examples of Kotlin Multiplatform libraries:
✅ KMM-ViewModel https://t.co/yLJhW2eozh
✅ Voyager – https://t.co/GdBNe5OJcB (ScreenModel)
✅ Precompose – https://t.co/i22WOesBJh
✅ Decompose – https://t.co/IzsCSmB5jc (InstanceKeeper)
📣 #MultiplatformTip
Wondering how to make your Android code cross-platform? You’ll have to replace your JVM or Android dependencies with common Kotlin or #KMP dependencies.
For example, don’t use this:
❌ java.util.Random().nextInt()
Use this instead:
✅ kotlin.random.Random.nextInt()
📣 #MultiplatformTip
Have an Android app and wondering how you can use #KMP to share business logic with your iOS app?
The process is detailed in this article: https://t.co/Az0CqsJKbQ
In a nutshell:
1️⃣ Make your code cross-platform
2️⃣ Make your cross-platform code work on iOS
3️⃣ Enjoy the results: update the logic only once 🏆
📣 #MultiplatformTip
Have an Android app and wondering how you can use #KMP to share business logic with your iOS app?
The process is detailed in this article: https://t.co/Az0CqsJKbQ
In a nutshell:
1️⃣ Make your code cross-platform
2️⃣ Make your cross-platform code work on iOS
3️⃣ Enjoy the results: update the logic only once 🏆
📣 #MultiplatformTip
⛔ Before KMP, the “internal” keyword was used to restrict the use of code only inside their module. A module is a set of Kotlin files that are compiled together.
🚧 @HiddenFromObjC does not have this restriction, as it only excludes the code from the exported Objective-C APIs! However, it remains experimental for now.
📣 #MultiplatformTip
❓ Do you know the difference between the “internal” keyword and the annotation @HiddenFromObjC for excluding code from the exported Objective-C APIs?
Post your answers below 👇 The correct answer will be revealed soon!
📣 #MultiplatformTip
❓ Do you know the difference between the “internal” keyword and the annotation @HiddenFromObjC for excluding code from the exported Objective-C APIs?
Post your answers below 👇 The correct answer will be revealed soon!
#MultiplatformTip 📣 Do you want to know how to improve your Kotlin/Native compilation speed ⏩?
See this article: https://t.co/o1mZ1rwWYs
It includes tips like:
✅ Use the most recent version of Kotlin
✅ Avoid creating huge classes
✅ Preserve downloaded and cached components between builds
✅ How to optimize your Gradle configurations
#MultiplatformTip 📣 Need to perform dependency injection in your KMP app? Are you confused about which frameworks to use?
You cannot use:
❌ Dagger
❌ Hilt
You can use:
✅ Koin https://t.co/R8FI7N43pT
✅ Kodein https://t.co/zgJKhlyE4J
✅ kotlin-inject https://t.co/ZJAdblk6Jg
#MultiplatformTip 📣 If you’re a Kotlin Multiplatform beginner, and you’re wondering what you can use in your project’s commonMain, the answer is only the following:
✅ Kotlin language features
✅ Kotlin standard library
✅ Kotlin Multiplatform libraries
#MultiplatformTip 📣 Sharing code with iOS but:
❌ Not using a monorepo?
��� iOS devs not yet ready to contribute to shared code?
Why not give KMMBridge by @TouchlabHQ a try? It helps distribute iOS binaries via CocoaPods and SPM 🥳
Find it here: https://t.co/f38Oxyh2ir
#MultiplatformTip 📣 Looking for a Kotlin Multiplatform library for your use case? Check out these community repositories that connect developers to tools, utilities, and libraries:
🥰 https://t.co/YlVzppWPUN
🎉 https://t.co/a4iEcubQez
🥳 https://t.co/ApXmnHYmDq
#MultiplatformTip 📣Use the @ObjCName annotation with the swiftName parameter to rename Swift, but not Objective-C names.
#MultiplatformTip 📣 Your Kotlin API will be in a single Swift module, and the Kotlin/Native compiler will by default suffix classes and interfaces with the same names (but different packages) with underscores to differentiate them.
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
108.8M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
97.2M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.5M followers

KATY PERRY 
@katyperry
86.7M followers

Taylor Swift 
@taylorswift13
80.5M followers

Lady Gaga 
@ladygaga
72.1M followers

Kim Kardashian 
@kimkardashian
69.3M followers

YouTube 
@youtube
68.6M followers

Virat Kohli 
@imvkohli
68.4M followers

Bill Gates 
@billgates
63.4M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
61M followers

X 
@x
60.9M followers

CNN Breaking News 
@cnnbrk
59.9M followers
