8 questions
-1
votes
1
answer
101
views
Creating a Stack that have the combined behavior of VStack and ZStack
I want to create a custom class for a stack that will show some kind of stacked cards effect like so:
It will be used on top of the Main / Root container. The stack will be aligned at the bottom of ...
0
votes
1
answer
61
views
How to align a VStack with 80% width with Texts centrally when it is in a ZStack?
I want to place a VStack including a few Text-Views in the center of the screen with a white background and opacity 50%. Therefore I tried the GeometryReader and know that it tries to consume 100% of ...
1
vote
2
answers
477
views
Why DatePicker not working with onTapGesture in SwiftUI
while building my app i encountered an issue that when i embed a DatePicker inside VStack and implement a onTapGesture on VStack then the DatePicker won't open calendar to pick dates on click.
VStack(...
0
votes
1
answer
64
views
SwiftUI: Dynamic Label and Image adjust
We have vertically aligned multiple labels and top tight Image is align to first label.
If first label has not enough content then second label will be move up and vice versa.
image height will be ...
0
votes
2
answers
162
views
VStack Not Resizing Properly to ForEach Contents
Consider the following setup (it's not the neatest display, but it was the quickest way I could think of to replicate my problem):
class IdentifiableString: Identifiable, Hashable {
static func ==(...
3
votes
2
answers
2k
views
Swift UI LazyVStack with nested VStack
I'm experiencing this issue and not user if it's a swift ui bug or expected behaviour. Could not find something related to this online.
Given this view
struct ContentView: View {
var body: some View ...
1
vote
0
answers
297
views
SwiftUI 4: scrollTo() generates invalid UI in VStack and LazyVStack
See the code below. The setup:
There are only 3 items in the LazyVStack.
The code scroll to the last item when the view is shown on the screen.
The result:
+--------------+ +--------------+
| ...
0
votes
2
answers
159
views
VStack flashing of space between views
The VStack has two components header and detail. When we tap on the "show" button, it shows the View (header + detail of the VStack). However, it results in Flashing effect when the view ...