Skip to content

Commit 48cb7e7

Browse files
authored
Merge pull request #3 from NikolaKirev/develop
Add cocoapods support
2 parents 8099ce9 + 16674f4 commit 48cb7e7

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

OnboardKit.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Pod::Spec.new do |s|
2+
3+
s.name = "OnboardKit"
4+
s.version = "1.0.0"
5+
s.summary = "Customisable user onboarding for your iOS app"
6+
7+
s.description = <<-DESC
8+
OnboardKit gives you an easy way to add onboarding to your iOS app.
9+
It is written in Swift.
10+
DESC
11+
12+
s.homepage = "https://github.com/NikolaKirev/OnboardKit"
13+
14+
s.license = { :type => "MIT", :file => "LICENSE" }
15+
16+
s.author = { "Nikola Kirev" => "nikola@nikolakirev.com" }
17+
s.social_media_url = "http://twitter.com/NikolaKirev"
18+
19+
s.platform = :ios, "10.0"
20+
21+
s.source = { :git => "https://github.com/NikolaKirev/OnboardKit.git", :tag => "v1.0.0" }
22+
s.source_files = "OnboardKit"
23+
24+
end

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
*Customisable user onboarding for your iOS app in Swift*
99

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

1212
## Requirements
1313

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

2828
## Usage
2929

30-
#### Step 1 - Create `OnboardPage`s
31-
30+
1. Create and populate a bunch of `OnboardPage` instances
31+
````swift
32+
let page = OnboardPage(title: "Welcome to OnboardKit",
33+
imageName: "Onboarding1",
34+
description: "OnboardKit helps you add onboarding to your iOS app")
35+
````
36+
2. Create an `OnboardViewController`
37+
````swift
38+
let onboardingViewController = OnboardViewController(pageItems: [pageOne, ...]])
39+
````
40+
3. Present the view controller
3241
````swift
42+
onboardingVC.presentFrom(self, animated: true)
3343
````
44+
(use this convenience method to make sure you predent it modally)
3445

3546
## Customizatioon
3647

48+
You can customize the look of your onboarding by changing the default colors.
49+
````swift
50+
AppearanceConfiguration(tintColor: .green,
51+
textColor: .white,
52+
backgroundColor: .black,
53+
titleFont: UIFont.boldSystemFont(ofSize: 24),
54+
textFont: UIFont.boldSystemFont(ofSize: 13))
55+
````
56+
3757
## Author
3858

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

0 commit comments

Comments
 (0)