{"id":15028364,"url":"https://github.com/devxoul/uitextview-placeholder","last_synced_at":"2025-05-15T11:03:02.112Z","repository":{"id":24424286,"uuid":"27825475","full_name":"devxoul/UITextView-Placeholder","owner":"devxoul","description":"A missing placeholder for UITextView","archived":false,"fork":false,"pushed_at":"2020-10-20T08:49:23.000Z","size":88,"stargazers_count":1476,"open_issues_count":27,"forks_count":259,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-29T17:50:02.458Z","etag":null,"topics":["objective-c","placeholder","uitextview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/devxoul.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":"2014-12-10T15:18:38.000Z","updated_at":"2024-10-29T16:17:10.000Z","dependencies_parsed_at":"2022-08-07T11:01:03.117Z","dependency_job_id":null,"html_url":"https://github.com/devxoul/UITextView-Placeholder","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FUITextView-Placeholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FUITextView-Placeholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FUITextView-Placeholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FUITextView-Placeholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxoul","download_url":"https://codeload.github.com/devxoul/UITextView-Placeholder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248911929,"owners_count":21182179,"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":["objective-c","placeholder","uitextview"],"created_at":"2024-09-24T20:08:08.704Z","updated_at":"2025-04-14T15:54:24.496Z","avatar_url":"https://github.com/devxoul.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"UITextView+Placeholder\n======================\n\n[![Build Status](https://travis-ci.org/devxoul/UITextView-Placeholder.svg?branch=master)](https://travis-ci.org/devxoul/UITextView-Placeholder)\n[![CocoaPods](http://img.shields.io/cocoapods/v/UITextView+Placeholder.svg?style=flat)](http://cocoapods.org/?q=name%3AUITextView%2BPlaceholder)\n\nA missing placeholder for UITextView.\n\n\nInstallation\n------------\n\nUse [CocoaPods](http://cocoapods.org).\n\n```ruby\npod 'UITextView+Placeholder'\n```\n\n\nUsage\n-----\n\n- **Import Dynamic Framework**:\n\n    e.g. If you're using CocoaPods with `use_frameworks!` flag.\n\n    ```objc\n    @import UITextView_Placeholder;\n    ```\n    \n- **Import Static Library**:\n\n    ```objc\n    #import \u003cUITextView+Placeholder/UITextView+Placeholder.h\u003e\n    ```\n\nThen create `UITextView` and set `placeholder`.\n\n- **Implement Objective-C**:\n\n    ```objc\n    UITextView *textView = [[UITextView alloc] init];\n    textView.placeholder = @\"How are you?\";\n    textView.placeholderColor = [UIColor lightGrayColor]; // optional\n    textView.attributedPlaceholder = ... // NSAttributedString (optional)\n    ```\n\n- **Implement Swift**:\n\n    ```swift\n    let textView = UITextView()\n    textView.placeholder = \"How are you?\"\n    textView.placeholderColor = UIColor.lightGray // optional\n    textView.attributedPlaceholder = ... // NSAttributedString (optional)\n    ```\n\nCongratulations! You're done. 🎉\n\n\nLicense\n-------\n\nUITextView+Placeholder is under MIT license. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fuitextview-placeholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxoul%2Fuitextview-placeholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fuitextview-placeholder/lists"}