{"id":2482,"url":"https://github.com/Famolus/HTPressableButton","last_synced_at":"2025-08-03T00:31:44.049Z","repository":{"id":15992808,"uuid":"18736003","full_name":"Famolus/HTPressableButton","owner":"Famolus","description":"Flat design pressable button for iOS developers.","archived":false,"fork":false,"pushed_at":"2016-08-25T11:35:09.000Z","size":866,"stargazers_count":859,"open_issues_count":3,"forks_count":77,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-12-06T18:11:26.998Z","etag":null,"topics":["ios","objective-c"],"latest_commit_sha":null,"homepage":"https://famolus.com","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/Famolus.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":"2014-04-13T18:09:17.000Z","updated_at":"2024-10-20T08:24:56.000Z","dependencies_parsed_at":"2022-08-20T06:31:22.633Z","dependency_job_id":null,"html_url":"https://github.com/Famolus/HTPressableButton","commit_stats":null,"previous_names":["herinkc/htpressablebutton"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Famolus%2FHTPressableButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Famolus%2FHTPressableButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Famolus%2FHTPressableButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Famolus%2FHTPressableButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Famolus","download_url":"https://codeload.github.com/Famolus/HTPressableButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510707,"owners_count":17931752,"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":["ios","objective-c"],"created_at":"2024-01-05T20:16:14.842Z","updated_at":"2024-12-06T18:30:29.827Z","avatar_url":"https://github.com/Famolus.png","language":"Objective-C","funding_links":[],"categories":["UI"],"sub_categories":["Button","Other free courses"],"readme":"HTPressableButton\n==============\n\n[![Build Status](https://travis-ci.org/herinkc/HTPressableButton.svg?branch=master)](https://travis-ci.org/herinkc/HTPressableButton)\n[![CocoaPods](https://img.shields.io/cocoapods/dt/HTPressableButton.svg?maxAge=2592000)](https://cocoapods.org/pods/HTPressableButton)\n[![CocoaPods](https://img.shields.io/cocoapods/dm/HTPressableButton.svg?maxAge=2592000)](https://cocoapods.org/pods/HTPressableButton)\n\nHTPressableButton is designed for iOS developers to be able to spend time developing ideas, not building basic buttons. These stylish and flat-designed buttons can easily be modified and are perfect for almost any project. With no worry over color choice, HTPressableButton also includes beautiful color schemes that perfectly suit with your app.\n\n**Compatible with:**  iOS 6.0 and above\n\n**Current Version:** 1.3.3\n\nYou can check out our documentation [here](http://cocoadocs.org/docsets/HTPressableButton/1.3.3/). \nInstallation\n-------------------\nHTPressableButton can be installed via [CocoaPods](http://cocoapods.org/)\n\n```ruby\npod 'HTPressableButton'\n```\n\nYou may also quickly try the HTPressableButton example project with\n\n```ruby\npod try 'HTPressableButton'\n```\n\nHowever, if you are only interested to use the color scheme provided (shown below) then\n\n```ruby\npod 'HTPressableButton/HTColor'\n```\n\nAnother option is to use git submodules or just [download it](https://github.com/herinkc/HTPressableButton/archive/master.zip) and include it in your project manually.\n\n**NOTE:** Please be reminded to add the header files to your project. You may add only the one that you'll use. \n\n```objective-c\n#import \"HTPressableButton.h\"\n#import \"UIColor+HTColor.h\"\n```\n\n\u003cbr\u003e\n\nButton Types\n-------------------\n\n**IMPORTANT:** You must specify the *frame* first. We'd like to know the size of your button first.\n\n###Rectangular Button\n```objective-c\n    //Rectangular grape fruit color button\n    CGRect frame = CGRectMake(30, 150, 260, 50);\n    HTPressableButton *rectButton = [[HTPressableButton alloc] initWithFrame:frame buttonStyle:HTPressableButtonStyleRect];\n    rectButton.buttonColor = [UIColor ht_grapeFruitColor];\n    rectButton.shadowColor = [UIColor ht_grapeFruitDarkColor];\n    [rectButton setTitle:@\"Rect\" forState:UIControlStateNormal];\n    [self.view addSubview:rectButton];\n\n```\n\n![HTPressableButton](https://raw.github.com/herinkc/HTPressableButton/master/READMEImages/RectButtonImage.gif)\n\n\u003cbr\u003e\n\n###Rounded Rectangular Button\n```objective-c\n    // Rounded rectangular default color button\n\tframe = CGRectMake(30, 230, 260, 50);\n    HTPressableButton *roundedRectButton = [[HTPressableButton alloc] initWithFrame:frame buttonStyle:HTPressableButtonStyleRounded];\n    [roundedRectButton setTitle:@\"Rounded\" forState:UIControlStateNormal];\n    [self.view addSubview:roundedRectButton];\n\n```\n\n![HTPressableButton](https://raw.github.com/herinkc/HTPressableButton/master/READMEImages/RoundedRectButtonImage.gif)\n\n\u003cbr\u003e\n\n###Circular Button\n```objective-c\n\t//Circular mint color button\n    frame = CGRectMake(110, 300, 100, 100);\n    HTPressableButton *circularButton = [[HTPressableButton alloc] initWithFrame:frame buttonStyle:HTPressableButtonStyleCircular];\n    circularButton.buttonColor = [UIColor ht_mintColor];\n    circularButton.shadowColor = [UIColor ht_mintDarkColor];\n    [circularButton setDisabledButtonColor:[UIColor ht_sunflowerColor]];\n    [circularButton setTitle:@\"Circular\" forState:UIControlStateNormal];\n    [self.view addSubview:circularButton];\n```\n\n![HTPressableButton](https://raw.github.com/herinkc/HTPressableButton/master/READMEImages/CircularButtonImage.gif)\n\n\u003cbr\u003e\n\n###Disabled Button\nIf you wish to create a disabled button, add:\n```object-c\n\tbuttonNameHere.enabled = NO;\n```\nExample:\n```objective-c\n    //Disabled rounded rectangular button\n    frame = CGRectMake(30, 420, 260, 50);\n    HTPressableButton *disabledRoundedRectButton = [[HTPressableButton alloc] initWithFrame:frame buttonStyle:HTPressableButtonStyleRounded];\n    disabledRoundedRectButton.disabledButtonColor = [UIColor ht_pinkRoseColor];\n    disabledRoundedRectButton.disabledShadowColor = [UIColor ht_pinkRoseDarkColor];\n    disabledRoundedRectButton.alpha = 0.5;\n    disabledRoundedRectButton.enabled = NO;\n    [disabledRoundedRectButton setTitle:@\"DisabledButton\" forState:UIControlStateNormal];\n    [self.view addSubview:disabledRoundedRectButton];\n```\n\n![HTPressableButton](https://raw.github.com/herinkc/HTPressableButton/master/READMEImages/DisabledButtonImage.png)\n\nThe default *alpha* value is 1.0 for all type of buttons. The value can be changed (like the above disabled button) by:\n```objective-c\n\tbuttonNameHere.alpha = 0.5;\n```\n\u003cbr\u003e\n\n**NOTE:** We have set some *default* properties for you. \n\n| Property                     | Values                                           |\n| ---------------------------- |:------------------------------------------------:|\n| Button Type\t\t           | HTPressableButtonStyleRounded\t                  |\n| Corner Radius                | 10.0                                             |\n| Font                         | Avenir                                           |\n| Font Size                    | 18                                               |\n| Shadow Height                | 17% of the button's height\t\t\t              |\n| Button Color                 | ht_jayColor                                      |\n| Button Shadow Color          | ht_jayDarkColor                                  |\n| Disabled Button Color        | ht_mediumColor                                   |\n| Disabled Button Shadow Color | ht_mediumDarkColor                               |\n\n\nIf you wish to set your own shadow height instead of using our default value, add:\n\n```objective-c\t\n\t//Set shadow height of size 10\n\tbuttonNameHere.shadowHeight = 10;\n```\n\nThe different types of buttons have different default value set for its corner radius, you can modify it by:\n\n```objective-c  \n    //Set corner radius to 20.0\n    buttonNameHere.cornerRadius = 20;\n```\n\nTo change the font of the button:\n\n```objective-c  \n    //Set button font\n    buttonNameHere.titleFont = [UIFont fontWithName:@\"Avenir\" size:18];\n```\n\n\n\u003cbr\u003e\n\n###Additional Colors\nYou can freely use the additional colors in the file `UIColors+HTColor` anywhere in your project by:\n```objective-c\n    [UIColor ht_colorNameHere]\n    \n    //Examples\n    [UIColor ht_jayColor]\n    [UIColor ht_pinkRoseColor]\n```\n![HTPressableButton](https://raw.github.com/herinkc/HTPressableButton/master/READMEImages/HTPressableButtonColorScheme.png)\n\n\u003cbr\u003e\u003cbr\u003e\n\nContributors\n--------------\nWelcome contributors! Please don't hesitate to make an issue or pull request :)\n\n####Maintainers\n[![He Rin Kim](https://avatars1.githubusercontent.com/u/3966522?s=80)](https://github.com/herinkc)\n[![Thanakron Tandavas](https://avatars1.githubusercontent.com/u/3419259?s=80)](https://github.com/tandavas)\n\u003cbr\u003e\n####Contributors\n[![Paul Williamson](https://avatars0.githubusercontent.com/u/343450?s=80)](https://github.com/squarefrog)\n[![Ben](https://avatars1.githubusercontent.com/u/2032500?s=80)](https://github.com/bcylin)\n[![Manoj Mahapatra](https://avatars3.githubusercontent.com/u/2066984?s=80)](https://github.com/indideveloper)\n[![Pitiphong Phongpattranont](https://avatars2.githubusercontent.com/u/426153?s=80)](https://github.com/pitiphong-p)\n[![Alexsander Akers](https://avatars3.githubusercontent.com/u/241156?s=80)](https://github.com/a2)\n[![Naji Dmeiri](https://avatars2.githubusercontent.com/u/8139148?s=80)](https://github.com/ndmeiri)\n\n\nShowcase\n--------\nWe would love to see how we became a part of your project. Send us an email, issue, tweet, or etc. and we'll update it here!\n\n\nLicense\n-------------------\nThis project is licensed under the terms of the [MIT license](https://github.com/herinkc/HTPressableButton/blob/master/LICENSE).\n\n\nCredits\n--------\nInspired by:\n\n* [Designmodo](http://designmodo.com/)\n\n* [FlatUIKit](https://github.com/Grouper/FlatUIKit)\n\n* [Erigon](https://dribbble.com/erigon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFamolus%2FHTPressableButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFamolus%2FHTPressableButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFamolus%2FHTPressableButton/lists"}