title: Swift 4, How do I put a lot of library photos to uiscrollview?
body: <p>I'm making a photo library app. 
  I am using the collectionView for the images to layout and when i get a touch on the cell i am going to a another uiscrollview. 
  and for the scroll view i am append image like this. </p>
  
  <pre><code>for i in 0...imageArray.count {
     (add image to scrollview)
  }
  </code></pre>
  
  <p>and allow the user to use swipe gesture to get the next or the back photo from the library. 
  but this problem is that when the array has over 1000 photos inside of it. it takes a lot of time to load. Is there a better way doing this?</p>