Welcome to the documentation for EAIntroView! This library provides a simple and customizable onboarding experience for your iOS apps. With EAIntroView, you can create beautiful and interactive introductions for new users, showcasing the features and guiding them through the app’s interface.
Features
- Easy to integrate into your project
- Supports customizable slides with images, titles, descriptions, and custom views
- Option to add button(s) on each slide for user interaction
- Supports page control and skip button for navigation
- Highly customizable appearance and animations
- Supports both portrait and landscape orientations
- Compatible with iOS 8.0 and above
Installation
Using CocoaPods
To install EAIntroView using CocoaPods, add the following line to your Podfile:
pod 'EAIntroView'
Then, run the following command:
pod install
Manually
- Download the EAIntroView repository from GitHub.
- Drag and drop the EAIntroView folder into your Xcode project.
- Ensure that “Copy items if needed” is checked when prompted.
Usage
To use EAIntroView in your project, follow these steps:
Import
#import <EAIntroView/EAIntroView.h>
Create IntroSlides
Create an array of EAIntroPage
objects, each representing a slide in the onboarding flow. For example:
EAIntroPage *page1 = [EAIntroPage page];
page1.title = @"Welcome";
page1.desc = @"This is the welcome screen";
page1.bgImage = [UIImage imageNamed:@"bgImage1"];
EAIntroPage *page2 = [EAIntroPage page];
page2.title = @"Step 1";
page2.desc = @"Perform step 1 here";
page2.bgImage = [UIImage imageNamed:@"bgImage2"];
// Create more pages as needed
NSArray *introPages = @[page1, page2];
Create IntroView
Create an instance of EAIntroView
with your customizations. For example:
EAIntroView *introView = [[EAIntroView alloc] initWithFrame:self.view.bounds andPages:introPages];
introView.skipButtonAlignment = EAViewAlignmentCenter;
introView.skipButtonY = 80.0f;
introView.skipButtonY = 0.0f;
[introView showInView:self.view animateDuration:0.3];
Customization
EAIntroView provides various customization options to tailor the onboarding experience according to your app’s design. You can customize the appearance, animations, and behaviors of the intro view and its slides.
Appearance
To customize the appearance of the intro view and slides:
- Set properties of
EAIntroView
andEAIntroPage
objects according to your needs. - For example, you can set the background color, fonts, and animation duration using properties like
bgColor
,titleFont
,descColor
, etc.
Animations
EAIntroView provides various built-in animations for the intro view and slides. You can customize the animations using properties like animationType
, showSkipButtonOnlyOnLastPage
, etc.
Delegates
You can implement the EAIntroDelegate
protocol and set the intro view’s delegate to handle events such as slide changes, button taps, and completion of the onboarding flow.
Examples
For comprehensive usage examples, refer to the ‘Example’ folder included in the EAIntroView repository.
Contact
If you have any questions, feedback, or suggestions, feel free to reach out to our team at team@yourapp.com.