{"id":15038558,"url":"https://github.com/jogendra/jsbutton","last_synced_at":"2025-04-09T23:41:03.300Z","repository":{"id":56916460,"uuid":"98917986","full_name":"jogendra/JSButton","owner":"jogendra","description":"A fully customisable swift subclass on UIButton which allows you to create beautiful buttons without writing any line of code.","archived":false,"fork":false,"pushed_at":"2018-04-06T21:27:47.000Z","size":193,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T09:19:53.693Z","etag":null,"topics":["apple","attributes-inspector","cocoapods","identity-inspector","ios","ios-app","ios-ui","labels","storyboard","swift","swift-3","swift-language","swift4","xcode"],"latest_commit_sha":null,"homepage":"https://jogendra.github.io/","language":"Swift","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/jogendra.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":"2017-07-31T18:33:39.000Z","updated_at":"2022-05-09T13:11:50.000Z","dependencies_parsed_at":"2022-08-20T21:20:20.808Z","dependency_job_id":null,"html_url":"https://github.com/jogendra/JSButton","commit_stats":null,"previous_names":["imjog/jsbutton"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogendra%2FJSButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogendra%2FJSButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogendra%2FJSButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogendra%2FJSButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jogendra","download_url":"https://codeload.github.com/jogendra/JSButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131468,"owners_count":21052819,"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":["apple","attributes-inspector","cocoapods","identity-inspector","ios","ios-app","ios-ui","labels","storyboard","swift","swift-3","swift-language","swift4","xcode"],"created_at":"2024-09-24T20:38:53.852Z","updated_at":"2025-04-09T23:41:03.280Z","avatar_url":"https://github.com/jogendra.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSButton\n[![Version](https://img.shields.io/cocoapods/v/JSButton.svg?style=flat)](http://cocoapods.org/pods/JSButton)\n[![License](https://img.shields.io/cocoapods/l/JSButton.svg?style=flat)](http://cocoapods.org/pods/JSButton)\n[![Platform](https://img.shields.io/cocoapods/p/JSButton.svg?style=flat)](http://cocoapods.org/pods/JSButton)\n![Language](https://img.shields.io/badge/language-Swift%203-orange.svg)\n[![Twitter](https://img.shields.io/badge/twitter-@imjog24-blue.svg?style=flat)](https://twitter.com/imjog24)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n\u003cimg src=\"https://github.com/imjog/JSButton/blob/master/Example/jsbuttonss.png\" width=\"300\"\u003e\n\n## Demo\n\n```bash\n$ pod try JSButton\n```\n\n...or clone this repo and build and run/test the `JSButton` project in Xcode to see `JSButton` in action. If you don't have [CocoaPods](http://cocoapods.org) installed, grab it with `[sudo] gem install cocoapods`.\n\n```bash\n$ cd Example\n$ pod install\n$ open JSButton.xcworkspace\n```\n\n## Requirements\n- iOS 8.3+\n- Xcode 9.0\n- Swift 4.0\n\n## Installation\n\nJSButton is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"JSButton\"\n```\n### Manual Installation\n\nJust drag the `JSButton.swift` files into your project.\n\n### IBDesignable\n\n`JSButton` includes `IBInspectable` annotations to enable configuring the label inside Interface Builder. However, if you see these warnings when building...\n\n```\nIB Designables: Failed to update auto layout status: Failed to load designables from path (null)\nIB Designables: Failed to render instance of JSButton: Failed to load designables from path (null)\n```\n\n...then you are likely using `JSButton` as a static library, which does not support IB annotations. Some workarounds include:\n\n- Install `JSButton` as a dynamic framework using CocoaPods with `use_frameworks!` in your `Podfile`, or with Carthage\n- Install `JSButton` by dragging its source files to your project\n\n## Usage\n### Creating a view from the storyboard\n\n- If you already have a Label where you want to use then set it's `class` to `JSButton` in identity inspector.\n\n- Or drag a **Button** from object library and then change it's `class` to `JSButton` in identity inspector.\n\n- Set the `module` property to `JSButton`.\n\n\u003cimg\nsrc='https://github.com/imjog/JSButton/blob/master/Example/jsbuttonclass.png' width='260' alt='Add JSButton to storyboard'\u003e\n\n- Customize the view properties in the attributes inspector.\n\n\u003cimg\nsrc='https://github.com/imjog/JSButton/blob/master/Example/jsbuttondesignable.png' width='360' alt='Attributes inspector'\u003e\n\u003cimg\nsrc='https://github.com/imjog/JSButton/blob/master/Example/jsbutton1.0.0-features.png' width='360' alt='Attributes inspector'\u003e\n\n### Add action to button\nTo add action to your button just use `.action` you dont have to add Target and then handler function.\n```swift\nyourButton.action {\n  print(\"Button Pressed!\")\n}\n```\n\n## Author\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n     \u003cimg src=\"https://avatars2.githubusercontent.com/u/20956124?s=400\u0026u=01fab3fc9bb3d2ee799e314d3fe23c54d1deeb07\u0026v=4\" width=\"180\"/\u003e\n     \n     Jogendra Singh\n\n\u003cp align=\"center\"\u003e\n\u003ca href = \"https://github.com/imjog\"\u003e\u003cimg src = \"http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg\" width=\"36\" height = \"36\"/\u003e\u003c/a\u003e\n\u003ca href = \"https://twitter.com/imjog24\"\u003e\u003cimg src = \"https://www.shareicon.net/download/2016/07/06/107115_media.svg\" width=\"36\" height=\"36\"/\u003e\u003c/a\u003e\n\u003ca href = \"https://www.linkedin.com/in/jogendrasingh24/\"\u003e\u003cimg src = \"http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg\" width=\"36\" height=\"36\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003c/td\u003e\n\u003c/tr\u003e \n  \u003c/table\u003e\n\n## What's next\n\n- Any suggestions?\n\n## Contribution\n\n- If you found a **bug**, open an **issue**\n- If you have a **feature request**, open an **issue**\n- If you want to **contribute**, submit a **pull request**\n- If you have any issue or want **help**, please drop me a mail on jogendra.iitbhu@gmail.com\n\n## License\n\nJSButton is available under the MIT license. See the [LICENSE](https://github.com/imjog/JSButton/blob/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogendra%2Fjsbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjogendra%2Fjsbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogendra%2Fjsbutton/lists"}