Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.joco.showcaseview

import android.util.Log
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.tween
Expand Down Expand Up @@ -55,7 +56,10 @@ fun ShowcaseView(
dialog: @Composable (Rect) -> Unit
) {
// Prevent crash if coordinates are not attached
if (!targetCoordinates.isAttached) return
if (!targetCoordinates.isAttached) {
Log.w("ShowcaseView", "Target coordinates are not attached, skipping showcase")
return
}

val transition = remember { MutableTransitionState(false) }
val highlightDrawer = highlight.create(targetCoordinates = targetCoordinates)
Expand Down
Loading