title: How to center multiple images in scrollview in Xcode/Swift
body: <p>I am trying to horizontally center 30 images in a scrollview. What is the best approach to do so? Thanks.</p>
  
  <p><img src="https://i.stack.imgur.com/kC535.png" alt="enter image description here"></p>
  
  <p>EDIT: Programmatically I was able to create the images, thanks to David Cao, but I am still having the issue of it not centering. Thanks.
  <img src="https://i.stack.imgur.com/LUmko.jpg" alt="enter image description here"></p>