- Fixed TC 51, TC 49, TC 48, TC 46
- TC 52, 53 - Added banner to home
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user