Post

Replies

Boosts

Views

Activity

Reply to TextField appears to break preferences
Even if that's the case, I would expect that would mean the height of the VStack (and its enclosing GeometryReader) would then be equal to the height of the Text (plus spacing), but that's not what's happening. Instead, VStack's height is correctly reported if you look at the result of the calls to dump (including the size of the TextField), but including the TextField just breaks reporting to the preference system
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to TextField appears to break preferences
How do I make it behave like that? When I wrap something in a ScrollView, it always seems to be scrollable. I want the content to stay static if it can fit, but scroll if it doesn't. Also, ScrollView always takes all the size it's given, but I want it to take only the size of its child in the event that its child is smaller than the allowed space
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22