{"id":13637830,"url":"https://github.com/onl1ner/STTextView","last_synced_at":"2025-04-19T17:31:53.036Z","repository":{"id":56921984,"uuid":"285753451","full_name":"onl1ner/STTextView","owner":"onl1ner","description":"📝 STTextView is a light-weight library that adds a placeholder to the UITextView.","archived":false,"fork":false,"pushed_at":"2020-11-07T13:18:39.000Z","size":252,"stargazers_count":43,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T20:53:37.826Z","etag":null,"topics":["carthage","cocoapods","interface-builder","ios","library","placeholder","placeholder-text","swift","swift-framework","swift-library","text","textview","textview-placeholder","ui","uikit","uitextview","uitextview-placeholder","xcode"],"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/onl1ner.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":"2020-08-07T06:18:44.000Z","updated_at":"2024-08-05T06:17:59.000Z","dependencies_parsed_at":"2022-08-20T22:20:25.260Z","dependency_job_id":null,"html_url":"https://github.com/onl1ner/STTextView","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onl1ner%2FSTTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onl1ner%2FSTTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onl1ner%2FSTTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onl1ner%2FSTTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onl1ner","download_url":"https://codeload.github.com/onl1ner/STTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223804956,"owners_count":17205829,"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":["carthage","cocoapods","interface-builder","ios","library","placeholder","placeholder-text","swift","swift-framework","swift-library","text","textview","textview-placeholder","ui","uikit","uitextview","uitextview-placeholder","xcode"],"created_at":"2024-08-02T01:00:34.779Z","updated_at":"2024-11-09T08:30:22.223Z","avatar_url":"https://github.com/onl1ner.png","language":"Swift","funding_links":[],"categories":["Content"],"sub_categories":["Text View"],"readme":"\u003cimg align=\"right\" src=\"https://github.com/onl1ner/onl1ner/blob/master/Resources/STTextView/logo.gif?raw=true\" width=\"225\"/\u003e\n\n\u003cp\u003e\u003ch1 align=\"left\"\u003eSTTextView\u003c/h1\u003e\u003c/p\u003e\n\n![](https://cocoapod-badges.herokuapp.com/p/STTextView/badge.png)\n![](https://img.shields.io/badge/iOS-10.0%2B-blue)\n![](https://cocoapod-badges.herokuapp.com/v/STTextView/badge.png)\n![](https://cocoapod-badges.herokuapp.com/l/STTextView/badge.(png|svg))\n![](https://img.shields.io/badge/Swift-5-orange?logo=Swift\u0026logoColor=white)\n![](https://img.shields.io/github/last-commit/onl1ner/STTextView)\n\n**STTextView** – easy and clean library written in Swift. The framework adds a custom UITextView subclass with a needed ``placeholder`` property.\n\n\n## Requirements\n- iOS 10.0 or above.\n\nFramework is compatible with Swift 5.\n\n## Installation\n\n``STTextView`` is available through [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage) and [Swift Package Manager](https://github.com/apple/swift-package-manager)\n\n### CocoaPods\n- Add the following line into your Podfile:\n\n  ```ruby\n  pod 'STTextView'\n  ```\n\n- Then run this command in your terminal:\n\n  ```bash\n  $ pod install\n  ```\n\n### Carthage\n- Add the following line into your Cartfile:\n\n  ```\n  github \"onl1ner/STTextView\"\n  ```\n  \n- And run the next command in terminal:\n\n  ```bash\n  $ carthage update\n  ```\n\n### Swift Package Manager\n- In Xcode select: \n\n  ```\n  File \u003e Swift Packages \u003e Add Package Dependency...\n  ```\n  \n- Then paste this URL: \n\n  ```\n  https://github.com/onl1ner/STTextView.git\n  ```\n\n### Manually\nYou could also install it manually. Just drag and drop the ``STTextView.swift`` file into your Xcode project.\n\n## Usage\n\n### Interface Builder\n\nSimply attach ``STTextView`` class to your UITextView object and you will be able to change the values through the Interface Builder.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/onl1ner/onl1ner/blob/master/Resources/STTextView/Interface%20Builder.png?raw=true\" height=\"280\"/\u003e\n\u003c/p\u003e\n\n### Swift\n\n```swift\nimport STTextView\n\nlet textView = STTextView()\ntextView.placeholder = \"Some placeholder text\"\ntextView.placeholderColor = .secondaryLabel\n```\n\nYou can also have an attributed placeholder. Use ``attributedPlaceholder`` property.\n\n### Example\nOpen example project ``STTextViewExample/STTextViewExample.xcworkspace`` to see a simple demonstrations of framework usage.\n\n## Contributing\nHave some troubles? Feel free to open an issue.\n\n## License\n**STTextView** is under the terms and conditions of the MIT license.\n\n```\nMIT License\n\nCopyright (c) 2020 Tamerlan Satualdypov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonl1ner%2FSTTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonl1ner%2FSTTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonl1ner%2FSTTextView/lists"}