{"id":18795088,"url":"https://github.com/daisuke-t-jp/llaeasybutton","last_synced_at":"2025-12-30T01:30:15.052Z","repository":{"id":56918704,"uuid":"167650734","full_name":"daisuke-t-jp/LLAEasyButton","owner":"daisuke-t-jp","description":"LLAEasyButton is class for easy use of UIButton.","archived":false,"fork":false,"pushed_at":"2019-04-26T08:31:48.000Z","size":7529,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T12:15:21.436Z","etag":null,"topics":["carthage","cocoapods","swift","uibutton","uibutton-subclass"],"latest_commit_sha":null,"homepage":"","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/daisuke-t-jp.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":"2019-01-26T04:45:50.000Z","updated_at":"2019-11-07T01:22:52.000Z","dependencies_parsed_at":"2022-08-21T04:50:28.416Z","dependency_job_id":null,"html_url":"https://github.com/daisuke-t-jp/LLAEasyButton","commit_stats":null,"previous_names":["daisuke-t-jp/llaswiftyeasybutton"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2FLLAEasyButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2FLLAEasyButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2FLLAEasyButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2FLLAEasyButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daisuke-t-jp","download_url":"https://codeload.github.com/daisuke-t-jp/LLAEasyButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239719538,"owners_count":19685957,"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":["carthage","cocoapods","swift","uibutton","uibutton-subclass"],"created_at":"2024-11-07T21:32:33.048Z","updated_at":"2025-12-30T01:30:14.997Z","avatar_url":"https://github.com/daisuke-t-jp.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/header.png\" width=\"700\"\u003e\u003c/br\u003e\n------\n![Platform](https://img.shields.io/badge/Platform-iOS%2010.0+-blue.svg)\n[![Language Swift%205.0](https://img.shields.io/badge/Language-Swift%205.0-orange.svg)](https://developer.apple.com/swift)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-green.svg)](https://github.com/Carthage/Carthage)\n[![Cocoapods](https://img.shields.io/cocoapods/v/LLAEasyButton.svg)](https://cocoapods.org/pods/LLAEasyButton)\n[![Build Status](https://travis-ci.org/daisuke-t-jp/LLAEasyButton.svg?branch=master)](https://travis-ci.org/daisuke-t-jp/LLAEasyButton)\n\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/demo.gif\" width=\"250\"\u003e\u003c/br\u003e\n\n\n# What is this?\n\n*LLAEasyButton* is class for easy use of UIButton.  \nThe class can set normal/selected color.\nAlso easy use button's label.\n\n\n# Install\n### Carthage\n`github \"daisuke-t-jp/LLAEasyButton\"`\n\n### CocoaPods\n```\nuse_frameworks!\n\ntarget 'target' do\npod 'LLAEasyButton'\nend\n```\n\n\n# Works at Interface Builder\n### 1. Set view\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup0.png\" width=\"600\"\u003e\u003c/br\u003e\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup1.png\" width=\"600\"\u003e\u003c/br\u003e\nOpen Interface Builder.  \nSelect **UIView** and put to superview.  \n(**Not UIButton**)\n\n### 2. Change class\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup2.png\" width=\"600\"\u003e\u003c/br\u003e\nRename UIView’s class name to *LLAEasyButton*.  \n\n### 3. Add label (If you need)\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup3.png\" width=\"600\"\u003e\u003c/br\u003e\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup4.png\" width=\"600\"\u003e\u003c/br\u003e\nIf you need to label.  \nPut UILabel to LLAEasyButton’s subview hierarchy.\n\n### 4. Set IBOutlet\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup5.png\" width=\"600\"\u003e\u003c/br\u003e\nYou set LLAEasyButton IBOutlet on swift code.  \n\n### 5. Connect IBOutlet\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup6.png\" width=\"600\"\u003e\u003c/br\u003e\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup7.png\" width=\"600\"\u003e\u003c/br\u003e\n\u003cimg src=\"https://github.com/daisuke-t-jp/LLAEasyButton/blob/master/doc/IB-setup8.png\" width=\"600\"\u003e\u003c/br\u003e\nInterface Builder object connet to IBOutlet.\n\n\n\n# Usage\n### 1. Set normal/selected color on enable state\n``` swift\nbutton?.colorMapEnable = [.normal: UIColor.init(red: 239/255, green: 154/255, blue: 154/255, alpha: 1.0),\n  .selected: UIColor.init(red: 244/255, green: 67/255, blue: 54/255, alpha: 1.0)]\n```\n\n### 2. Set normal/selected color on disable state\n``` swift\nbutton?.colorMapDisable = [.normal: UIColor.init(red: 239/255, green: 154/255, blue: 154/255, alpha: 1.0),\n  .selected: UIColor.init(red: 244/255, green: 67/255, blue: 54/255, alpha: 1.0)]\n```\n\n### 3. Set button's label text\n``` swift\nbutton?.subviewLabel()?.text = \"button\"\nbutton?.subviewLabel()?.textColor = UIColor.blue\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Fllaeasybutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaisuke-t-jp%2Fllaeasybutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Fllaeasybutton/lists"}