title: Navigation View moved my destination view SwiftUI
body: <p>I am using Navigation View to create navigation beetween my view by navigation link and i found out a problem i don't know this is bug or error in my code
  first image is my view look like this in my Subview file and second when i use it to in navigation it's automatic moved like this:</p>
  <p><a href="https://i.stack.imgur.com/L3iQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L3iQR.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/gIJj4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gIJj4.png" alt="enter image description here" /></a></p>
  <p>This is my code on parents view:</p>
  <pre><code>struct OnboardingSet: View {
      
      private var offset : CGFloat = screenFrame.Width
      @State private var currentPage : Int = 0
      @State private var NavigationTag : Int? = nil
      
      var body: some View {
          NavigationView {
              
              NavigationLink(
                  destination: SigninView(),
                  tag: 1,
                  selection: $NavigationTag,
                  label: {
                      
                      HStack {
                          OnboardingView(ImageName: Resource.Image.onboarding1, Title: &quot;First, Truth, \nPopular Topic&quot;, ButtonTitle: &quot;Skip&quot;, TotalPage: 3, CurrentPage: 1) {
                              NavigationTag = 1
                          }
                          OnboardingView(ImageName: Resource.Image.onboarding2, Title: &quot;Fast, Secure, \nMost Loved By User&quot;, ButtonTitle: &quot;Skip&quot;, TotalPage: 3, CurrentPage: 2) {
                              NavigationTag = 1
                          }
                          OnboardingView(ImageName: Resource.Image.onboarding3, Title: &quot;Feel the \n happiness&quot;, ButtonTitle: &quot;sign in&quot;, TotalPage: 3, CurrentPage: 3) {
                              NavigationTag = 1
                          }
                      }
                      .offset(x: currentPage == 0 ? offset : 0, y: 0)
                      .offset(x: currentPage == 2 ? -offset : 0, y: 0)
                      .animation(.easeInOut)
                      .gesture(
                          DragGesture(minimumDistance: 5, coordinateSpace: .local)
                              .onEnded({ (value) in
                                  if value.translation.width &lt; 0 {
                                      if currentPage != 2 {
                                          currentPage += 1
                                      }
                                  }
                                  
                                  if value.translation.width &gt; 0 {
                                      if currentPage != 0 {
                                          currentPage -= 1
                                      }
                                  }
                              })
                      )
                  })
          }
      }
      
  }
  </code></pre>
  <p>This is my subview:</p>
  <pre><code>struct SigninView: View {
      
      @ObservedObject private var viewModal = SignInViewModal()
      
      var body: some View {
          ZStack {
              Image(Resource.Image.backgroundSignIn)
                  .resizable()
                  .aspectRatio(contentMode: .fill)
                  .blur(radius: 4)
                  .offset(x: 200, y: 10.0)
              
              VStack {
                  HStack {
                      Text(&quot;Hello Unwary \n Reader&quot;)
                          .foregroundColor(.white)
                          .font(.system(size: 42))
                          .fontWeight(.black)
                          .padding(.top,64)
                          .padding(.leading)
                          .shadow(color: .black, radius: 16, x: 16, y: 16)
                      Spacer()
                  }
                  Spacer()
                  
                  VStack {
                      BlurTextFeild(&quot;Email&quot;, Text: $viewModal.Email, TextEntryType: .Open)
                          .frame(width: screenFrame.Width - 30, height: 100)
                      
                      BlurTextFeild(&quot;Password&quot;, Text: $viewModal.Password,TextEntryType: .Secure)
                          .frame(width: screenFrame.Width - 30, height: 100)
                      
                  }.padding()
                  
                  Button(action: {
                      viewModal.AuthState = viewModal.AuthState == SignInViewModal.authState.signIn ? SignInViewModal.authState.signUp : SignInViewModal.authState.signIn
                  }, label: {
                      Text(viewModal.AuthState == SignInViewModal.authState.signIn ? &quot;Create Account&quot; : &quot;LogIn&quot;)
                          .foregroundColor(.black)
                          .opacity(0.5)
                          .font(.system(size: 18, weight: .bold, design: .rounded))
                  })
                  
                  Spacer()
                  
                  Button(action: {
                      
                  }, label: {
                      ZStack {
                          
                          Blur(effect: UIBlurEffect(style: .regular))
                          
                          Color.black
                              .opacity(0.3)
                          
                          Text(viewModal.AuthState == SignInViewModal.authState.signIn ? &quot;Sign In&quot; : &quot;Sign Up&quot;)
                              .foregroundColor(.white)
                              .font(.system(size: 24))
                      }.frame(width: screenFrame.Width - 100, height: 80)
                      .cornerRadius(16)
                  }).padding(.bottom,32)
              }.frame(width: screenFrame.Width, height: screenFrame.Height)
          }
          .edgesIgnoringSafeArea(.all)
          .navigationBarBackButtonHidden(true)
          .frame(width: screenFrame.Width, height: screenFrame.Height + 50, alignment: .center)
      }
  }
  </code></pre>