Install AwesomeIntroGuideView via CocoaPods
masterTo install the library using CocoaPods, add the following line to your Podfile:
pod 'AwesomeIntroGuideView'repository·master·Indexed 19 days ago
https://github.com/bupterambition/awesomeintroguideviewAn iOS library for creating onboarding experiences using coach marks with rectangular, star, or circular cutouts. It allows developers to highlight UI elements with captions and introductory images, supporting configuration via views or dictionaries and redirection via redirectURL.
To install the library using CocoaPods, add the following line to your Podfile:
pod 'AwesomeIntroGuideView'AwesomeIntroGuideView.h and AwesomeIntroGuideView.m source files directly to your project. Note that if you choose this method, you must also add MGJRouter to your project as a dependency.You can display onboarding coach marks by passing an array of views or a configuration array of dictionaries to the AwesomeIntroGuideView instance.
When using dictionaries to define the frame and appearance of each coach mark, use the following keys:
rect: An NSValue containing a CGRect defining the cutout area.caption: A string describing the feature.shape: A string defining the cutout style (e.g., "circle" or "square").// Setup coach marks using an array of dictionaries
NSArray *coachMarks = @[
@{
@"rect": [NSValue valueWithCGRect:(CGRect){{0,0},{45,45}}],
@"caption": @"Helpful navigation menu",
@"shape": @"circle"
},
@{
@"rect": [NSValue valueWithCGRect:(CGRect){{10.0f,56.0f},{300.0f,56.0f}}],
@"caption": @"Document your wedding by taking photos",
@"shape": @"square"
}
];
// Initialize and start the guide
AwesomeIntroGuide *coachMarksView = [[AwesomeIntroGuide alloc] initWithFrame:self.view.bounds coachMarks:coachMarks];
[self.view addSubview:coachMarksView];
[coachMarksView start];You can define an introductory display image (via URL or local resource) that includes a clickable link. If a user clicks the guiding image, the app will navigate to the specified redirectURL (which can be a web URL or an internal app route).
```objc
// Load guide image with a redirect URL and specific point
[self.coachMarksView loadGuideImageUrl:introGuideImgUrl
withPoint:(CGPoint){70,100}
redirectURL:@