Seamless Play of D&D — Implementing Drag and Drop Across Multiple Screens in Your Android App with Jetpack Compose | by Nirbhay Pherwani | Aug, 2023
The LongPressDraggable composable function is the foundation of our seamless D&D experience. It allows us to wrap any content (ex. horizontal pager) with dragging behavior, making it draggable upon a long-press gesture. Code @Composablefun LongPressDraggable(modifier: Modifier = Modifier,content: @Composable BoxScope.() -> Unit) {val state =…
Mobile App Development
0
Format functions to multiple lines in Xcode 15
Xcode 15 introduced a nice shortcut that converts functions with many parameters on a single line to a function that has any parameter on its own line. Usage The below function can be hard to read since all the arguments are on the same line….