         resetItem()
     }
 
-    private func handleBack() {
-//        if type == .set {
-//            firstPassword.isEmpty ? setPasswordHandle?() : confirmPasswordHandle?()
-//        } else if type == .verify {
-//
-//        } else if type == .modify {
-//
-//        }
-    }
-
     private func setPassword() {
 //        if firstPassword.isEmpty {
 //            firstPassword = passwordContainer

    }

    override func touchesEnded(_: Set<UITouch>, with _: UIEvent?) {
        gestureEnd()
    }

    // 电话等打断触摸过程时，会调用这个方法。
    override func touchesCancelled(_: Set<UITouch>?, with _: UIEvent?) {
        gestureEnd()
    }

    private func gestureEnd() {
//        if !passwordContainer.isEmpty {
//            let count = selectedItemViews.count
//            if count < options.passwordMinCount {

        passwordContainer += itemView.index.description
        calDirect()
        itemView.turnHighlight()
        drawLine()
    }

    private func calDirect() {
