Skip to content

Instantly share code, notes, and snippets.

View burnoo's full-sized avatar

Bruno Wieczorek burnoo

  • Wrocław, Poland
  • 22:02 (UTC +02:00)
View GitHub Profile
@burnoo
burnoo / Google Maps Compose for Wear OS.md
Created October 17, 2022 18:58
Google Maps Compose for Wear OS

Currently Google Maps Compose does not support Wear OS officially. The main problem is a lack of support for swipe to dissmiss gesture. I came up with a workaround to add swipe to dissmiss on edges (which currently have to be black):

@Composable
fun ComposeMap() {
    val cameraPositionState = rememberCameraPositionState()
    val focusRequester = remember { FocusRequester() }

    Box(