Elektrine lite

← Feed

@lvalenta@mastodon.social

Post #1464089

2026-02-15 19:42 UTC

@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.

Replies (1)

  • @dlx@mastodon.social 2026-02-15 19:45

    @lvalenta No, `frame(width: 0, height: 0)` doesn't do it because the resulting view now has size zero, not whatever the min width of the original view was, e.g.: Color.blue .frame( minWidth: 10, idealWidth: 150, maxWidth: 300, minHeight: 20, idealHeight: 100, maxHeight: 300 ) .frame(width: 0, height: 0) .clipped() clips the entire view.

    Open ##1464090