Git Product home page Git Product logo

autofiller's Introduction

Autofiller

Autofiller is a lightweight library for enabling Password Autofill in sign in/sign up forms without putting fields in the same container explicitly.

Warning: Unfortunately, as there still is no way to make Password Autofill work without placing views into same superview, Autofiller just makes all the dirty work in runtime and hides it under the hood. Changing view hierarchy may cause different UI issues. If you encounter one, please create a ticket, and I will look into it.

Build Status

Installation

Autofiller is available via CocoaPods, so you may just add pod 'Autofiller' to your Podfile and go with it.

Usage

Just pass your field into corresponding methods:

@IBOutlet private weak var loginField: UITextField!
@IBOutlet private weak var passwordField: UITextField!

Autofiller.connectFields(login: loginField, password: passwordField)
@IBOutlet private weak var loginField: UITextField!
@IBOutlet private weak var newPasswordField: UITextField!
@IBOutlet private weak var confirmPasswordField: UITextField!

// Autofiller.connectFields(login: loginField, newPassword: newPasswordField) -- confirmPassword may be omitted if not needeed
Autofiller.connectFields(login: loginField, newPassword: newPasswordField, confirmPassword: confirmPasswordField)

Connecting fields should happen after constraints have been initialized (viewDidLoad() is fine, init() is not).

Requirements

  • iOS 11.0 for just remembering passwords.
  • iOS 12.0 for suggesting complex ones.

autofiller's People

Contributors

djachenko avatar

Watchers

 avatar

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.