Questions tagged [geometryreader]

A container view that defines its content as a function of its own size and coordinate space. Returns a flexible preferred size to its parent layout.

It's a component of Apple's SwiftUI language.

Learn more from Apple's documentation

184 questions
0
votes
1 answer

SwiftUI would not reflect changes to a @Binding @State variable when the change is made from within a GeometryReader

I have a ScrollView with a HStack of views that would animate depending on their own position. To do that, I am using a GeometryReader that would read the current global position of each view and when a certain position is reached the view would…
mrtksn
  • 412
  • 3
  • 18
0
votes
0 answers

Multiple GeometryReader Causes problem with other GeometryReader SwiftUI

I'm using two Stack and I have a UIViewRepresentable that I want to put it inside the first stack but for the width and height I'm using the GeometryReader to get the width and height so that the UIViewRepresentable will be inside the first…
arata
  • 859
  • 1
  • 8
  • 23
0
votes
1 answer

SwiftUI + ScrollView not able to add views if it's exceed view height

I am trying to show all the properties of the Text component in a single view. Showing Text with different styles and fonts. For that I am adding multiple Text components in a single view. To make it possible I am using the ScrollView component and…
Kampai
  • 22,848
  • 21
  • 95
  • 95
-1
votes
1 answer

(SwiftUI) How to Read Geometry of a reactive view?

I need to add a view on top of this chat bubble view, like an Instagram emoji reaction. Let's call it EmojiView. It will need to always be in the bottom left or right corner of the chat bubble. But the chat bubble's size will vary with how much text…
1 2 3
12
13