Last active
September 24, 2022 11:49
-
-
Save mazzouzi/7149a22efbdfd74cc97040d0e631846a to your computer and use it in GitHub Desktop.
Quadratic Bézier Curve translation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
. | |
Text( | |
text = "New York", | |
fontSize = 30.sp, | |
fontWeight = FontWeight.Bold, | |
modifier = Modifier | |
.graphicsLayer { | |
translationY = titleY.toPx() | |
translationX = titleX.toPx() | |
} | |
.onGloballyPositioned { | |
titleHeightPx = it.size.height.toFloat() | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment