Open StefanOltmann opened 9 months ago
I was trying to reproduce on real iOS device iPhone13 mini and on simulator. But it works without any crash in my sample https://github.com/dima-avdeev-jb/issue-3718-ios-selection-container
Can you please try to check my sample too?
@dima-avdeev-jb Thank you. It took me some time to figure this out.
It crashes if empty text and/or spacers are involved.
Try this:
SelectionContainer {
Column {
Text("Some")
Spacer(Modifier.height(8.dp))
Text("multiline")
Spacer(Modifier.height(8.dp))
Text("")
Spacer(Modifier.height(8.dp))
Text("text to select in SelectionContainer")
}
}
As a workaround I will see to avoid displaying empty text.
Thanks! It reproduced
This bug is also reproduced on Android here: https://github.com/dima-avdeev-jb/issue-3718-ios-selection-container
It is already fixed in Android JetPack Compose: https://android-review.googlesource.com/c/platform/frameworks/support/+/2616177
Describe the bug I use the SelectionContainer Composable which works as expected for Android and JVM Desktop. On my iPhone 12 Mini the selection of text crashes the app.
See the crash log: 2023-09-2007-30-23.3605+0200-262104203cacf94f31579f9ab12f826c416bb0dc.crash.txt
Affected platforms Select one of the platforms below:
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior No crash