title: Having trouble creating a star animation in swiftUI
body: <p>I'm trying to create a star animation using blur, but my stars end up disappearing and I can't figure out why.
  Through debugging a bit I'm pretty sure this has to do with how I'm using onAppear. I'm just trying to make sure the stars blur and unblur on the screen forever - I always want the stars to be visible though.</p>
  <p>Could anyone help me fix this problem (attached code below) and any design tips would be appreciated haha.</p>
  <pre><code>struct ContentView: View {
      @State private var radius = 2
      private var opacity = 0.25
      var body: some View {
          ZStack {
              Color.black.edgesIgnoringSafeArea(.all)
              VStack  {
                  ForEach(0..&lt;8) {_ in
                  HStack {
                      ForEach(0..&lt;5) { _ in
                          Circle().fill(Color.white)
                          .frame(width: 3, height: 3)
                          .blur(radius: CGFloat(self.radius))
                          .animation(Animation.easeInOut(duration: 6).
                          repeatForever(autoreverses: true))
                          .padding(EdgeInsets(top: self.calculateRandom(), leading: 0,         
                         bottom: 0, trailing: self.calculateRandom()))
                          .onAppear() {
                              self.radius += 2
                                  
                          }
                  }
                  }
              }
              }
              
              
          }
      }
      
      func calculateRandom() -&gt; CGFloat {
          return CGFloat(Int.random(in: 30..&lt;150))
      }
  }
  </code></pre>