Hi all! Is there a possibility to get a segment for a path? With the old android paths there is a method getSegment which gets a segment from a path.
In the "old" world I could fetch the material background drawable, get the path of the outline and animate a segment along that path. In this way I can basically animate the outline of any given shape. I want to achieve the effect of the button in this video:
I see in Compose that the paths are basically wrapping around the android.graphics.Path and I could probably cast androidx.compose.ui.graphics.Path to this Android path and use the getSegment method, but it would be nicer to not do that