{"id":2955,"url":"https://github.com/MoZhouqi/KMPlaceholderTextView","last_synced_at":"2025-08-06T15:30:32.895Z","repository":{"id":28140191,"uuid":"31639992","full_name":"MoZhouqi/KMPlaceholderTextView","owner":"MoZhouqi","description":"A UITextView subclass that adds support for multiline placeholder written in Swift.","archived":false,"fork":false,"pushed_at":"2023-05-16T06:40:49.000Z","size":200,"stargazers_count":805,"open_issues_count":11,"forks_count":141,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-29T23:34:42.792Z","etag":null,"topics":["placeholder","placeholdertextview","swift","uitextview"],"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/MoZhouqi.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,"governance":null}},"created_at":"2015-03-04T05:36:37.000Z","updated_at":"2024-10-23T09:11:02.000Z","dependencies_parsed_at":"2022-09-16T00:10:31.548Z","dependency_job_id":"173dd108-48ce-4352-ba1a-ef5574ccfa9e","html_url":"https://github.com/MoZhouqi/KMPlaceholderTextView","commit_stats":{"total_commits":41,"total_committers":10,"mean_commits":4.1,"dds":0.2682926829268293,"last_synced_commit":"12cf915155abaf9b98f2af02a7a325c699294104"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoZhouqi%2FKMPlaceholderTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoZhouqi%2FKMPlaceholderTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoZhouqi%2FKMPlaceholderTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoZhouqi%2FKMPlaceholderTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoZhouqi","download_url":"https://codeload.github.com/MoZhouqi/KMPlaceholderTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228157292,"owners_count":17878262,"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":["placeholder","placeholdertextview","swift","uitextview"],"created_at":"2024-01-05T20:16:27.328Z","updated_at":"2024-12-09T15:30:50.857Z","avatar_url":"https://github.com/MoZhouqi.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Swift","UI [🔝](#readme)","User Interface"],"sub_categories":["TextField \u0026 TextView","UI","Layout","Other free courses","Mobile"],"readme":"KMPlaceholderTextView\n============\n\nA UITextView subclass that adds support for multiline placeholder written in Swift.\n\n![PlaceholderTextView](https://raw.githubusercontent.com/MoZhouqi/KMPlaceholderTextView/master/Screenshots/preview.gif)\n\n## Usage\n\nYou can set the value of the `placeholder` property just like using UITextField.\n\n### Interface Builder\n\n![Storyboard](https://raw.githubusercontent.com/MoZhouqi/KMPlaceholderTextView/master/Screenshots/storyboard-setting.gif)\n\n1. Drag a UITextView object onto the canvas.\n2. In the Identity inspector, set the Custom Class name to `KMPlaceholderTextView`.\n3. In the Attributes inspector, you can change the value of the `placeholder` property directly.\n\n### Code\n\n```swift\nlet placeholderTextView = KMPlaceholderTextView(frame: view.bounds)\nplaceholderTextView.placeholder = \"What's on your mind?\"\nview.addSubview(placeholderTextView)\n```\n## Installation\n\n### CocoaPods\n\nYou can install the latest release version of CocoaPods with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nSimply add the following line to your Podfile:\n\n```ruby\nplatform :ios, '8.0' \nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n  pod 'KMPlaceholderTextView', '~\u003e 1.4.0'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\nIf you are encountering the following warning when using Xcode 8, please make sure to set the Module in the identity inspector of your `KMPlaceholderTextView` in the interface builder to `KMPlaceholderTextView` as well:\n\n\n\u003e warning: IB Designables: Using class UITextView for object with custom class because the class KMPlaceholderTextView does not exist\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate KMPlaceholderTextView into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"MoZhouqi/KMPlaceholderTextView\" \u003e= 1.4\n```\n\n## Requirements\n\n- iOS 7.0+\n- Xcode 10\n\n## License\n\nKMPlaceholderTextView is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMoZhouqi%2FKMPlaceholderTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMoZhouqi%2FKMPlaceholderTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMoZhouqi%2FKMPlaceholderTextView/lists"}