Questions tagged [swiftui-vstack]

4 questions
1
vote
0 answers

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: +--------------+ +--------------+ | c | | a | | |…
rayx
  • 1,329
  • 10
  • 23
0
votes
2 answers

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 { ScrollView(.vertical) { LazyVStack…
Daniel
  • 1,225
  • 2
  • 15
  • 31
0
votes
0 answers

iOS 15 Empty White Space at Bottom

I have a view in which there is a imageslider using tabview and a background color in ZStack. In addition, at bottom there is a HSTack having some buttons. The code is as follows : struct HomeScreen: View { @State private var currentIndex =…
Joji
  • 21
  • 4
0
votes
2 answers

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 Slides in. After the animation is complete the View spacing…
NNikN
  • 3,720
  • 6
  • 44
  • 86