- Added verify OTP api - Modified the flow - Made a authfunc to handle the type of user and the language selected - Added OTP fields combine logic. Also handled the otp blank checks. - Added API for intrestes get
30 lines
632 B
Swift
30 lines
632 B
Swift
//
|
|
// AddTapGesture.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 07/05/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIView {
|
|
|
|
func addTapGesture(action : @escaping ()->Void ){
|
|
let tap = MyTapGestureRecognizer(target: self , action: #selector(self.handleTap(_:)))
|
|
tap.action = action
|
|
tap.numberOfTapsRequired = 1
|
|
|
|
self.addGestureRecognizer(tap)
|
|
self.isUserInteractionEnabled = true
|
|
|
|
}
|
|
|
|
@objc func handleTap(_ sender: MyTapGestureRecognizer) {
|
|
sender.action!()
|
|
}
|
|
}
|
|
|
|
class MyTapGestureRecognizer: UITapGestureRecognizer {
|
|
var action : (()->Void)? = nil
|
|
}
|