FAQ
Is SweetEditor a BasicTextField enhancement?
No.
SweetEditor is a dedicated editor architecture built on a native editor kernel with a Compose Multiplatform wrapper.
Does SweetEditor depend on native code?
Yes.
The project is built around a native editor core and a Kotlin wrapper layer.
What is the native core based on?
The native core used by this project is based on:
Which platforms are supported?
Current targets include:
- Android
- iOS
- JVM Desktop
- JS
- Wasm
Can I use SweetEditor in Compose Multiplatform apps?
Yes.
That is the primary purpose of editor-compose.
Can I customize syntax highlighting and decorations?
Yes.
Use:
DecorationProviderDecorationUpdateDecorationSet- custom
textStyles
Can I provide completion items?
Yes.
Use:
CompletionProviderCompletionContextCompletionReceiver
Does the project support inline suggestions or copilot-style UX?
Yes.
The Compose layer provides:
InlineSuggestionInlineSuggestionController- inline action bar behavior
Can I change theme and typography?
Yes.
Use:
rememberEditorAppearance()rememberEditorTheme()EditorFontConfigapplyTheme()applySettings()
Should I re-implement core editor logic in Kotlin?
No.
The recommended approach is to reuse native core capabilities and keep Kotlin focused on wrapping, state synchronization, and UI integration.
Where should platform-specific code live?
Platform-specific behavior should stay in the corresponding source set:
androidMainiosMainjvmMainwebMain
Where can I see practical integration examples?
Start with: