How to have a view animate in and out when a boolean changes?

前端 未结 0 967
渐次进展
渐次进展 2021-02-03 20:42
struct MyView: View {
  var animateStart = false {
      _animateStart = true
      DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.35) {
      _animateSt         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题