{"id":15038421,"url":"https://github.com/anelad/logintextfield","last_synced_at":"2025-04-10T01:23:12.429Z","repository":{"id":56920008,"uuid":"114147570","full_name":"anelad/LoginTextField","owner":"anelad","description":"A tiny UITextField subclass to use in login / registration forms. ","archived":false,"fork":false,"pushed_at":"2018-01-07T03:52:00.000Z","size":2601,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T16:50:26.226Z","etag":null,"topics":["form","ios","loginform","swfit","swift-4","swift4","textfield","tiny","validation-ready"],"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/anelad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-13T17:06:31.000Z","updated_at":"2021-11-26T05:08:40.000Z","dependencies_parsed_at":"2022-08-21T04:20:22.155Z","dependency_job_id":null,"html_url":"https://github.com/anelad/LoginTextField","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anelad%2FLoginTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anelad%2FLoginTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anelad%2FLoginTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anelad%2FLoginTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anelad","download_url":"https://codeload.github.com/anelad/LoginTextField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138551,"owners_count":21053872,"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":["form","ios","loginform","swfit","swift-4","swift4","textfield","tiny","validation-ready"],"created_at":"2024-09-24T20:38:29.011Z","updated_at":"2025-04-10T01:23:12.404Z","avatar_url":"https://github.com/anelad.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoginTextField\n\n[![Version](https://img.shields.io/cocoapods/v/LoginTextField.svg?style=flat)](http://cocoapods.org/pods/LoginTextField)\n[![License](https://img.shields.io/cocoapods/l/LoginTextField.svg?style=flat)](http://cocoapods.org/pods/LoginTextField)\n[![Platform](https://img.shields.io/cocoapods/p/LoginTextField.svg?style=flat)](http://cocoapods.org/pods/LoginTextField)\n\nLoginTextField is a subclass of UITextField. \n\nUsing LoginTextField, you can easily set images to the left of the field. It has a seperator between the field's text and left image. If your field has \"secure text entry\" option, it automatically displays a \"show/hide password\" button in it.\n\nLoginTextField's almost all subs can change its color, including the placeholder.\n\nIt has built-in support for validations. All you need to call `handleError(isValid:)` function. You can do validation easily using [Validator](https://github.com/adamwaite/Validator) by Adam Waite.\n\n![](/READMEAssets/LoginTextField.gif)\n\n## Features\n* All variables are bound to the storyboards/.xibs via IBInspectables. \n* Built-in error showing function.\n* You can change the color of all subs.\n* Very tiny.\n\n## Usage\n\nYou can initialize LoginTextField programmatically or in a storyboard/.xib.\n\n\u003e If you are using storyboard or .xib file, you should set `borderStyle` to `.none`. Otherwise you might experience unexpected behaviours, especially with corder radius.\n\nIf you are using storyboards/.xibs you can set all the variables using interface builder.\n\nIf you are initializing the calss programmatically, these are your todo's:\n\n\n### Initialization\n```swift\nlet field = LoginTextField.init(frame: CGRect.zero)   //set your own rect.\n```\n\n### Left Image\n```swift\nfield.image = UIImage...\n```\n\n### Left Image and \"show/hide password button\" Color\n```swift\nfield.defaultColor = UIColor...\n```\n\n### Placeholder Color\n```swift\nfield.placeholderColor = UIColor...\n```\n\n### Error\n```swift\nfield.errorBorderWidth = CGFloat...\nfield.errorColor = UIColor...   //if you will use handleError(isValid:) function, you should specify an error color for validation errors. This color is used when handleError(isValid:) return false.\n```\n\n### Seperator Line Color\n```swift\nfield.seperatorLineColor = UIColor...\n```\n\n### Corner Radius\n```swift\nfield.cornerRadius = CGFloat...\n```\n\n### Border\n```swift\nfield.borderWidth = CGFloat...\nfield.borderColor = UIColor...\n```\n\n### Handling Validation Errors\n```swift\nfield.handleError(isValid: ....)   //this will change the left image color, the seperator line color and the border color.\n```\n\n## Requirements\nLoginTextField requires min version of `iOS10` and `Swift4`\n\n## Installation\n\n### CocoaPods\nLoginTextField is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'LoginTextField'\n```\n\n## Author\nArda Oğul Üçpınar, info@ardaucpinar.com\n\n## Contribution\nAny contributions and suggestions are most welcome! Please update the README with any new features. Thanks!\n\n## License\nLoginTextField 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%2Fanelad%2Flogintextfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanelad%2Flogintextfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanelad%2Flogintextfield/lists"}