{"id":15293595,"url":"https://github.com/nsnull0/ywtopinputfield","last_synced_at":"2025-10-07T06:30:53.152Z","repository":{"id":56929899,"uuid":"95069837","full_name":"nsnull0/YWTopInputField","owner":"nsnull0","description":"YWTopInputField is LightWeight generic input type","archived":true,"fork":false,"pushed_at":"2017-11-07T15:19:12.000Z","size":1096,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-30T16:50:04.006Z","etag":null,"topics":["cocoapods","generic","ios-lib","ios-swift","swift3","swift4","uikit"],"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/nsnull0.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":"2017-06-22T03:16:10.000Z","updated_at":"2023-01-28T16:43:15.000Z","dependencies_parsed_at":"2022-08-21T00:01:13.171Z","dependency_job_id":null,"html_url":"https://github.com/nsnull0/YWTopInputField","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWTopInputField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWTopInputField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWTopInputField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWTopInputField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsnull0","download_url":"https://codeload.github.com/nsnull0/YWTopInputField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877369,"owners_count":16554881,"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","generic","ios-lib","ios-swift","swift3","swift4","uikit"],"created_at":"2024-09-30T16:50:09.807Z","updated_at":"2025-10-07T06:30:47.519Z","avatar_url":"https://github.com/nsnull0.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YWTopInputField\n\n[![Version](https://img.shields.io/cocoapods/v/YWTopInputField.svg?style=flat)](https://cocoapods.org/pods/YWTopInputField)\n[![License](https://img.shields.io/cocoapods/l/YWTopInputField.svg?style=flat)](https://cocoapods.org/pods/YWTopInputField)\n[![Platform](https://img.shields.io/cocoapods/p/YWTopInputField.svg?style=flat)](https://cocoapods.org/pods/YWTopInputField)\n\nMake your input value more  userfriendly with easy implementation.\n\nWill be more generic day by day\n\n## Availability\n#### ⚠️ **This Library only Available to Swift \u003e 3.0** ⚠️\n\n## DEMO V0.4.0\n![Demo](https://s7.postimg.org/fhodjzcsr/YWTop_Input_Field_1.gif)\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n```ruby\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'YWTopInputField', ~\u003e \"0.4\"\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n## Swift 4.0 Compatibility for more stable version\n```ruby\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\npod 'YWTopInputField', ~\u003e \"1.0\"\nend\n```\n\n## Latest Version\n```ruby\npod 'YWTopInputField', ~\u003e \"2.0\"\n```\n\n## Initialization\n```swift\n\nvar alert:YWTopInputFieldController?\n\nself.alert = YWTopInputFieldController(_contentController: self, _andDelegate: self)\n\n\n//Optional, it will setup to Default setting\nalert!.setupInputField(_chooseAutoCorrectionType: .no, _chooseSpellCheckingType: .no, _chooseKeyboardType: .default, _chooseKeyboardAppearance: .alert)\n\n//Optional, it will setup to Default setting\nalert!.setupContainer(_chooseBlurStyleEffectContainer: .dark, _chooseTitleColor: .white, _chooseMessageColor: .white, _chooseFontTitle: .boldSystemFont(ofSize: 15.0), _chooseFontMessage: .systemFont(ofSize: 12.0))\n\n\n```\n\n## Delegation\n```swift\n    func didShowYWInputField()\n\n    func doneAction(resultStr: String,_withTag tag:Int)\n\n    func didCancel()\n```\n\n## Property Setup\n```swift\n//Optional, it will setup to Default setting\nalert!.setupInputField(_chooseAutoCorrectionType: .no, _chooseSpellCheckingType: .no, _chooseKeyboardType: .default, _chooseKeyboardAppearance: .alert)\n\n//Optional, it will setup to Default setting\nalert!.setupContainer(_chooseBlurStyleEffectContainer: .dark, _chooseTitleColor: .white, _chooseMessageColor: .white, _chooseFontTitle: .boldSystemFont(ofSize: 15.0), _chooseFontMessage: .systemFont(ofSize: 12.0))\n\n//Optional, it will setup to Default setting \u003c200\u003e\nalert!.setContainer(height: 250)\n\n```\n\n## Property Setup for Version \u003e 2.0\n\nADDED 'customize' property as builder object\n```swift\nalert!.customize.setCorrectionType(_type: .no)\n                .setSpellCheckType(_type: .no)\n                .setKeyboardType(_type: .default)\n                .setKeyboardAppearance(_type: .alert)\n                .setBlurStyleEffectContainer(_type: .dark)\n                .setTitleColor(_color: .white)\n                .setMessageColor(_color: .white)\n                .setFontTitle(_font: .boldSystemFont(ofSize: 15.0))\n                .setMessageFont(_font: .systemFont(ofSize: 12.0))\n                .setHeightTextContainer(_height: 400)\n                .validate()\n```\n\nSNAPSHOT EXAMPLE\n```swift\n\nself.alert!.customize.setKeyboardType(_type: .numberPad).validate()\n\nself.alert!.showInput(_withTitle: \"\", _andMessage: \"\", _withContentString: textField.text!, _withTag:           tagIdentity.textFieldTag.rawValue, completion: {\n(finished) in\n\n})\n```\n\n## Support\n- Updated occasionally for more Generic and developer-friendly\n- Pull me request if you guys want to contribute too.\n- More detail about usage can be seen at example workspace.\n\n## Credits\n- Creator Yoseph Wijaya Savianto ([@yosephwijaya](http://yoseph.ws))\n\n## License\n- nsnull0/YWTopInputField is licensed under MIT LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsnull0%2Fywtopinputfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsnull0%2Fywtopinputfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsnull0%2Fywtopinputfield/lists"}