 
   // 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

        attributes: config.textAttributes)
      pageLabel.sizeToFit()

      delegate?.lightboxControllerDidMoveToPage(self, page: page)
    }
  }


import UIKit

public protocol LightboxControllerPageDelegate: class {

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

public protocol LightboxControllerDismissalDelegate: class {
  
  func lightboxControllerDidDismiss(controller: LightboxController)
}

