zstack Questions

3

Solved

I have the following view: struct TestView: View { var body: some View { GeometryReader { geo in ZStack(alignment: Alignment(horizontal: .center, vertical: .center)) { Text("TEST TEXT&...
Verb asked 6/7, 2021 at 18:44

5

Solved

I have this view to show text tags on multiple lines which I got from SwiftUI HStack with Wrap, but when I add it in a VStack the tags overlap any other view that I put below. The tags are shown p...
Jupiter asked 30/5, 2020 at 12:47

3

Solved

I have a Zstack like this: ZStack { Image("beach") .resizable() .edgesIgnoringSafeArea(.all) .scaledToFill() VStack { // with a lot of stuff } } I want the image to ignore the sa...
Perch asked 12/10, 2020 at 16:18

1

Solved

I need to be able to see through my SwiftUI Views as well as the UIHosting Controller presenting them in order to see a background image underneath them. The code below still shows a white rectangl...
Tolle asked 19/8, 2020 at 17:24

1

Solved

What is the difference between using a ZStack versus using the .overlay() modifier. Apple says: ZStack = "A view that overlays its children, aligning them in both axes." .overlay = "...
Steeplechase asked 17/8, 2020 at 7:13

0

I have a MainView which is a Navigation View and it presents a View through NavigationLink i.e. SubView here. In SubView, I want to present a view on top of the subview on a button toggle while hid...
Auden asked 14/8, 2020 at 6:36
1

© 2022 - 2024 — McMap. All rights reserved.