Code Monkey home page Code Monkey logo

nkwatchactivityindicator's Introduction

#NKWatchActivityIndicator#

Verision Platform License

An activity indicator library for Apple Watch and a sample to push the limits of animation in watchOS 2. We are trying to implement beautiful indicators in this fork of DGActivityIndicatorView and support ball scale, ball scale ripple, tow dots, three dots, ball zigzag, ball zigzag deflect animations now and will integrate more. Static screenshots can't show the animation effect, please make sure see the gif below.

gif

##Usage##

###Cocoapods###

In your watchOS target

pod 'NKWatchActivityIndicator'

Then

pod install

And

#import "NKWActivityIndicatorAnimation.h"

Using Cocoapods with watchOS 2 by Justin Ehlert

Integrating CocoaPods into native watchOS targets by Boris Bügling

###Copy NKWatchActivityIndicator folder to watch app extension ###

######Note: because the limition of WatchKit, maybe you need to use similiar UI elements and layouts as we did in demo for some animation effects

##Requirements##

  • watchOS ~> 2.0
  • Xcode >= 7.0

##Examples## Add and layout UI elements in storyboard as we did in demo or customize to meet your requirements Then

- (void)willActivate {
// This method is called when watch view controller is about to be visible to user
[super willActivate];

self.animation = [[NKWActivityIndicatorAnimation alloc] initWithType:NKWActivityIndicatorAnimationTypeBallScale controller:self images:@[self.indicatorImage]];

[self.animation startAnimating];
}

- (void)didDeactivate {
// This method is called when watch view controller is no longer visible
[super didDeactivate];

[self.animation stopAnimating];

}

##TODO##

  • more testing
  • refactoring
  • more indicator types

##License## This code is distributed under the terms and conditions of the MIT license.

##Thanks## Awesome activity indicator library DGActivityIndicatorView

nkwatchactivityindicator's People

Contributors

nilstack avatar anthonyegerton avatar philipperiegert avatar stkent avatar

Watchers

James Cloos avatar Vipin Saini 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.