- Fixed TC 51, TC 49, TC 48, TC 46

- TC 52, 53
- Added banner to home
This commit is contained in:
2024-09-02 19:59:53 +05:30
parent 0b05ce017a
commit d66df15fbb
26 changed files with 345 additions and 170 deletions

View File

@@ -53,31 +53,32 @@ class AddNewAddressVC: UIViewController {
@IBAction func submitBtnTapped(_ sender: LocalisedElementsButton) {
PersistentStorage.shared.addShopCount(postID: 0)
if enterAddressNAmeTF.text!.count < 2 {
if let nameTF = enterAddressNAmeTF.text?.trimmingCharacters(in: .whitespaces) ,nameTF.count < 2 {
Utilities.alertWithBtn(title: "", msgBody: "Name should be minimum 2 Characters.", okBtnStr: "OK", vc: self)
return
}
if addressLine1TF.text!.count < 15 {
if let addressLine1TF = addressLine1TF.text?.trimmingCharacters(in: .whitespaces) , addressLine1TF.count < 15 {
Utilities.alertWithBtn(title: "", msgBody: "Address Line 1 should be minimum 15 Characters.", okBtnStr: "OK", vc: self)
return
}
if addressLine2TF.text!.count < 15 {
if let addressLine2TF = addressLine2TF.text?.trimmingCharacters(in: .whitespaces), addressLine2TF.count < 15 {
Utilities.alertWithBtn(title: "", msgBody: "Address Line 2 should be minimum 15 Characters.", okBtnStr: "OK", vc: self)
return
}
if cityTF.text!.count < 2 {
if let cityTF = cityTF.text?.trimmingCharacters(in: .whitespaces), cityTF.count < 2 {
Utilities.alertWithBtn(title: "", msgBody: "City should be minimum 2 Characters.", okBtnStr: "OK", vc: self)
return
}
if stateTF.text!.count < 2 {
if let stateTF = stateTF.text?.trimmingCharacters(in: .whitespaces), stateTF.count < 2 {
Utilities.alertWithBtn(title: "", msgBody: "State should be minimum 2 Characters.", okBtnStr: "OK", vc: self)
return
}
if countryTF.text!.count < 2 {
if let countryTF = countryTF.text?.trimmingCharacters(in: .whitespaces), countryTF.count < 2 {
Utilities.alertWithBtn(title: "", msgBody: "Country should be minimum 2 Characters.", okBtnStr: "OK", vc: self)
return
}