{"id":18271022,"url":"https://github.com/doat/DOAutocompleteTextField","last_synced_at":"2025-04-05T01:30:59.998Z","repository":{"id":140820345,"uuid":"2499452","full_name":"doat/DOAutocompleteTextField","owner":"doat","description":"DOAutocompleteTextField is a subclass of UITextField that provide the user with autocompleted text, similar to the URL bar on major browsers and Google Suggest. ","archived":false,"fork":false,"pushed_at":"2017-04-18T02:21:42.000Z","size":814,"stargazers_count":78,"open_issues_count":2,"forks_count":11,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-05T11:53:17.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://doat.com","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doat.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":"2011-10-02T13:40:44.000Z","updated_at":"2024-01-24T08:55:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6c5d5d4-cfe2-4b0e-afe8-65fb1ab5495a","html_url":"https://github.com/doat/DOAutocompleteTextField","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doat%2FDOAutocompleteTextField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doat%2FDOAutocompleteTextField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doat%2FDOAutocompleteTextField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doat%2FDOAutocompleteTextField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doat","download_url":"https://codeload.github.com/doat/DOAutocompleteTextField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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":[],"created_at":"2024-11-05T11:39:01.584Z","updated_at":"2025-04-05T01:30:59.980Z","avatar_url":"https://github.com/doat.png","language":"Objective-C","readme":"#DOAutocompleteTextField\n\nDOAutocompleteTextField is a subclass of UITextField that provide the user with\nautocompleted text, similar to the URL bar on major browsers and Google Suggest.\n\n![DOAutocompleteTextField Screenshot](https://github.com/doat/DOAutocompleteTextField/raw/master/screenshot.gif)\n\n#Usage\n\nAdd DOAutocompleteTextField to your project, create an instance of it\nas you would create a UITextField and set the delegate.\n\n    DOAutocompleteTextField *textField = [[DOAutocompleteTextField alloc] initWithFrame:CGRectMake(0,0,100,31)];\n    textField.delegate = self;\n\nIn your DOAutocompleteTextFieldDelegate provide the completions according to you own logic\nor similar to the demo.\n\t\n\t- (NSString *)textField:(DOAutocompleteTextField *)textField completionForPrefix:(NSString *)prefix\n\t{\n    \t// This is a simple example of how to provide DOAutocomleteTextField with completions\n\t    NSArray *autocompleteArray = [NSArray arrayWithObjects:\n\t                                  @\"thesaurus\",\n\t                                  @\"the weather channel\",\n\t                                  @\"DoAT\",\n\t                                  @\"Doctor Who\",\n\t                                  @\"Dachshunds are the best\",\n\t                                  @\"ccccombo breaker\",\n\t                                  @\"money\",\n\t                                  @\"Mona lisa\",\n\t                                  @\"Monalisa\",\n\t                                  @\"mcdonalds\",\n\t                                  @\"mc hammer\", \n\t                                  @\"long cat is looooooooooooooooooog\",\n\t                                  nil];\n\t    \n\t    for (NSString *string in autocompleteArray) \n\t    {\n\t        if([string hasPrefix:prefix])\n\t        {\n\t            return [string stringByReplacingCharactersInRange:[prefix rangeOfString:prefix] withString:@\"\"];\n\t        }\n\t        \n\t    }\n\t    \n\t    return @\"\";\n\t}\n\nDOAutocompleteTextField draws the completion text immediatlly after user input.\n\n#Known Issues\n\n* Completion position is still a bit off.\n* No way of detecting taps on autocomplete label.\n\n\n##Copyright\nCopyright 2011 DoAT. All rights reserved. See LICENSE for more details.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoat%2FDOAutocompleteTextField","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoat%2FDOAutocompleteTextField","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoat%2FDOAutocompleteTextField/lists"}