Code Monkey home page Code Monkey logo

flow's Introduction

Flow

Version License Platform

Flow is a Facebook Paper inspired tutorial framework to make users familiar with gesture driven user interfaces. Watch the DEMO video here:

IMAGE ALT TEXT HERE

Installation

Flow is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "Flow"

Usage

Scheduling a new tutorial

[[FLWTutorialController sharedInstance] scheduleTutorialWithIdentifier:identifier afterDelay:0.5 withPredicate:^BOOL{
  // return NO if you are not ready to start this tutorial yet.
  return YES;
} constructionBlock:^(id<FLWTutorial> tutorial) {
  tutorial.title = ...; // assign tutorials title
  tutorial.gesture = ...; // assigne tutorials gesture
}];

Gestures

Flow ships with the buildin gestures FLWTapGesture, FLWSwipeGesture and FLWCompoundGesture and supports all gestures conforming to the FLWTouchGesture protocol:

@protocol FLWTouchGesture <NSObject>

@property (nonatomic, assign) CGFloat duration;

@property (nonatomic, readonly) CGFloat progress;
- (void)setProgress:(CGFloat)progress onView:(UIView *)view;

@end

Changing progress of interactive tutorials

[[FLWTutorialController sharedInstance] setProgress:progress inTutorialWithIdentifier:identifier];

Completion

Mark a tutorial as completed

[[FLWTutorialController sharedInstance] completeTutorialWithIdentifier:dummyIdentifier];

Tutorial invalidation

If your app leaves the scope where the tutorial is valid:

[[FLWTutorialController sharedInstance] invalidateTutorialWithIdentifier:identifier];

Author

Oliver Letterer

License

Flow is available under the MIT license. See the LICENSE file for more info.

flow's People

Contributors

jakemarsh avatar maxsz avatar oliverletterer avatar ryanbertrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flow's Issues

Help!

Hey,

Love this, great job!

I can't seem to schedule a 'Flow' with 3 tutorials in, the first two work perfectly, the third doesn't seem to schedule, although if I remove the second, works fine!

Any ideas?

[self __FLWTutorialControllerSendEvent:event] Crash

After pod install 'Flow' on iOS 7.1, Xcode 5.1.1, it crashes on
line 74 of FLWTutoialController: [self __FLWTutorialControllerSendEvent:event];

*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 nan; 320 568]'

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.