 
   var images = [String]()
 
-  public var delegate: LightboxControllerDelegate?
+  public var pageDelegate: LightboxControllerPageDelegate?
 
   var collectionSize = CGSizeZero
 


  // MARK: Initializers

  public required init(images: [String], config: Config? = nil, delegate: LightboxControllerDelegate? = nil) {
    self.images = images
    self.delegate = delegate

    if let config = config {
      LightboxConfig.sharedInstance.config = config

import UIKit

public protocol LightboxControllerPageDelegate: class {

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

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

