GithubHelp home page GithubHelp logo

lihuiyao1986 / jtfadinginfoview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from junichit/jtfadinginfoview

0.0 2.0 0.0 3.2 MB

UIButton-based view with fade in/out animation features

License: MIT License

Objective-C 97.30% Ruby 2.70%

jtfadinginfoview's Introduction

Title

JTFadingInfoView

Version License Platform

Overview

JTFadingInfoView is google's material design like notification view with smooth fade in/out animation features, based on UIButton subclass.

You can select fade in/out direction as you like. Also, customizable properties can be tweaked behaviors and enhance your application UI cool.

With this library, you can easily implement floating in-app notification to your app, such as login success/fail notification messages.

Screen shot

Installation

JTFadingInfoView is available on CocoaPods.

You can use this library by adding the following command onto your Podfile:

pod "JTFadingInfoView"

Usage

The simplest setup:

  CGRect frame = CGRectMake(150, 200, 150, 50);
  NSString *label = @"JTFadingInfoView!";
  JTFadingInfoView *infoView = [[JTFadingInfoView alloc] initWithFrame:frame
                                                                 label:label];
  [self.view addSubview:infoView];

Screen shot

Customize Behaviors

JTFadingInfoView has parameters to customize behaviors as you like:

/** A float represeting the time for displaying this view itself (second).
/** If <= 0, view will not disappear */
@property float displayDuration;
/** A float representing the time the view is appeared by (second). */
@property float appearingDuration;
/** A float representing the time the view is disappeared by (second). */
@property float disappearingDuration;
/** A float representing how much the view moves during fading in/out. */
@property float animationMovement;
/** A JTFadeInType representing from which direction the view appears */
@property JTFadeInDirectionType fadeInDirection;
/** A JTFadeInType representing to which direction the view will be disappeared */
@property JTFadeOutDirectionType fadeOutDirection;

Screen shot

Change History

1.0.0

  • First release

1.0.1

  • Bug Fix

1.0.2

  • Bug Fix

Requirements

iOS 7.0 or later

Author

Junichi Tsurukawa [email protected]

License

JTFadingInfoView is available under the MIT license.

jtfadinginfoview's People

Contributors

junichit avatar

Watchers

James Cloos 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.