Using transpiled views in purely Kotlin files
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
I was trying to add a custom marker to google maps using MarkerComposable.
The custom icon is generated from swiftUI and I cannot have the content of the MarkerComposable be the customPinView as I keep getting the error
java.lang.IllegalStateException: The ComposeView was measured to have a width or height of zero. Make sure that the content has a non-zero size.
My question is, what's the correct way to use a swiftUI view that got transpiled to Kotlin view in a purely Kotlin file that I use in the /skip/ folder?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the MarkerComposable case with customPinView in the purely Kotlin file under /skip/, focusing on the ComposeView zero-size exception. Determine how the transpiled SwiftUI view is passed into the marker and verify completion when the custom marker renders without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100