A simple and light-weight What's New modal for new app updates.
This neat tool allows you to simply present a modal to your users to tell them Whats New in your update!
Key | Type | Description |
---|---|---|
primaryColor | UIColor |
Sets background color |
secondaryColor | UIColor |
Sets acceptButton button background color |
acceptButtonText | NSString |
Changes default text for button instead of the default "Get Started" |
releaseNotes | NSString |
The release notes for the release |
disableReadAllRequired | BOOL |
Disable acceptButton from being disabled until user scrolls to bottom. |
resetWhatsNew | Void |
Resets current version whatsNew_x key in NSUserDefault |
appVersion | NSString |
Gets current app short version code. E.g. 1.0 |
whatsNewNotShown | BOOL |
Disable acceptButton from being disabled until user scrolls to bottom. |
- Xcode 7 or later.
- iOS 7 or later.
- Optimised for iPhone and iPad.
- Copy ARWhatsNew folder into your Xcode project.
#import "ARWhatsNew.h"
Place in ViewDidAppear
ARWhatsNew *vc = [[ARWhatsNew alloc] init];
vc.primaryColor = [UIColor blackColor];
vc.secondaryColor = [UIColor yellowColor];
vc.acceptButtonText = @"START APP";
vc.disableReadAllRequired = YES;
if ([vc whatsNewAlreadyShown]) {
[self presentViewController:vc animated:YES completion:nil];
}
ARWhatsNew automatically changes the textColor
acording to the primary and secondary colors you provide. For example, if you provide a black background then the text will turn white and vice-versa.
ARWhatsNew provides a simple BOOL
called whatsNewNotShown
that returns:
-
YES
- If user HASN'T seen Whats New -
NO
- If the user HAS seen Whats Newif ([ARWhatsNew alloc] init] whatsNewNotShown]) { // Present modal }
- Automatically check
appid
in App Store.- Get release notes from App Store.
- Only show Whats New for major releases. (opt.)
- SHOW Whats New if version is
2.x
- DONT show Whats New for minimal version
2.x.x
- SHOW Whats New if version is
I am available on Twitter or Create a new Issue