Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JunichiT/JTFadingInfoView
UIButton-based view with fade in/out animation features
https://github.com/JunichiT/JTFadingInfoView
Last synced: about 1 month ago
JSON representation
UIButton-based view with fade in/out animation features
- Host: GitHub
- URL: https://github.com/JunichiT/JTFadingInfoView
- Owner: JunichiT
- License: mit
- Created: 2015-08-01T23:27:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T12:29:21.000Z (over 9 years ago)
- Last Synced: 2024-04-24T14:49:03.602Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 3.12 MB
- Stars: 130
- Watchers: 8
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - JTFadingInfoView - An UIButton-based view with fade in/out animation features. (UI / Button)
- awesome-ios-star - JTFadingInfoView - An UIButton-based view with fade in/out animation features. (UI / Button)
README
![Title](Docs/JTFadingInfoView_Title.png)
# JTFadingInfoView
[![Version](https://img.shields.io/cocoapods/v/JTFadingInfoView.svg?style=flat)](http://cocoadocs.org/docsets/JTFadingInfoView)
[![License](https://img.shields.io/cocoapods/l/JTFadingInfoView.svg?style=flat)](http://cocoadocs.org/docsets/JTFadingInfoView)
[![Platform](https://img.shields.io/cocoapods/p/JTFadingInfoView.svg?style=flat)](http://cocoadocs.org/docsets/JTFadingInfoView)## 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](Docs/loginDemo.gif)
## Installation
JTFadingInfoView is available on CocoaPods.You can use this library by adding the following command onto your Podfile:
```ruby
pod "JTFadingInfoView"
```## Usage
The simplest setup:
```objective-c
CGRect frame = CGRectMake(150, 200, 150, 50);
NSString *label = @"JTFadingInfoView!";
JTFadingInfoView *infoView = [[JTFadingInfoView alloc] initWithFrame:frame
label:label];
[self.view addSubview:infoView];
```![Screen shot](Docs/simple.gif)
### Customize Behaviors
JTFadingInfoView has parameters to customize behaviors as you like:```objective-c
/** 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](Docs/parameterDemo.gif)
## 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## License
JTFadingInfoView is available under the MIT license.