Bit late to the party...
However it worked for me.
Make sure to use .frame(minHeight: 10) instead of .frame(height: 10). Only the first one will make it grow dynamically, the other one will keep it static.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: