title: SwiftUI create image slider with dots as indicators
body: <p>I want to create a scroll view/slider for images. See my example code:</p>
  
  <pre><code>ScrollView(.horizontal, showsIndicators: true) {
        HStack {
             Image(shelter.background)
                 .resizable()
                 .frame(width: UIScreen.main.bounds.width, height: 300)
             Image("pacific")
                  .resizable()
                  .frame(width: UIScreen.main.bounds.width, height: 300)
        }
  }
  </code></pre>
  
  <p><strong>Though this enables the user to slide, I want it a little different (similar to a PageViewController in UIKit). I want it to behave like the typical image slider we know from a lot of apps with dots as indicators:</strong></p>
  
  <ol>
  <li>It shall always show a full image, no in between - hence if the user drags and stops in the middle, it shall automatically jump to the full image.</li>
  <li>I want dots as indicators. </li>
  </ol>
  
  <p>Since I've seen a lot of apps use such a slider, there must be known method, right? </p>