OnboardKit
Customizable user onboarding for your UIKit app in Swift
Requirements
- Swift 5.0
- Xcode 10
- iOS 11.0+
Installation
Carthage
CocoaPods
Don't forget to import OnboardKit
in the file you intend to use it.
Usage
- Create and populate a bunch of
OnboardPage
instances
- Create an
OnboardViewController
- Present the view controller
(use this convenience method to make sure you present it modally)
Customization
Customizing Fonts and Colors
You can customize the look of your onboarding by changing the default colors and fonts.
- Initialize an
AppearanceConfiguration
instance with the desired custom style properties
- Pass the
AppearanceConfiguration
instance as a parameter when initialising anOnboardViewController
List of customizable properties:
tintColor
- used for tinting the advance and action buttonstitleColor
- used to set title color (textColor is used if not specified)textColor
- used to set description text colorbackgroundColor
- used to set view background colorimageContentMode
- used to set the content mode of page imageViewstitleFont
- used to set the title font (used for the action button font as well)textFont
- used to set the description text font (used for the advance button font as well)advanceButtonStyling
- a block used to customize the advance buttonactionButtonStyling
- a block used to customize the action button
Customizing Buttons
To customize the style of the advance and action buttons on each page of the onboarding flow, you can use a ButtonStyling
closure.
- Create the closure
- Pass the closure in the
AppearanceConfiguration
initializer
Author
Nikola Kirev
- Website: http://nikolakirev.com
- Twitter: @NikolaKirev
License
OnboardKit is available under the MIT license. See the LICENSE file for more info.