{"id":13750001,"url":"https://github.com/hansemannn/iOS11-PasswordFill-Example","last_synced_at":"2025-05-09T13:31:49.366Z","repository":{"id":142791149,"uuid":"96174812","full_name":"hansemannn/iOS11-PasswordFill-Example","owner":"hansemannn","description":"Example showing how to use the PasswordFill API in iOS 11.","archived":false,"fork":false,"pushed_at":"2019-01-18T14:03:36.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T20:54:16.797Z","etag":null,"topics":["example","ios11","passwordfill"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-07-04T04:20:16.000Z","updated_at":"2023-01-15T12:04:06.000Z","dependencies_parsed_at":"2023-03-18T06:00:33.680Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/iOS11-PasswordFill-Example","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/hansemannn%2FiOS11-PasswordFill-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS11-PasswordFill-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS11-PasswordFill-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS11-PasswordFill-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/iOS11-PasswordFill-Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253258286,"owners_count":21879620,"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":["example","ios11","passwordfill"],"created_at":"2024-08-03T07:01:21.618Z","updated_at":"2025-05-09T13:31:49.103Z","avatar_url":"https://github.com/hansemannn.png","language":"Swift","readme":"# 🔑 iOS 11 PasswordFill Example\n\nA quick example showing how to use the PasswordFill API in iOS 11 and Swift 4.\n\n## Prerequisites\n* Xcode 9+\n* \"Associated Domains\" capability added to your project's `.entitlements` file (when using own domains)\n```xml\n\u003ckey\u003ecom.apple.developer.associated-domains\u003c/key\u003e\n\u003carray\u003e\n  \u003cstring\u003ewebcredentials:your-domain.com\u003c/string\u003e\n\u003c/array\u003e\n```\n\n## Getting Started\nIn order to make the PasswordFill API work, you need to set the `textContentType` property of\nyour `UITextField` or `UITextView` to `.username` and `.password`:\n```swift\nlet textField = UITextField(frame: CGRect(x: 20, y: 30, width: 300, height: 40))\ntextField.backgroundColor = UIColor.lightGray\ntextField.textContentType = .username\ntextField.placeholder = \"Enter Username ...\"\n\nlet textField2 = UITextField(frame: CGRect(x: 20, y: 70, width: 300, height: 40))\ntextField2.backgroundColor = UIColor.lightGray\ntextField2.textContentType = .password\ntextField2.placeholder = \"Enter Password ...\"\ntextField2.isSecureTextEntry = true\n```\nThen, create a file called `apple-app-site-association` with the following contents:\n```json\n{\n    \"webcredentials\" : {\n        \"apps\" : [\"\u003cteam-id\u003e.\u003cbundle-id\u003e\"]\n    }\n}\n```\nFinally, upload the file to your server and place it into the sub-directory `.well-known`.\n\nThat's it!\n\n## Author\nHans Knöchel ([@hansemannnn](https://twitter.com/hansemannnn))\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2FiOS11-PasswordFill-Example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2FiOS11-PasswordFill-Example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2FiOS11-PasswordFill-Example/lists"}