ws1227 / FTIndicator

A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes Support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FTIndicator

Twitter GitHub license Version Platform Download CocoaPods CocoaPods CI Status GitHub stars

A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes Support for iOS. Inspired by Apple's process HUD, notifications and Android's toast.

ScreenShots

Portrait

Style Light Dark
Notification
Progress
Toast

Landscape

Style Light Dark
Notification
Progress
Toast

3 IN 1

  • If you want use all three of the indicators, use FTIndicator .
  • Also, FTNotificationIndicator, FTProgressIndicator and FTToastIndicator are able to work separately. Use them all your will.

  • FTIndicator
    • FTNotificationIndicator
    • FTProgressIndicator
    • FTToastIndicator

Installation

Manually

  • clone this repo.
  • Simply drop the '/FTIndicator' folder into your project.
  • import 'FTIndicator.h'

CocoaPods

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

Use FTIndicator, all three of them

  • FTIndicator, 3 in 1
pod 'FTIndicator'

Use separately

  • FTNotificationIndicator
pod 'FTNotificationIndicator'
  • FTProgressIndicator
pod 'FTProgressIndicator'
  • FTToastIndicator
pod 'FTToastIndicator'

Usage

Use FTIndicator

Notification

  • show with image
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
								   title:@"Here is a notification title."
                               message:@"Here is a notification message."]; 
  • show without image
[FTIndicator showNotificationWithTitle:@"Here is a notification title."
								message:@"Here is a notification message."]; 
  • dismiss manually
[FTIndicator dismissNotification];

Progress

  • show progress
[FTIndicator showProgressWithmessage:@"Here is a progress message."]; 
  • show success
[FTIndicator showSuccessWithMessage:@"Here is a success message."]; 
  • show info
[FTIndicator showInfoWithMessage:@"Here is a info message."]; 
  • show error
[FTIndicator showErrorWithMessage:@"Here is a error message."];
  • dismiss manually
[FTIndicator dismissProgress];

Toast

  • show with image
[FTIndicator showToastMessage:@"Short Toast."];  
  • dismiss manually
[FTIndicator dismissToast];

Use FTNotificationIndicator, FTProgressIndicator, FTToastIndicator separately

FTNotificationIndicator

  • show with image
[FTNotificationIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
                                             title:@"Here is a notification title."
                                           message:@"Here is a notification message."]; 
  • show without image
[FTNotificationIndicator showNotificationWithTitle:@"Here is a notification title."
										     message:@"Here is a notification message."]; 
  • dismiss manually
[FTNotificationIndicator dismiss];

FTProgressIndicator

  • show progress
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message."]; 
  • show success
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message."]; 
  • show info
[FTProgressIndicator showInfoWithMessage:@"Here is a info message."]; 
  • show error
[FTProgressIndicator showErrorWithMessage:@"Here is a error message."];
  • dismiss manually
[FTProgressIndicator dismiss];

FTToastIndicator

  • show with image
[FTToastIndicator showToastMessage:@"Short Toast."];  
  • dismiss manually
[FTToastIndicator dismiss];

ChangeLog

ChangeLog

License

  • FTIndicator is available under the MIT license. See the LICENSE file for more info.
  • FTNotificationIndicator is available under the MIT license. See the LICENSE file for more info.
  • FTProgressIndicator is available under the MIT license. See the LICENSE file for more info.
  • FTToastIndicator is available under the MIT license. See the LICENSE file for more info.

About

A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes Support.

License:MIT License


Languages

Language:Objective-C 95.0%Language:Ruby 5.0%