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 ...
1
vote
2
answers
471
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
2
answers
160
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 ==(...
1
vote
0
answers
296
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:
+--------------+ +--------------+
| ...