Skip to content

Commit

Permalink
Merge pull request #3 from NikolaKirev/develop
Browse files Browse the repository at this point in the history
Add cocoapods support
  • Loading branch information
NikolaKirev authored Feb 1, 2018
2 parents 8099ce9 + 16674f4 commit 48cb7e7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
24 changes: 24 additions & 0 deletions OnboardKit.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Pod::Spec.new do |s|

s.name = "OnboardKit"
s.version = "1.0.0"
s.summary = "Customisable user onboarding for your iOS app"

s.description = <<-DESC
OnboardKit gives you an easy way to add onboarding to your iOS app.
It is written in Swift.
DESC

s.homepage = "https://github.com/NikolaKirev/OnboardKit"

s.license = { :type => "MIT", :file => "LICENSE" }

s.author = { "Nikola Kirev" => "[email protected]" }
s.social_media_url = "http://twitter.com/NikolaKirev"

s.platform = :ios, "10.0"

s.source = { :git => "https://github.com/NikolaKirev/OnboardKit.git", :tag => "v1.0.0" }
s.source_files = "OnboardKit"

end
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

*Customisable user onboarding for your iOS app in Swift*

<p align="center"><img src="https://raw.githubusercontent.com/NikolaKirev/OnboardKit/develop/Assets/demo.gif" /></p>
<p align="center"><img src="https://github.com/NikolaKirev/OnboardKit/develop/Assets/demo.gif" /></p>

## Requirements

Expand All @@ -27,13 +27,33 @@ Don't forget to `import OnboardKit` in the file you intend to use it.

## Usage

#### Step 1 - Create `OnboardPage`s

1. Create and populate a bunch of `OnboardPage` instances
````swift
let page = OnboardPage(title: "Welcome to OnboardKit",
imageName: "Onboarding1",
description: "OnboardKit helps you add onboarding to your iOS app")
````
2. Create an `OnboardViewController`
````swift
let onboardingViewController = OnboardViewController(pageItems: [pageOne, ...]])
````
3. Present the view controller
````swift
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.
````swift
AppearanceConfiguration(tintColor: .green,
textColor: .white,
backgroundColor: .black,
titleFont: UIFont.boldSystemFont(ofSize: 24),
textFont: UIFont.boldSystemFont(ofSize: 13))
````

## Author

[Nikola Kirev](http://nikolakirev.com)
Expand Down

0 comments on commit 48cb7e7

Please sign in to comment.