I have a VStack
nested inside of an HStack
that I want to take up 35% of the safe area width. So far through beta 3 I've been able to do the by:
HStack {
VStack {
.
.
.
}.relativeWidth(0.70)
}
But I now have a warning that:
'relativeWidth' is deprecated
That's it. Nothing about what to use as a replacement. In fact, the documentation hasn't yet marked it as deprecated.
Any ideas on what I can use as an alternative? GeometryReader
? It seems that that is overkill. (I know, relativeWidth
still works, but I prefer removing all warnings if possible.)