Skip to main content

All Questions

0 votes
2 answers
148 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 ...
NNikN's user avatar
  • 3,858
1 vote
0 answers
257 views

ZStack explicit animation not working when conditionally hiding/showing a view

I want to create some sort of banner view that either moves in or out with animations when some state changes in SwiftUI. It feels like a basic task to do but the transition when showing the banner is ...
ph1psG's user avatar
  • 738
1 vote
2 answers
1k views

SwiftUI: Animate Transitions

How can I animate slide transitions between different views? In following sample code I made a Picker that chooses which view to show and my goal is to have a transition that looks similar to the ...
Isaak's user avatar
  • 1,379