File tree Expand file tree Collapse file tree 2 files changed +47
-3
lines changed
Expand file tree Collapse file tree 2 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments