- 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
46 lines
971 B
Swift
46 lines
971 B
Swift
//
|
|
// LocalisedElements.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 29/04/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class LocalisedElementsLabel: UILabel {
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
setup()
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
// This will call `awakeFromNib` in your code
|
|
setup()
|
|
}
|
|
|
|
private func setup() {
|
|
self.text = self.text?.localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
|
|
}
|
|
}
|
|
|
|
|
|
class LocalisedElementsButton : UIButton {
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
setup()
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
// This will call `awakeFromNib` in your code
|
|
setup()
|
|
}
|
|
|
|
private func setup() {
|
|
self.setTitle(self.titleLabel?.text?.localized(loc: AuthFunc.shareInstance.languageSelected.rawValue), for: .normal)
|
|
}
|
|
}
|