{"id":21413903,"url":"https://github.com/liufengting/ftindicator","last_synced_at":"2025-04-06T01:09:00.134Z","repository":{"id":56910827,"uuid":"64190046","full_name":"liufengting/FTIndicator","owner":"liufengting","description":"A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes support.","archived":false,"fork":false,"pushed_at":"2020-01-03T08:29:11.000Z","size":6915,"stargazers_count":297,"open_issues_count":13,"forks_count":64,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-14T16:14:55.421Z","etag":null,"topics":["cocoapods","hud","notifications","progress","progress-hud","toast"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liufengting.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-26T04:31:38.000Z","updated_at":"2024-03-13T00:20:33.000Z","dependencies_parsed_at":"2022-08-20T20:20:45.572Z","dependency_job_id":null,"html_url":"https://github.com/liufengting/FTIndicator","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liufengting","download_url":"https://codeload.github.com/liufengting/FTIndicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419860,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","hud","notifications","progress","progress-hud","toast"],"created_at":"2024-11-22T18:21:00.890Z","updated_at":"2025-04-06T01:09:00.103Z","avatar_url":"https://github.com/liufengting.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![FTIndicator](https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/FTIndicator.jpg)\n\n# FTIndicator\n\n[![Twitter](https://img.shields.io/badge/twitter-@liufengting-blue.svg?style=flat)](http://twitter.com/liufengting) \n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/liufengting/FTIndicator/master/LICENSE)\n[![Version](https://img.shields.io/cocoapods/v/FTIndicator.svg?style=flat)](http://cocoapods.org/pods/FTIndicator)\n[![Platform](https://img.shields.io/cocoapods/p/FTIndicator.svg?style=flat)](http://cocoapods.org/pods/FTIndicator)\n[![Download](https://img.shields.io/cocoapods/dt/FTIndicator.svg?maxAge=2592000)](http://cocoapods.org/pods/FTIndicator)\n[![CocoaPods](https://img.shields.io/cocoapods/at/FTIndicator.svg?maxAge=2592000)](http://cocoapods.org/pods/FTIndicator)\n[![CocoaPods](https://img.shields.io/cocoapods/metrics/doc-percent/FTIndicator.svg?maxAge=2592000)](http://cocoapods.org/pods/FTIndicator)\n[![CI Status](http://img.shields.io/travis/liufengting/FTIndicator.svg?style=flat)](https://travis-ci.org/liufengting/FTIndicator)\n[![GitHub stars](https://img.shields.io/github/stars/liufengting/FTIndicator.svg)](https://github.com/liufengting/FTIndicator/stargazers)\n\n\nA 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.\n\n\n# 3 IN 1\n\n * If you want use all three of the indicators, use `FTIndicator` .\n * Also, `FTNotificationIndicator`, `FTProgressIndicator` and `FTToastIndicator` are able to work separately. Use them all your will.\n\n---\n\n\u003e `FTIndicator`\n\u003e\u003e `FTNotificationIndicator`\n\u003e\u003e `FTProgressIndicator`\n\u003e\u003e `FTToastIndicator`\n\n---\n\n\n\n# ScreenShots\n\n## Portrait\n\n| Style\t| Light\t| Dark\t|\n|:-------------:|:-------------:|:-------------:|\n| Notification | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/notification_L_P.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/notification_D_P.jpg\" width=\"300\"/\u003e |\n| Progress | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/progress_L_P.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/progress_D_P.jpg\" width=\"300\"/\u003e |\n| Toast | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/toast_L_P.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Portriat/toast_D_P.jpg\" width=\"300\"/\u003e |\n\n## Landscape\n\n| Style\t| Light\t| Dark\t|\n|:-------------:|:-------------:|:-------------:|\n| Notification | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/notification_L_L.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/notification_D_L.jpg\" width=\"300\"/\u003e |\n| Progress | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/progress_L_L.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/progress_D_L.jpg\" width=\"300\"/\u003e |\n| Toast | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/toast_L_L.jpg\" width=\"300\"/\u003e | \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTIndicator/ScreenShots/Landscape/toast_D_L.jpg\" width=\"300\"/\u003e |\n\n\n \n\n# Installation\n\n## Manually\n\n* clone this repo.\n* Simply drop the '/FTIndicator' folder into your project.\n* import 'FTIndicator.h'\n\n## CocoaPods\n\n`FTIndicator` is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n\n⚠️ Notice：\n\nSyntax error fix in 1.2.2: Syntax error fixed. May cause error to your projects, update it carefully.\n\n\n⚠️ Notice：\n\nmajor fix in 1.2.0: progress HUD doesn't show when app starts\n\n`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:\n\n```ruby\n    pod 'FTIndicator/FTNotificationIndicator'\n    pod 'FTIndicator/FTProgressIndicator'\n    pod 'FTIndicator/FTToastIndicator'\n```\n\n\n### Use FTIndicator, all three of them \n\n* FTIndicator, 3 in 1 \n\n```ruby\npod 'FTIndicator'\n```\n\n### Use separately\n\n* FTNotificationIndicator\n\n~~pod 'FTNotificationIndicator~~ is not available anymore, use this:\n\n```ruby\n\n# use as a subPod\n\npod 'FTIndicator/FTNotificationIndicator'\n\n```\n\n* FTProgressIndicator\n\n~~pod \"FTProgressIndicator\"~~ is not available anymore, use this:\n\n\n```ruby\n\n# use as a subPod\n\npod 'FTIndicator/FTProgressIndicator'\n\n```\n\n* FTToastIndicator\n\n~~pod 'FTToastIndicator'~~ is not available anymore, use this:\n\n```ruby\n\n# use as a subPod\n\npod 'FTIndicator/FTToastIndicator'\n\n```\n\n# Usage\n\n## Use `FTIndicator`\n\n### Notification\n\n* show without image\n\n```objective-c\n[FTIndicator showNotificationWithTitle:@\"Here is a notification title.\"\n\t\t\t\t\t\t\t\tmessage:@\"Here is a notification message.\"]; \n```\n\n* show with image\n\n```objective-c\n[FTIndicator showNotificationWithImage:[UIImage imageNamed:@\"maps_icon\"]\n\t\t\t\t\t\t\t\t   title:@\"Here is a notification title.\"\n                               message:@\"Here is a notification message.\"]; \n```\n\n* show with image, with tap handler and completion handler\n\n```objective-c\n[FTIndicator showNotificationWithImage:[UIImage imageNamed:@\"maps_icon\"]\n                                 title:@\"Here is a notification title.\"\n                               message:@\"Here is a notification message. Try to tap and see tap handling or do nothing to see completion\"\n                            tapHandler:^{\n\t\t\t\t\t\t\t// handle user tap\n                            } completion:^{\n\t\t\t\t\t\t\t// handle completion\n                            }];\n```\n\n\n* dismiss manually\n\n```objective-c\n[FTIndicator dismissNotification];\n```\n\n### Progress\n\n* show progress\n\n```objective-c\n\n[FTIndicator showProgressWithMessage:@\"Here is a progress message.\"];  \n\n```\n\n```objective-c\n\n// or disable user interactions\n\n[FTIndicator showProgressWithMessage:@\"Here is a progress message.\" userInteractionEnable:NO]; \n\n```\n\n* show success\n\n```objective-c\n\n[FTIndicator showSuccessWithMessage:@\"Here is a success message.\"]; \n\n```\n\n```objective-c\n\n// or disable user interactions\n\n[FTIndicator showSuccessWithMessage:@\"Here is a success message.\" userInteractionEnable:NO]; \n\n```\n\n* show info\n\n```objective-c\n\n[FTIndicator showInfoWithMessage:@\"Here is a info message.\"]; \n\n```\n\n```objective-c\n\n// or disable user interactions\n\n[FTIndicator showInfoWithMessage:@\"Here is a info message.\" userInteractionEnable:NO]; \n\n```\n\t\n* show error\n\n```objective-c\n\n[FTIndicator showErrorWithMessage:@\"Here is a error message.\"];\n\n```\n\n```objective-c\n\n// or disable user interactions\n\n[FTIndicator showErrorWithMessage:@\"Here is a error message.\" userInteractionEnable:NO];\n\n```\n\n* dismiss manually\n\n```objective-c\n[FTIndicator dismissProgress];\n```\n\n### Toast\n\n* show with image\n\n```objective-c\n[FTIndicator showToastMessage:@\"Short Toast.\"];  \n```\n\t\t\t\t\t\t\t\t\n* dismiss manually\n\n```objective-c\n[FTIndicator dismissToast];\n```\n\n\n## Use `FTNotificationIndicator`, `FTProgressIndicator`, `FTToastIndicator` separately\n\n### FTNotificationIndicator\n\n* show with image\n\n```objective-c\n[FTNotificationIndicator showNotificationWithImage:[UIImage imageNamed:@\"maps_icon\"]\n                                             title:@\"Here is a notification title.\"\n                                           message:@\"Here is a notification message.\"]; \n```\n\n* show without image\n\n```objective-c\n[FTNotificationIndicator showNotificationWithTitle:@\"Here is a notification title.\"\n\t\t\t\t\t\t\t\t\t\t     message:@\"Here is a notification message.\"]; \n```\n\t\t\t\t\t\t\t\t\n* dismiss manually\n\n```objective-c\n[FTNotificationIndicator dismiss];\n```\n\n### FTProgressIndicator\n\n* show progress\n\n```objective-c\n[FTProgressIndicator showProgressWithmessage:@\"Here is a progress message.\"]; \n```\n\n```objective-c\n// or disable user interactions\n[FTProgressIndicator showProgressWithmessage:@\"Here is a progress message.\" userInteractionEnable:NO]; \n```\n\n* show success\n\n```objective-c\n[FTProgressIndicator showSuccessWithMessage:@\"Here is a success message.\"]; \n```\n\n```objective-c\n// or disable user interactions\n[FTProgressIndicator showSuccessWithMessage:@\"Here is a success message.\" userInteractionEnable:NO]; \n```\n\n* show info\n\n```objective-c\n[FTProgressIndicator showInfoWithMessage:@\"Here is a info message.\"]; \n```\n\n```objective-c\n// or disable user interactions\n[FTProgressIndicator showInfoWithMessage:@\"Here is a info message.\" userInteractionEnable:NO]; \n```\n\t\n* show error\n\n```objective-c\n[FTProgressIndicator showErrorWithMessage:@\"Here is a error message.\"];\n```\n\n```objective-c\n// or disable user interactions\n[FTProgressIndicator showErrorWithMessage:@\"Here is a error message.\" userInteractionEnable:NO];\n```\n\n* dismiss manually\n\n```objective-c\n[FTProgressIndicator dismiss];\n```\n\t\t\t\t\t\t\t\n### FTToastIndicator\n\n* show with image\n\n```objective-c\n[FTToastIndicator showToastMessage:@\"Short Toast.\"];  \n```\n\t\t\t\t\t\t\t\t\n* dismiss manually\n\n```objective-c\n[FTToastIndicator dismiss];\n```\n\n# CHANGELOG\n\n[CHANGELOG](https://github.com/liufengting/FTIndicator/blob/master/CHANGELOG.md)\n\n# License\n\n`FTIndicator` is available under the MIT license. See the LICENSE file for more info. \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufengting%2Fftindicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliufengting%2Fftindicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufengting%2Fftindicator/lists"}