Skip to content

Instantly share code, notes, and snippets.

@vitoksmile
Created February 11, 2025 18:08
Show Gist options
  • Save vitoksmile/34ce108ac83fe35d46d55bc868843f90 to your computer and use it in GitHub Desktop.
Save vitoksmile/34ce108ac83fe35d46d55bc868843f90 to your computer and use it in GitHub Desktop.
ComposeHints
val hintController = rememberHintController()
IconButton(
modifier = Modifier
.hintAnchor(topAppBarActionHintAnchor, CircleShape),
onClick = {
hintController.show(topAppBarActionHintAnchor)
},
)
BottomNavigationItem(
modifier = Modifier
.hintAnchor(
bottomNavigationHintAnchor,
shape = RoundedCornerShape(50f),
),
onClick = {
hintController.show(bottomNavigationHintAnchor)
},
)
Button(
modifier = Modifier
.hintAnchor(actionHintAnchor, RoundedCornerShape(16.dp))
.padding(4.dp),
onClick = {
hintController.show(actionHintAnchor)
},
)
@Mahan-Rahmani
Copy link

My friend, my warm greetings to you
I will be happy if you give my repositories a star
Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment