{"id":18603724,"url":"https://github.com/abdullahselek/forcetouchactions","last_synced_at":"2026-03-02T22:12:22.216Z","repository":{"id":56911651,"uuid":"66110057","full_name":"abdullahselek/ForceTouchActions","owner":"abdullahselek","description":"Objective-C wrapper for iOS Home Screen Quick Actions","archived":false,"fork":false,"pushed_at":"2016-10-08T16:03:37.000Z","size":1212,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T02:02:05.946Z","etag":null,"topics":["3d-touch","force-touch","ios"],"latest_commit_sha":null,"homepage":null,"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/abdullahselek.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-08-19T20:24:41.000Z","updated_at":"2022-06-19T16:37:55.000Z","dependencies_parsed_at":"2022-08-20T20:20:43.867Z","dependency_job_id":null,"html_url":"https://github.com/abdullahselek/ForceTouchActions","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/abdullahselek/ForceTouchActions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FForceTouchActions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FForceTouchActions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FForceTouchActions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FForceTouchActions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/ForceTouchActions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FForceTouchActions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266160283,"owners_count":23885881,"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":["3d-touch","force-touch","ios"],"created_at":"2024-11-07T02:15:14.690Z","updated_at":"2026-03-02T22:12:22.177Z","avatar_url":"https://github.com/abdullahselek.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/abdullahselek/ForceTouchActions.svg)](https://travis-ci.org/abdullahselek/ForceTouchActions.svg)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ForceTouchActions.svg)](https://img.shields.io/cocoapods/v/ForceTouchActions.svg)\n[![Coverage Status](https://coveralls.io/repos/github/abdullahselek/ForceTouchActions/badge.svg?branch=master)](https://coveralls.io/github/abdullahselek/ForceTouchActions?branch=master)\n\n# ForceTouchActions\nObjective-C wrapper for iOS Home Screen Quick Actions\n\nForceTouchActions wrapper creates dynamic quick actions. You can add localizable shortcuts dynamically in runtime and handle them with type.\n\n# Requirements\n\niOS 9.0+\n\n# CocoaPods\n\nCocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```objc\n$ gem install cocoapods\n```\n\nTo integrate ForceTouchActions into your Xcode project using CocoaPods, specify it in your Podfile:\n\n```objc\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'ForceTouchActions', '0.2'\nend\n```\n\nThen, run the following command:\n\n```objc\n$ pod install\n```\n\n## Usage\n\n```objc\n#import \u003cForceTouchActions/ForceTouchActions.h\u003e\n```\n\n### Create shortcuts and add an array of shortcuts\n\n```objc\nFTShortcut *shortcutFavorite = [[FTShortcut alloc] initWithType:UIApplicationShortcutIconTypeFavorite\n                                                          title:@\"Add Favorite\"\n                                                       subtitle:@\"Favorite\"];\nFTShortcut *shortcutCompose = [[FTShortcut alloc] initWithType:UIApplicationShortcutIconTypeCompose\n                                                         title:@\"Compose Mail\"\n                                                      subtitle:@\"Mail\"\n                                                      iconName:@\"apple_black.png\"];\nNSArray\u003cFTShortcut *\u003e *shortcuts = @[shortcutFavorite, shortcutCompose];\n```\n\n### Initiate ForceTouchActions with parameters to install the shortcuts\n\n```objc\nUIViewController *rootViewController = self.window.rootViewController;\nNSString *bundleIdentifier = [NSBundle mainBundle].bundleIdentifier;\nself.forceTouchActions = [[FTActions alloc] initWithApplication:[UIApplication sharedApplication]\n                                                       delegate:rootViewController\n                                               bundleIdentifier:bundleIdentifier\n                                                      shortcuts:shortcuts\n                                                  launchOptions:launchOptions];\n```\n\n### Add more shortcuts\n\n```objc\n- (void)applicationDidEnterBackground:(UIApplication *)application\n{\n  FTShortcut *shortcutLocation = [[FTShortcut alloc] initWithType:UIApplicationShortcutIconTypeLocation\n                                                            title:@\"Location\"\n                                                         subtitle:nil];\n  [self.forceTouchActions addShortcut:shortcutLocation application:application];\n}\n```\n\n### Handle action shortcuts on AppDelegate\n\n```objc\n- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler\n{\n    if (!self.forceTouchActions)\n    {\n        completionHandler(NO);\n        return;\n    }\n    UIViewController *rootViewController = self.window.rootViewController;\n    if (!rootViewController)\n    {\n        completionHandler(NO);\n        return;\n    }\n    completionHandler([self.forceTouchActions handleWithDelegate:rootViewController shortcutItem:shortcutItem]);\n}\n```\n\n### Add FTActionsSupport protocol to your viewcontroller\n\n```objc\n@interface ViewController : UIViewController\u003cFTActionsSupport\u003e\n```\n\n### handle in\n```objc\n- (void)prepareForTouchActionWithItem:(UIApplicationShortcutItem *)shortcutItem\n```\n\n# License\nMIT License\n\nCopyright (c) 2016 Abdullah Selek\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fforcetouchactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Fforcetouchactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fforcetouchactions/lists"}