Skip to content

matadan/OnboardKit

 
 

Repository files navigation

OnboardKit

OnboardKit

Swift 4.0 Carthage compatible Twitter

Customisable user onboarding for your iOS app in Swift

Requirements

  • Swift 4.0
  • Xcode 9
  • iOS 10.0+

Installation

github "NikolaKirev/OnboardKit"
use_frameworks!

# Latest release in CocoaPods
pod 'OnboardKit'

# Get the latest on master
pod 'OnboardKit', :git => 'https://github.com/NikolaKirev/OnboardKit.git', :branch => 'master'

Don't forget to import OnboardKit in the file you intend to use it.

Usage

  1. Create and populate a bunch of OnboardPage instances
let page = OnboardPage(title: "Welcome to OnboardKit",
                       imageName: "Onboarding1",
                       description: "OnboardKit helps you add onboarding to your iOS app")
  1. Create an OnboardViewController
let onboardingViewController = OnboardViewController(pageItems: [pageOne, ...]])
  1. Present the view controller
onboardingVC.presentFrom(self, animated: true)

(use this convenience method to make sure you predent it modally)

Customizatioon

You can customize the look of your onboarding by changing the default colors.

AppearanceConfiguration(tintColor: .green,
                        textColor: .white,
                        backgroundColor: .black,
                        titleFont: UIFont.boldSystemFont(ofSize: 24),
                        textFont: UIFont.boldSystemFont(ofSize: 13))

Author

Nikola Kirev

@NikolaKirev

License

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

About

Customisable user onboarding for your iOS app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.0%
  • Ruby 3.5%
  • Objective-C 2.5%