Post #1464088
2026-02-15 19:38 UTC
@lvalenta it would propose 0/0 to the view and get the minimum size, per:
Color.blue
.frame(
minWidth: 10,
idealWidth: 150,
maxWidth: 300,
minHeight: 20,
idealHeight: 100,
maxHeight: 300
)
.fixedSize()
Replies (1)
-
@lvalenta@mastodon.social 2026-02-15 19:42
@dlx aha, now i know what you mean, thank you. I think you can create the modifier yourself, with frame(width: 0).: Color.blue .frame( minWidth: 10, idealWidth: 150, maxWidth: 300, minHeight: 20, idealHeight: 100, maxHeight: 300 ) .frame(width: 0) PS: pardon me, I never played with fixedSize + frame with min and idealWidth, mostly with Text or HStack.