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.
- If you want use all three of the indicators, use
FTIndicator. - Also,
FTNotificationIndicator,FTProgressIndicatorandFTToastIndicatorare able to work separately. Use them all your will.
FTIndicator
FTNotificationIndicatorFTProgressIndicatorFTToastIndicator
| Style | Light | Dark |
|---|---|---|
| Notification | ||
| Progress | ||
| Toast |
| Style | Light | Dark |
|---|---|---|
| Notification | ||
| Progress | ||
| Toast |
- clone this repo.
- Simply drop the '/FTIndicator' folder into your project.
- import 'FTIndicator.h'
FTIndicator is available through CocoaPods. To install it, simply add the following line to your Podfile:
Syntax error fix in 1.2.2: Syntax error fixed. May cause error to your projects, update it carefully.
major fix in 1.2.0: progress HUD doesn't show when app starts
FTNotificationIndicator, FTProgressIndicator and FTToastIndicator podfile stopped updating after v1.1.5. If you wanna use them separately, you should use them like this in your Podfile as a subPod:
pod 'FTIndicator/FTNotificationIndicator' pod 'FTIndicator/FTProgressIndicator' pod 'FTIndicator/FTToastIndicator'
- FTIndicator, 3 in 1
pod 'FTIndicator'
- FTNotificationIndicator
(削除) pod 'FTNotificationIndicator (削除ここまで) is not available anymore, use this:
# use as a subPod pod 'FTIndicator/FTNotificationIndicator'
- FTProgressIndicator
(削除) pod "FTProgressIndicator" (削除ここまで) is not available anymore, use this:
# use as a subPod pod 'FTIndicator/FTProgressIndicator'
- FTToastIndicator
(削除) pod 'FTToastIndicator' (削除ここまで) is not available anymore, use this:
# use as a subPod pod 'FTIndicator/FTToastIndicator'
- show without image
[FTIndicator showNotificationWithTitle:@"Here is a notification title." message:@"Here is a notification message."];
- show with image
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"] title:@"Here is a notification title." message:@"Here is a notification message."];
- show with image, with tap handler and completion handler
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"] title:@"Here is a notification title." message:@"Here is a notification message. Try to tap and see tap handling or do nothing to see completion" tapHandler:^{ // handle user tap } completion:^{ // handle completion }];
- dismiss manually
[FTIndicator dismissNotification];- show progress
[FTIndicator showProgressWithMessage:@"Here is a progress message."];
// or disable user interactions [FTIndicator showProgressWithMessage:@"Here is a progress message." userInteractionEnable:NO];
- show success
[FTIndicator showSuccessWithMessage:@"Here is a success message."];
// or disable user interactions [FTIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO];
- show info
[FTIndicator showInfoWithMessage:@"Here is a info message."];
// or disable user interactions [FTIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO];
- show error
[FTIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions [FTIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
- dismiss manually
[FTIndicator dismissProgress];- show with image
[FTIndicator showToastMessage:@"Short Toast."];
- dismiss manually
[FTIndicator dismissToast];- 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];- show progress
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message."];
// or disable user interactions [FTProgressIndicator showProgressWithmessage:@"Here is a progress message." userInteractionEnable:NO];
- show success
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message."];
// or disable user interactions [FTProgressIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO];
- show info
[FTProgressIndicator showInfoWithMessage:@"Here is a info message."];
// or disable user interactions [FTProgressIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO];
- show error
[FTProgressIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions [FTProgressIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
- dismiss manually
[FTProgressIndicator dismiss];- show with image
[FTToastIndicator showToastMessage:@"Short Toast."];
- dismiss manually
[FTToastIndicator dismiss];FTIndicator is available under the MIT license. See the LICENSE file for more info.