diff --git a/MobileToken/extensions/uilabel/HalfColorLabel.swift b/MobileToken/extensions/uilabel/HalfColorLabel.swift
index 47fc47a..a43c0b8 100644
--- a/MobileToken/extensions/uilabel/HalfColorLabel.swift
+++ b/MobileToken/extensions/uilabel/HalfColorLabel.swift
@@ -7,7 +7,7 @@ extension UILabel {
let attributedString = NSMutableAttributedString.init(string: fullText)
for highlightedWord in changeText {
let textRange = (fullText as NSString).range(of: highlightedWord)
- attributedString.addAttributes([NSAttributedString.Key.foregroundColor: R.color.secondary()!,NSAttributedString.Key.font: R.font.iranSansMobileFaNumBold(size: 14)!], range: textRange)
+ attributedString.addAttributes([NSAttributedString.Key.foregroundColor: R.color.secondary()!,NSAttributedString.Key.font: UIHelper.getFont(size: 14)], range: textRange)
}
self.attributedText = attributedString
}
diff --git a/MobileToken/ui/cardlist/bankcards/AddPasswordViewDesignable.swift b/MobileToken/ui/cardlist/bankcards/AddPasswordViewDesignable.swift
index 1073153..fa5ce88 100644
--- a/MobileToken/ui/cardlist/bankcards/AddPasswordViewDesignable.swift
+++ b/MobileToken/ui/cardlist/bankcards/AddPasswordViewDesignable.swift
@@ -45,6 +45,7 @@ class AddPasswordViewDesignable: UIView {
func initUIComponent() {
vBackground.layer.masksToBounds = true
vBackground.layer.cornerRadius = 5
+ labelAddOtp.font = UIHelper.getFont(size: 14)
}
}
diff --git a/MobileToken/ui/cardlist/bankcards/BankCardPagerViewCell.swift b/MobileToken/ui/cardlist/bankcards/BankCardPagerViewCell.swift
index 277429e..2021a3b 100644
--- a/MobileToken/ui/cardlist/bankcards/BankCardPagerViewCell.swift
+++ b/MobileToken/ui/cardlist/bankcards/BankCardPagerViewCell.swift
@@ -46,6 +46,7 @@ class BankCardPagerViewCell: FSPagerViewCell {
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(showOrHidePassword(tapGestureRecognizer:)))
vCard.imageShowPassword.isUserInteractionEnabled = true
vCard.imageShowPassword.addGestureRecognizer(tapGestureRecognizer)
+ vCard.initUIComponent()
}
diff --git a/MobileToken/ui/cardlist/bankcards/CardCellXibView.swift b/MobileToken/ui/cardlist/bankcards/CardCellXibView.swift
index dd557cf..de33c84 100644
--- a/MobileToken/ui/cardlist/bankcards/CardCellXibView.swift
+++ b/MobileToken/ui/cardlist/bankcards/CardCellXibView.swift
@@ -22,7 +22,7 @@ class CardCellXibView: UIView {
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
xibSetup()
- initUIComponent()
+
}
func xibSetup() {
@@ -30,6 +30,7 @@ class CardCellXibView: UIView {
contentView.frame = bounds
contentView.autoresizingMask = [UIView.AutoresizingMask.flexibleWidth, UIView.AutoresizingMask.flexibleHeight]
addSubview(contentView)
+ initUIComponent()
}
@@ -39,6 +40,11 @@ class CardCellXibView: UIView {
func initUIComponent() {
imageLogo.layer.cornerRadius = 10
+ labelCardNumber.forEach { label in
+ label.font = UIHelper.getFont(size: 16)
+ }
+ labelCardName.font = UIHelper.getFont(size: 14)
+ labelBankName.font = UIHelper.getFont(size: 16)
}
func loadViewFromNib() -> UIView! {
diff --git a/MobileToken/ui/cardlist/bankcards/OtpViewDesignable.swift b/MobileToken/ui/cardlist/bankcards/OtpViewDesignable.swift
index 6b855b6..d7b3dac 100644
--- a/MobileToken/ui/cardlist/bankcards/OtpViewDesignable.swift
+++ b/MobileToken/ui/cardlist/bankcards/OtpViewDesignable.swift
@@ -43,7 +43,7 @@ class OtpViewDesignable: UIView {
btCopy.layer.masksToBounds = true
btCopy.layer.cornerRadius = 5
vProgress.progressViewStyle = .bar
- lbOtp.font = R.font.iranSansMobileFaNum(size: 22)
+ lbOtp.font = UIHelper.getFont(size: 22)
lbOtp.textColor = .red
let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(self.initCopy))
contentView.addGestureRecognizer(tap)
diff --git a/MobileToken/ui/registration/phoneconfirmation/PhoneConfirmationViewController.swift b/MobileToken/ui/registration/phoneconfirmation/PhoneConfirmationViewController.swift
index 2e16022..72c7d53 100644
--- a/MobileToken/ui/registration/phoneconfirmation/PhoneConfirmationViewController.swift
+++ b/MobileToken/ui/registration/phoneconfirmation/PhoneConfirmationViewController.swift
@@ -65,10 +65,12 @@ class PhoneConfirmationViewController: BaseViewController,PhoneConfirmationViewP
labelChangeNumber.font = UIHelper.iranSansBold(size: 16)
textFieldCode.delegate = self
labelPhone.text = phoneNumber
+ labelPhone.font = UIHelper.getFont(size: 17)
labelChangeNumber.isUserInteractionEnabled = true
- labelEnterCode.font = R.font.iranSansMobile(size: 12)
+ labelEnterCode.font = UIHelper.getFont(size: 12)
textFieldCode.attributedPlaceholder = NSAttributedString(string: R.string.localizable.ph_activation_code(),
attributes: [NSAttributedString.Key.foregroundColor: R.color.buttonColor()!.withAlphaComponent(0.5)])
+ labelCounter.font = UIHelper.getFont(size: 16)
}
diff --git a/MobileToken/ui/registration/phoneinput/PhoneInputViewController.swift b/MobileToken/ui/registration/phoneinput/PhoneInputViewController.swift
index dde9800..d384065 100644
--- a/MobileToken/ui/registration/phoneinput/PhoneInputViewController.swift
+++ b/MobileToken/ui/registration/phoneinput/PhoneInputViewController.swift
@@ -70,6 +70,8 @@ class PhoneInputViewController: UIViewController, BankCollectionViewDelegate,Cou
viewTextfields.layer.backgroundColor = R.color.primaryLight()?.cgColor
viewTextfields.layer.shadowColor = R.color.buttonColor()?.withAlphaComponent(0.25).cgColor
textFieldPhoneNumber.delegate = self
+ textFieldPhoneNumber.font = UIHelper.getFont(size: 15)
+ labelPhoneCode.font = UIHelper.getFont(size: 16)
showPhoneInput()
inputMask()
}
diff --git a/MobileToken/ui/settings/basic/LockScreenTimeSettingTableViewCell.swift b/MobileToken/ui/settings/basic/LockScreenTimeSettingTableViewCell.swift
index 8627c9f..8fcfe61 100644
--- a/MobileToken/ui/settings/basic/LockScreenTimeSettingTableViewCell.swift
+++ b/MobileToken/ui/settings/basic/LockScreenTimeSettingTableViewCell.swift
@@ -38,6 +38,10 @@ class LockScreenTimeSettingTableViewCell: UITableViewCell {
button.setTitleColor(R.color.buttonColor(), for: .normal)
button.tintColor = .clear
}
+ labelSecond.font = UIHelper.getFont(size: 16)
+ collectionButtonsTime.forEach { button in
+ button.titleLabel?.font = UIHelper.getFont(size: 16)
+ }
}
func setDelegate(lockScreenTimeProtocol:LockScreenTimeSettingTableViewCellProtocol) {
diff --git a/MobileToken/ui/settings/settingauthenticationdefinition/password/SettingAuthenticationDefinitionPasswordViewController.swift b/MobileToken/ui/settings/settingauthenticationdefinition/password/SettingAuthenticationDefinitionPasswordViewController.swift
index ff2ea9e..092dd0a 100755
--- a/MobileToken/ui/settings/settingauthenticationdefinition/password/SettingAuthenticationDefinitionPasswordViewController.swift
+++ b/MobileToken/ui/settings/settingauthenticationdefinition/password/SettingAuthenticationDefinitionPasswordViewController.swift
@@ -32,10 +32,12 @@ class SettingAuthenticationDefinitionPasswordViewController: UIViewController,UI
textFieldConfirmPassword.layer.borderWidth = 2
textFieldConfirmPassword.layer.borderColor = R.color.buttonColor()?.withAlphaComponent(0.15).cgColor
textFieldPassword.becomeFirstResponder()
- labelPasswordHint.font = R.font.iranSansMobile(size: 12)
- labelSecondPassword.font = R.font.iranSansMobile(size: 12)
+ labelPasswordHint.font = UIHelper.getFont(size: 12)
+ labelSecondPassword.font = UIHelper.getFont(size: 12)
labelPasswordHint.textColor = R.color.buttonColor()?.withAlphaComponent(0.5)
labelSecondPassword.textColor = R.color.buttonColor()?.withAlphaComponent(0.5)
+ labelPasswordHint.text = R.string
+ .localizable.lb_passwordHint()
textFieldPassword.attributedPlaceholder = NSAttributedString(string: R.string.localizable.ph_password(),
attributes: [NSAttributedString.Key.foregroundColor: R.color.buttonColor()!.withAlphaComponent(0.5)])
textFieldConfirmPassword.attributedPlaceholder = NSAttributedString(string:R.string.localizable.ph_confirm_password() ,
diff --git a/MobileToken/util/UIHelper.swift b/MobileToken/util/UIHelper.swift
index f3a56d7..72226a9 100644
--- a/MobileToken/util/UIHelper.swift
+++ b/MobileToken/util/UIHelper.swift
@@ -40,7 +40,7 @@ class UIHelper {
}
static func getFont(size: CGFloat)-> UIFont {
- if Locale.preferredLanguages[0] == "ar" {
+ if Locale.preferredLanguages[0].contains("ar") {
return R.font.iranSansMobileFaNum(size: size)!
} else {
return UIFont.systemFont(ofSize: size)
diff --git a/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib b/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib
index 0bc9d63..56fc92a 100644
--- a/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib
+++ b/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib
@@ -30,7 +30,7 @@
diff --git a/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib b/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib
index 80ca7cd..2ada86b 100644
--- a/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib
+++ b/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib
@@ -118,7 +118,7 @@
diff --git a/MobileToken/view/settings/settingauthenticationdefinition/Base.lproj/SettingAuthenticationDefinition.storyboard b/MobileToken/view/settings/settingauthenticationdefinition/Base.lproj/SettingAuthenticationDefinition.storyboard
index 59f9baa..db2e3c1 100644
--- a/MobileToken/view/settings/settingauthenticationdefinition/Base.lproj/SettingAuthenticationDefinition.storyboard
+++ b/MobileToken/view/settings/settingauthenticationdefinition/Base.lproj/SettingAuthenticationDefinition.storyboard
@@ -109,14 +109,14 @@
-