compose-vector-stroke-update-issue

Example app to demonstrate a bug when updating the vector stroke width in Jetpack Compose

  • Stroke Width is not updated as expected when the Vector Drawable is changed during runtime.
  • Stroke Width is updated if the tree hierachy is different in the Vector Drawable – in the example app the path is wrapped in a group to get it to update.

Example is on Nexus 4 API 33

example-app.mov

GitHub

View Github