2 "name": "WizardViewController",
4 "summary": "An abstract view controller for sliding pages.",
5 "description": "Build your tutorial / description / informative screens by trivial approach.\nSetup visual assets and be flexible with page delegation.\nPut special views or controls on top subview, which is not scrolling.\n\n```swift\n_wizardVC = WizardViewController()\n_wizardVC.modalTransitionStyle = .coverVertical\n_wizardVC.modalPresentationStyle = .overCurrentContext\n\n// setup page indicators\n_wizardVC.pageIndicatorColors = {[unowned self] currentPageIndex in\n let value: UIColor\n\n if let color = self._wizardVC.getView(index: currentPageIndex)?.backgroundColor {\n var r: CGFloat = 0, g: CGFloat = 0, b: CGFloat = 0, a: CGFloat = 0\n color.getRed(&r, green: &g, blue: &b, alpha: &a)\n\n // inverse color\n value = UIColor(red: 1-r, green: 1-g, blue: 1-b, alpha: 1)\n }\n else {\n switch currentPageIndex {\n case 1: value = .darkGray\n case 2: value = .gray\n default: value = .black\n }\n\n }\n\n return (nil, value)\n}\n\n// set views\n_wizardVC.setViews([B(), B(), B()])\n\n// or\n\n// set view controllers\n_wizardVC.setViewControllers([A(), A(), A(), A()])\n\n// set custom view on top subview\nlet button = UIButton(type: .custom)\nbutton.setTitle(\"skip\", for: .normal)\nbutton.sizeToFit()\nbutton.frame.origin.y = view.bounds.height - button.bounds.height - 50\nbutton.frame.size.width = view.bounds.width\nbutton.addTarget(self, action: #selector(closeTutorial), for: .touchUpInside)\n\n_wizardVC.setTop(view: button)\n```",
6 "homepage": "https://github.com/dimpiax/WizardViewController",
12 "Pilipenko Dima": "dimpiax@gmail.com"
15 "git": "https://github.com/dimpiax/WizardViewController.git",
18 "social_media_url": "https://twitter.com/dimpiax",
22 "source_files": "WizardViewController/Classes/**/*",
23 "pushed_with_swift_version": "3.0"