{"id":15561280,"url":"https://github.com/novichenkoanton/stringifytextfield","last_synced_at":"2025-09-09T08:38:37.544Z","repository":{"id":38293535,"uuid":"254438997","full_name":"NovichenkoAnton/StringifyTextField","owner":"NovichenkoAnton","description":"Custom UITextField is based on Stringify framework functionality.","archived":false,"fork":false,"pushed_at":"2025-02-13T07:14:26.000Z","size":128,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T08:02:51.534Z","etag":null,"topics":["ios","stringify","swift","uitextfield"],"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/NovichenkoAnton.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-09T17:39:53.000Z","updated_at":"2025-02-13T07:14:29.000Z","dependencies_parsed_at":"2023-12-20T14:12:01.369Z","dependency_job_id":"f2192a0e-0d94-4dbd-8c2f-259470a7a77d","html_url":"https://github.com/NovichenkoAnton/StringifyTextField","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NovichenkoAnton%2FStringifyTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NovichenkoAnton%2FStringifyTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NovichenkoAnton%2FStringifyTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NovichenkoAnton%2FStringifyTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NovichenkoAnton","download_url":"https://codeload.github.com/NovichenkoAnton/StringifyTextField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250525295,"owners_count":21445040,"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":["ios","stringify","swift","uitextfield"],"created_at":"2024-10-02T16:06:56.700Z","updated_at":"2025-04-23T22:26:53.978Z","avatar_url":"https://github.com/NovichenkoAnton.png","language":"Swift","readme":"# StringifyTextField\nCustom `UITextField` is based on `Extendy` framework functionality.\n\n[![Version](https://img.shields.io/cocoapods/v/StringifyTextField)](https://cocoapods.org/pods/StringifyTextField)\n[![License](https://img.shields.io/cocoapods/l/StringifyTextField)](https://raw.githubusercontent.com/NovichenkoAnton/StringifyTextField/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/StringifyTextField)](https://cocoapods.org/pods/StringifyTextField)\n\n## Requirements\n\n- iOS 10.0+\n\n## Installation\n\n### CocoaPods\n\nStringifyTextField is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod 'StringifyTextField', '~\u003e 1.0'\n```\n\n## Usage\n\n```swift\nimport StringifyTextField\n\n//Connect IBOutlet\n@IBOutlet var stringifyTextField: StringifyTextField!\n\n//Create programmatically\nlet manualTextField = StringifyTextField(type: .amount)\nmanualTextField.frame = CGRect(x: 20, y: 100, width: 200, height: 40)\n```\n\n`StringifyTextField` is a textfield which can format inputed string with 4 available formats.\n\nAvailable formats:\n```swift\npublic enum TextType: UInt {\n  case amount = 0\n  case creditCard = 1\n  case IBAN = 2\n  case expDate = 3\n}\n```\n\n### Amount format\n\nYou can specify currency mark for `.amount` text type\n\n![currency mark](https://user-images.githubusercontent.com/8337067/77302043-bc505e80-6d01-11ea-95c0-1e3af86a8cc0.gif)\n\nSet up maximum integer digits (if your amount contains integer and fraction parts).\n\n```swift\nstringifyTextField.maxIntegerDigits = 6\n```\n\nIf your amount doesn't contain a fraction part, you can disable `decimal` through Interface Builder or programmatically.\n\n```swift\nstringifyTextField.decimal = false\n```\n\n### Credit card format\n\n![credit card format](https://user-images.githubusercontent.com/8337067/77302097-d7bb6980-6d01-11ea-87ef-6c64f2f75abe.gif)\n\n### Exp date format\n\n![exp date format](https://user-images.githubusercontent.com/8337067/77651967-9a174480-6f7e-11ea-947c-de74b8a40804.gif)\n\nYou can specify date format to get needed \"clean\" value\n\n```swift\nstringifyTextField.dateFormat = \"MM.yyyy\"\n```\n\n### Plain value\n\nYou can get plain value from `StringifyTextField`, e.g for `.expDate` format it will be value with applying specific date format.\n\n```swift\nlet expDate = stringifyTextField.plainValue\n```\n\n### Bottom line \u0026 floated placeholder\n\nYou can add bottom line dispay in `StringifyTextField`\n\n```swift\nstringifyTextField.lineVisible = true\nstringifyTextField.lineColorDefault = UIColor.black\nstringifyTextField.lineColorActive = UIColor.blue\n```\n\nand floated label display\n\n```swift\nstringifyTextField.floatingPlaceholder = true\nstringifyTextField.floatingPlaceholderColor = UIColor.black\nstringifyTextField.floatingPlaceholderActiveColor = UIColor.blue\n```\n\n![bottom line and floated label](https://user-images.githubusercontent.com/8337067/78424011-3faf6f80-7673-11ea-993d-3c449fa4420c.gif)\n\n## Demo\nYou can see other features in the example project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovichenkoanton%2Fstringifytextfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovichenkoanton%2Fstringifytextfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovichenkoanton%2Fstringifytextfield/lists"}