Created
June 11, 2016 17:57
-
-
Save olxios/1047e2cca68ebb9a048f5a6f8cbb9da0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func currentControllerIndex() -> Int { | |
let pageItemController = self.currentController() | |
if let controller = pageItemController as? PageItemController { | |
return controller.itemIndex | |
} | |
return -1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment