Giter Club home page Giter Club logo

autofillplayground's Introduction

Autofill playground

This simple app is about exploring the necessary parts to allow an app work with autofill, i.e. the iOS keyboard automatically suggest the required information to fill in.

Password autofill

Feature description:

  • suggesting existing passwords stored in the keychain to sign-in
  • suggesting a strong password to use when signing up.

To implement this feature I had to do the following steps:

  1. Add "Associated Domains" capability and set "Domains" to webcredentials:example.com (replacing example.com being my domain).

  2. On the website place a file named apple-app-site-association into the publicly accessible root directory in a folder .well-known.
    Access can be tested using curl https://www.example.com/.well-known/apple-app-site-association. (Yes, HTTPS must be enabled and have a valid certificate!)

  3. The content of the apple-app-site-association must reference the Apple Developer Team ID and the bundle identifier of my app as follows: (Team ID is "A1BC23REUG" and bundle identifier is "com.example.signin-playground")

    {
      "webcredentials": {
        "apps": [ 
          "A1BC23REUG.com.example.signin-playground"
        ]
      }
    }
  4. Mark the input fields in SwiftUI using the appropriate textContentType modifiers: .username, .password and .newPassword.

Sign In Sign Up

TextField autofill

Feature description:

  • intelligent completion based on information from the address book or recent usage of other apps

To implement this feature I had to amend the TextFields fields with the appropriate value for the textContentType modifier. But some of the fields have never shown an appropriate suggestion.
These are: .namePrefix, .nameSuffix, .middleName, .nickname, .organizationName, .jobTitle, .location

Autofill

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.