Code Monkey home page Code Monkey logo

arwhatsnew's Introduction

ARWhatsNew

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!

Preview

preview

Properties

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.

Compatibility and Requirements

  • Xcode 7 or later.
  • iOS 7 or later.
  • Optimised for iPhone and iPad.

Installation

  1. Copy ARWhatsNew folder into your Xcode project.
  2. #import "ARWhatsNew.h"

Usage

Example

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];
    }

Automatic Title Colour Change

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.

Checking Whats New has already been seen

ARWhatsNew provides a simple BOOL called whatsNewNotShown that returns:

  • YES - If user HASN'T seen Whats New

  • NO - If the user HAS seen Whats New

     if ([ARWhatsNew alloc] init] whatsNewNotShown]) {
         // Present modal
     }
    

Planned For The Future

  • 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

Contact & Support

I am available on Twitter or Create a new Issue

arwhatsnew's People

Contributors

docash59 avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.