{"id":24733634,"url":"https://github.com/fanta1ty/ttextfield","last_synced_at":"2025-06-13T01:32:19.484Z","repository":{"id":50670606,"uuid":"519789543","full_name":"fanta1ty/TTextField","owner":"fanta1ty","description":"TTextField is developed to help developers can initiate a fully standard textfield including title, placeholder and error message in fast and convinient way without having to write many lines of codes","archived":false,"fork":false,"pushed_at":"2023-06-09T06:48:50.000Z","size":368,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T02:03:40.306Z","etag":null,"topics":["cocoapods","component","error","error-message","errormessage","framework","library","message","placeholder","pod","swift","swift5","text","textfield","ui","ui-components","ui-design","uikit","uikit-components","uikit-framework"],"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/fanta1ty.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":"2022-07-31T13:51:34.000Z","updated_at":"2023-11-06T16:03:52.000Z","dependencies_parsed_at":"2022-08-22T18:40:36.394Z","dependency_job_id":null,"html_url":"https://github.com/fanta1ty/TTextField","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/fanta1ty%2FTTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanta1ty%2FTTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanta1ty%2FTTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanta1ty%2FTTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fanta1ty","download_url":"https://codeload.github.com/fanta1ty/TTextField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235897795,"owners_count":19062693,"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","component","error","error-message","errormessage","framework","library","message","placeholder","pod","swift","swift5","text","textfield","ui","ui-components","ui-design","uikit","uikit-components","uikit-framework"],"created_at":"2025-01-27T18:17:26.612Z","updated_at":"2025-01-27T18:17:27.296Z","avatar_url":"https://github.com/fanta1ty.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![LOGO](https://github.com/fanta1ty/TTextField/blob/master/ScreenShot/Logo.png)\n\n# TTextField\nTTextField is developed to help developers can initiate a fully standard textfield including title, placeholder and error message in fast and convinient way without having to write many lines of codes\n  \n[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-brightgreen)](https://developer.apple.com/swift/)\n[![Version](https://img.shields.io/cocoapods/v/TTextField.svg?style=flat)](https://cocoapods.org/pods/TTextField)\n[![License](https://img.shields.io/cocoapods/l/TTextField.svg?style=flat)](https://cocoapods.org/pods/TTextField)\n[![Platform](https://img.shields.io/cocoapods/p/TTextField.svg?style=flat)](https://cocoapods.org/pods/TTextField)\n[![Email](https://img.shields.io/badge/contact-@thinhnguyen12389@gmail.com-blue)](thinhnguyen12389@gmail.com)\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- iOS 11.0+\n- Swift 5\n\n## Installation\n\n### From CocoaPods\n`TTextField` is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'TTextField'\n```\nSecond, install `TProgressHUD` into your project:\n```ruby\npod install\n```\n\n### Swift Package\n`TTextField` is designed for Swift 5. To depend on the logging API package, you need to declare your dependency in your `Package.swift`\n\n```swift\n.package(url: \"https://github.com/fanta1ty/TTextField.git\", brand: \"master\"),\n```\n\n## Usage\n```swift\nimport TTextField\n```\n\n1) Initiate ``TTextField``\n```swift\nlet textField = TTextField()\n```\n\n2) To show title, please input into ``title`` property\n```swift\ntextField.title = \"Email address\"\n```\n\n3) To show the placeholder, please input into ``placeholder`` property\n```swift\ntextField.placeholder = \"Enter your work email address\"\n```\n\n4) To enable/disable underline, please setup into ``isUnderline`` property\n```swift\ntextField.isUnderline = true\n```\n\n5) To show error message, please input into ``errorMessage`` property\n```swift\ntextField.errorMessage = \"The e-mail address entered is incorrect\"\n```\n\n6) To change settings more deeply, you can refer to the following functions and properties:\n```swift\n- underlineWidth: CGFloat\n- inactiveUnderlineColor: UIColor\n- inputRectLeftInset: CGFloat\n- extraSpacingTitle: CGFloat\n- appearanceFont: AppearanceFont\n- errorImage: UIImage\n- showsCaret: Bool\n\n- func applyErrorUnderlineStyle()\n- func applyNonErrorUnderlineStyle()\n```\n\n![til](https://github.com/fanta1ty/TTextField/blob/master/ScreenShot/Screen%20Shot.gif)\n\n## Author\n\nfanta1ty, thinhnguyen12389@gmail.com\n\n## License\n\nTTextField 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%2Ffanta1ty%2Fttextfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffanta1ty%2Fttextfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanta1ty%2Fttextfield/lists"}