A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes support.
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.
FTIndicator
.FTNotificationIndicator
, FTProgressIndicator
and FTToastIndicator
are able to work separately. Use them all your will.
FTIndicator
FTNotificationIndicator
FTProgressIndicator
FTToastIndicator
Style | Light | Dark |
---|---|---|
Notification | ||
Progress | ||
Toast |
Style | Light | Dark |
---|---|---|
Notification | ||
Progress | ||
Toast |
FTIndicator
is available through CocoaPods. To install it, simply add the following line to your Podfile:
⚠️ Notice:
Syntax error fix in 1.2.2: Syntax error fixed. May cause error to your projects, update it carefully.
⚠️ Notice:
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'
pod 'FTIndicator'
pod 'FTNotificationIndicator is not available anymore, use this:
# use as a subPod
pod 'FTIndicator/FTNotificationIndicator'
pod “FTProgressIndicator” is not available anymore, use this:
# use as a subPod
pod 'FTIndicator/FTProgressIndicator'
pod ‘FTToastIndicator’ is not available anymore, use this:
# use as a subPod
pod 'FTIndicator/FTToastIndicator'
FTIndicator
[FTIndicator showNotificationWithTitle:@"Here is a notification title."
message:@"Here is a notification message."];
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
title:@"Here is a notification title."
message:@"Here is a notification message."];
[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
}];
[FTIndicator dismissNotification];
[FTIndicator showProgressWithMessage:@"Here is a progress message."];
// or disable user interactions
[FTIndicator showProgressWithMessage:@"Here is a progress message." userInteractionEnable:NO];
[FTIndicator showSuccessWithMessage:@"Here is a success message."];
// or disable user interactions
[FTIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO];
[FTIndicator showInfoWithMessage:@"Here is a info message."];
// or disable user interactions
[FTIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO];
[FTIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions
[FTIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
[FTIndicator dismissProgress];
[FTIndicator showToastMessage:@"Short Toast."];
[FTIndicator dismissToast];
FTNotificationIndicator
, FTProgressIndicator
, FTToastIndicator
separately[FTNotificationIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
title:@"Here is a notification title."
message:@"Here is a notification message."];
[FTNotificationIndicator showNotificationWithTitle:@"Here is a notification title."
message:@"Here is a notification message."];
[FTNotificationIndicator dismiss];
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message."];
// or disable user interactions
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message." userInteractionEnable:NO];
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message."];
// or disable user interactions
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO];
[FTProgressIndicator showInfoWithMessage:@"Here is a info message."];
// or disable user interactions
[FTProgressIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO];
[FTProgressIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions
[FTProgressIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
[FTProgressIndicator dismiss];
[FTToastIndicator showToastMessage:@"Short Toast."];
[FTToastIndicator dismiss];
FTIndicator
is available under the MIT license. See the LICENSE file for more info.