Wizard 0.1.3

Wizard 0.1.3

Maintained by Oleksii Mykhailenko.



Wizard 0.1.3

  • By
  • Oleksii Mykhailenko

Wizard 🎩✨

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS: 11.0+

Swift: 4.2

Installation

Wizard is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Wizard'

How to use

  1. Create WizardPage(), add custom elemets on it or create page with phone cover WizardPhonePage
  2. Create Wizard Controller with array of pages WizardController(pages: [WizardPhonePage...])
  3. Present Wizard Controller present

WizardPhonePage:

subtitle: "No other phone\nis like iPhone.",
phoneContent: UIImage(), // You can add your content image 
phonePosition: .top, // Phone position relatively title and subtitle
phoneType: .iPhoneX) // Phone skin (.iPhoneX, .iPhone8white, .iPhone8black)
page.titleColor = .orange // Title color
page.titleFont = UIFont.systemFont(ofSize: 22, weight: .bold) // Title font
page.subtitleColor = .darkGray // Subtitle color
page.subtitleFont = UIFont.systemFont(ofSize: 18, weight: .light) // Subtitle font

WizardPage:

Use customPage like main UIView. You can add UILabel, UIImage etc...

WizardController:


// Add a delegate if you want to know when the user swiped to the next/prev page or taped the skip/next/done button.
wizardController.delegate = self

// Present Wizard controller.
present(wizardController, animated: false)

Feature

Global

  • Create Wizard
  • Add new features 🚀

Wizard Controller

  • Create static Wizard Controller
  • Customized text of control buttons title
  • Customized text colors of control buttons title
  • Customized font of control buttons title
  • Hide/show control buttons and page control
  • Customized page control colors

Wizard Phone Page

  • Create static Wizard Phone Page
  • Customized text
  • Customized text fonts
  • Customized text colors
  • Phone position top/center/bottom relative to the title and subtitle

Author

Oleksii Mykhailenko, [email protected]

License

Wizard is available under the MIT license. See the LICENSE file for more info.