{"id":32315697,"url":"https://github.com/lemonade-hq/lmdfloatinglabeltextfield","last_synced_at":"2025-10-23T10:51:42.247Z","repository":{"id":56918813,"uuid":"116794386","full_name":"lemonade-hq/LMDFloatingLabelTextField","owner":"lemonade-hq","description":"Customisable iOS TextField with floating placeholder","archived":false,"fork":false,"pushed_at":"2018-08-27T10:33:43.000Z","size":6983,"stargazers_count":26,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-23T10:51:38.781Z","etag":null,"topics":["component","ios","lemonade","textfield"],"latest_commit_sha":null,"homepage":null,"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/lemonade-hq.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":"2018-01-09T09:23:38.000Z","updated_at":"2023-12-18T13:33:55.000Z","dependencies_parsed_at":"2022-08-21T04:50:31.049Z","dependency_job_id":null,"html_url":"https://github.com/lemonade-hq/LMDFloatingLabelTextField","commit_stats":null,"previous_names":["lemonade-hq/lmdtextfield"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lemonade-hq/LMDFloatingLabelTextField","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonade-hq%2FLMDFloatingLabelTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonade-hq%2FLMDFloatingLabelTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonade-hq%2FLMDFloatingLabelTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonade-hq%2FLMDFloatingLabelTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemonade-hq","download_url":"https://codeload.github.com/lemonade-hq/LMDFloatingLabelTextField/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonade-hq%2FLMDFloatingLabelTextField/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280606611,"owners_count":26359387,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["component","ios","lemonade","textfield"],"created_at":"2025-10-23T10:51:37.356Z","updated_at":"2025-10-23T10:51:42.239Z","avatar_url":"https://github.com/lemonade-hq.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LMDFloatingLabelTextField\n\n[![CI Status](http://img.shields.io/travis/talthent-l/LMDFloatingLabelTextField.svg?style=flat)](https://travis-ci.org/talthent-l/LMDFloatingLabelTextField)\n[![Version](https://img.shields.io/cocoapods/v/LMDFloatingLabelTextField.svg?style=flat)](http://cocoapods.org/pods/LMDFloatingLabelTextField)\n[![License](https://img.shields.io/cocoapods/l/LMDFloatingLabelTextField.svg?style=flat)](http://cocoapods.org/pods/LMDFloatingLabelTextField)\n[![Platform](https://img.shields.io/cocoapods/p/LMDFloatingLabelTextField.svg?style=flat)](http://cocoapods.org/pods/LMDFloatingLabelTextField)\n\n## Demo\n\n![alt text](https://github.com/lemonade-hq/LMDTextField/blob/master/Screenshots/demo.gif)\n\n## Demo #2\n\n![alt text](https://github.com/lemonade-hq/LMDTextField/blob/master/Screenshots/demo2.gif)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\n### Cocoapods\n\nInstall Cocoapods\n\n```bash\n$ gem install cocoapods\n```\n\nAdd `LMDFloatingLabelTextField` in your `Podfile`.\n\n```ruby\nuse_frameworks!\n\npod 'LMDFloatingLabelTextField'\n```\n\nInstall the pod\n\n```bash\n$ pod install\n```\n\n### Manually\n\nCopy `LMDFloatingLabelTextField` folder to your project. Enjoy.\n\n## Usage\n\n### Interface Builder\n- Drag a `UITextField` to you view, and change its class to `LMDFloatingLabelTextField`\n![alt text](https://github.com/lemonade-hq/LMDTextField/blob/master/Screenshots/class_rename.png)\n\n- Click Attributes Inspector ![alt text](https://github.com/lemonade-hq/LMDTextField/blob/master/Screenshots/attributesInspector.png)\n and notice the new `Progress Bar` section on top\n \n![alt text](https://github.com/lemonade-hq/LMDTextField/blob/master/Screenshots/inspector_attributes.png)\n\n### Code\n- Create a new `LMDFloatingLabelTextField`\n```swift\nlet textfield = LMDFloatingLabelTextField(frame: CGRect(x: 0,\n                                              y: 0,\n                                              width: 200,\n                                              height: 48))\n```\n- Set the values as you like\n```swift\ntextfield.placeholderText = \"Email\"\ntextfield.borderColor = .yellow\ntextfield.errorBorderColor = .cyan\ntextfield.themeColor = .red\n```\n   \n   - Add `LMDFloatingLabelTextField` to the view\n```swift\nself.view.addSubview(textfield)\n```\n   \nThat's it!\n   \n## Customizable Properties\n\n`placeholderText` - Please make sure you put something here. it will look awful without it.\n\n`placeholderFont` - Default is system(14).\n\n`placeholderSizeFactor` - While editing, placeholder will shrink according to this number. deafult is 0.7.\n\n`placeholderTextColor` - Default is - ![#B7B7B7](https://placehold.it/15/B7B7B7/000000?text=+) `#B7B7B7`\n\n`themeColor` - Replaces tintColor. Carret color. default is ![#FF0083](https://placehold.it/15/FF0083/000000?text=+) `#FF0083`\n\n`borderColor` - Border color while editing. default is ![#4a4a4a](https://placehold.it/15/4a4a4a/000000?text=+) `#4a4a4a`\n\n`errorBorderColor` - Border color on error. default is ![#FF0083](https://placehold.it/15/FF0083/000000?text=+) `#FF0083`\n\n`textFieldTextColor` - Replaces textColor. default is ![#4A4A4A](https://placehold.it/15/4A4A4A/000000?text=+) `#4A4A4A`\n\n`disabledTextColor` - TextColor when textfield is disabled. default is ![#B7B7B7](https://placehold.it/15/B7B7B7/000000?text=+) `#B7B7B7`\n\n`disabledBackgroundColor` - Background color when textfield is disabled. default is ![#f7f7f7](https://placehold.it/15/f7f7f7/000000?text=+) `#f7f7f7`\n\n`enabledBackgroundColor` - Background color when textfield is not disabled. default is ![#FFFFFF](https://placehold.it/15/FFFFFF/000000?text=+) `#FFFFFF`\n    \n`error` - Will change border color to `errorBorderColor` regardless of whether the textField is focused or not.\n    \n## Author\n\nTal Cohen, talthent@gmail.com\n\nLEMONADE INC.\n\n## License\n\nLMDFloatingLabelTextField is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonade-hq%2Flmdfloatinglabeltextfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemonade-hq%2Flmdfloatinglabeltextfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonade-hq%2Flmdfloatinglabeltextfield/lists"}