{"id":19540875,"url":"https://github.com/dimpiax/wizardviewcontroller","last_synced_at":"2025-04-26T16:32:02.143Z","repository":{"id":24263692,"uuid":"27657652","full_name":"dimpiax/WizardViewController","owner":"dimpiax","description":"Source code of realization page scrolling using UIPageViewController as base class, with configuration and predefined enum cases of each page","archived":false,"fork":false,"pushed_at":"2021-08-17T10:55:42.000Z","size":60,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T17:36:26.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimpiax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-07T03:12:40.000Z","updated_at":"2024-05-19T20:34:54.000Z","dependencies_parsed_at":"2022-08-06T01:16:01.835Z","dependency_job_id":null,"html_url":"https://github.com/dimpiax/WizardViewController","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FWizardViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FWizardViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FWizardViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FWizardViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimpiax","download_url":"https://codeload.github.com/dimpiax/WizardViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251017651,"owners_count":21523618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T03:07:41.787Z","updated_at":"2025-04-26T16:32:01.383Z","avatar_url":"https://github.com/dimpiax.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WizardViewController\n\n[![Language](https://img.shields.io/badge/swift-3.0-fec42e.svg)](https://swift.org/blog/swift-3-0-released/)\n[![Version](https://img.shields.io/cocoapods/v/WizardViewController.svg?style=flat)](http://cocoapods.org/pods/WizardViewController)\n[![License](https://img.shields.io/cocoapods/l/WizardViewController.svg?style=flat)](http://cocoapods.org/pods/WizardViewController)\n[![Platform](https://img.shields.io/cocoapods/p/WizardViewController.svg?style=flat)](http://cocoapods.org/pods/WizardViewController)\n\n## Description\nBuild 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\u003cimg src=thumbnail.png width=25% height=25% /\u003e\n\n## Example\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(\u0026r, green: \u0026g, blue: \u0026b, alpha: \u0026a)\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    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```\n\n## Installation\n\nWizardViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"WizardViewController\"\n```\n\n## Author\n\nPilipenko Dima, dimpiax@gmail.com\n\n## License\n\nWizardViewController is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpiax%2Fwizardviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimpiax%2Fwizardviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpiax%2Fwizardviewcontroller/lists"}