{"id":15038813,"url":"https://github.com/rlaguilar/multilinetextfield","last_synced_at":"2025-04-10T00:05:48.853Z","repository":{"id":62448173,"uuid":"106618589","full_name":"rlaguilar/MultilineTextField","owner":"rlaguilar","description":"Multiline Text Field - UITextField with multiple lines or UITextView with placeholder","archived":false,"fork":false,"pushed_at":"2020-02-08T15:18:55.000Z","size":178,"stargazers_count":44,"open_issues_count":2,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:05:42.307Z","etag":null,"topics":["cocoapods","ios","multiline","placeholder","placeholdertextview","swift4","uitextfield","uitextview"],"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/rlaguilar.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-10-11T23:06:48.000Z","updated_at":"2025-01-10T05:45:52.000Z","dependencies_parsed_at":"2022-11-01T23:08:28.620Z","dependency_job_id":null,"html_url":"https://github.com/rlaguilar/MultilineTextField","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaguilar%2FMultilineTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaguilar%2FMultilineTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaguilar%2FMultilineTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaguilar%2FMultilineTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlaguilar","download_url":"https://codeload.github.com/rlaguilar/MultilineTextField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131319,"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":["cocoapods","ios","multiline","placeholder","placeholdertextview","swift4","uitextfield","uitextview"],"created_at":"2024-09-24T20:40:18.601Z","updated_at":"2025-04-10T00:05:48.827Z","avatar_url":"https://github.com/rlaguilar.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MultilineTextField\n\n[![CI Status](http://img.shields.io/travis/rlaguilar/MultilineTextField.svg?style=flat)](https://travis-ci.org/rlaguilar/MultilineTextField)\n[![Version](https://img.shields.io/cocoapods/v/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField)\n[![License](https://img.shields.io/cocoapods/l/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField)\n[![Platform](https://img.shields.io/cocoapods/p/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField)\n\nThis  can be seen as a `UITextField` with multiple lines, but under the hood it is just a `UITextView` which aims to provide many of the functionalities currently available in the `UITextField` class. Currently the following functionalities are supported:\n\n+ Multiple lines\n+ Customizable left view\n+ Customizable placeholder text\n\n## Usage\n\n### Via storyboards\n\nAdd a `UITextView` and set its custom class to `MultilineTextField`. From the storyboard you can customize the placeholder text and also an image to be shown at the left of the field text.\n\n### Via code\n\nFirst of all you have to import the library  `import MultilineTextField`.\n\nAfter that just create an instance of the view an customize its properties:\n\n```swift\nlet textField = MultiplelineTextField(frame: textFieldFrame)\ntextField.leftView = UIImageView(image: image)\n// or use the convenience property:\n// textField.leftImage to assign an image directly\n\n// below are properties that can be optionally customized\ntextField.placeholder = \"This is my placeholder\"\ntextField.placeholderColor = UIColor.red\ntextField.isPlaceholderScrollEnabled = true\ntextField.leftViewOrigin = CGPoint(x: 8, y: 8)\nsomeView.addSubview(textField)\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\nIt requires Swift 4 and Xcode 9 or above\n\n## Installation\n\nMultilineTextField is available through Swift Package Manager and also [CocoaPods](http://cocoapods.org).\n\n### Swift Package Manager\nSelect File \u003e Swift Packages \u003e Add Package Dependency. Enter `https://github.com/rlaguilar/MultilineTextField.git` in the \"Choose Package Repository\" dialog.\n\n### CocoaPods\nSimply add the following line to your Podfile:\n\n```ruby\npod 'MultilineTextField'\n```\n\n## Author\n\nReynaldo Aguilar, [rlaguilar](https://twitter.com/rlaguilar_)\n\n## License\n\nMultilineTextField 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%2Frlaguilar%2Fmultilinetextfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlaguilar%2Fmultilinetextfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlaguilar%2Fmultilinetextfield/lists"}