Login by TouchId swift code implementation
As the Touch ID is based on the Local Authentication framework it needs to be imported to the project. Go to the implementation controller lets say ViewController.swift file and add the following line
import LocalAuthentication