python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to size subviews in HStack by percentage without GeometryReader (SwiftUI)?
I've got a simple HStack with subviews inside. How can I tell the first subview to be 60% the size of the HStack without using a GeometryReader?
struct ContentView: View {
var body: some View {
...
WalterBeiter
Votes: 0
Answers: 2
SwiftUI Geomteryreader in ForEach does not set height of child dynamically
First off, I'm trying to learn SwiftUI so I may not have a full understanding of how it works.
I have an array of sentences that I use in a ForEach loop, that creates a GeometryReader with a Text view...
Holger
Votes: 0
Answers: 0
SwiftUI: Different alignment behavior of containers in GeometryReader
A Text element inside a ZStack(alignment: .bottom) is displayed at the bottom of the container (as expected). Tho, if the same ZStack is inside a GeometryReader, the alignment does not behave the same...
Dominik Seemayr
Votes: 0
Answers: 2
How to use GeometryProxy outside of a ViewBuilder?
I implemented a BasicContainer upon GeometryReader with the functionality of a @ViewBuilder. How can I use this inside GeometryProxy, outside when declaring the content?
Here is my BasicContainer:
str...
LukeSideWalker
Votes: 0
Answers: 1