 
   // MARK: Initializers
 
-  public required init(images: [String], config: Config? = nil, delegate: LightboxControllerDelegate? = nil) {
+  public required init(images: [String], config: Config? = nil, pageDelegate: LightboxControllerPageDelegate? = nil) {
     self.images = images
-    self.delegate = delegate
+    self.pageDelegate = pageDelegate
 
     if let config = config {
       LightboxConfig.sharedInstance.config = config

import UIKit

public protocol LightboxControllerDelegate: class {

  func lightboxControllerDidMoveToPage(controller: LightboxController, page: Int)
  func lightboxControllerDidDismiss(controller: LightboxController)
}



  var images = [String]()

  public var pageDelegate: LightboxControllerPageDelegate?

  var collectionSize = CGSizeZero

