Commit 507e4386 authored by Grigor Aghabalyan's avatar Grigor Aghabalyan
Browse files

Fix: dark mode issues

parent 6ea42f8c
...@@ -758,7 +758,7 @@ ...@@ -758,7 +758,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 12; CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = JY829SQQAV; DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist; INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16"; PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = "1,2";
}; };
name = Debug; name = Debug;
}; };
...@@ -780,7 +780,7 @@ ...@@ -780,7 +780,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 12; CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = JY829SQQAV; DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist; INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
...@@ -792,7 +792,7 @@ ...@@ -792,7 +792,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16"; PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = "1,2";
}; };
name = Release; name = Release;
}; };
......
...@@ -11,24 +11,19 @@ import UIKit ...@@ -11,24 +11,19 @@ import UIKit
class SingleFormViewController: UIViewController { class SingleFormViewController: UIViewController {
// MARK: - IBOutlets // MARK: - IBOutlets
@IBOutlet weak var fistNameTextLabel: UILabel!
@IBOutlet weak var lastNameTextLabel: UILabel!
@IBOutlet weak var meddleNameTextLabel: UILabel!
@IBOutlet weak var outDateTimeTextLabel: UILabel! @IBOutlet weak var outDateTimeTextLabel: UILabel!
@IBOutlet weak var outAddressTextLabel: UILabel! @IBOutlet weak var outAddressTextLabel: UILabel!
@IBOutlet weak var destinationAddressTextLabel: UILabel! @IBOutlet weak var destinationAddressTextLabel: UILabel!
@IBOutlet weak var planneDateTimeTextLabel: UILabel! @IBOutlet weak var planneDateTimeTextLabel: UILabel!
@IBOutlet weak var destinationTypeTextLabel: UILabel! @IBOutlet weak var destinationTypeTextLabel: UILabel!
@IBOutlet weak var fistNameLabel: UILabel!
@IBOutlet weak var lastNameLabel: UILabel!
@IBOutlet weak var meddleNameLabel: UILabel!
@IBOutlet weak var outDateTimeLabel: UILabel! @IBOutlet weak var outDateTimeLabel: UILabel!
@IBOutlet weak var outAddressLabel: UILabel! @IBOutlet weak var outAddressLabel: UILabel!
@IBOutlet weak var destinationAddressLabel: UILabel! @IBOutlet weak var destinationAddressLabel: UILabel!
@IBOutlet weak var planneDateTimeLabel: UILabel! @IBOutlet weak var planneDateTimeLabel: UILabel!
@IBOutlet weak var destinationTypeLabel: UILabel! @IBOutlet weak var destinationTypeLabel: UILabel!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var curentDateLabel: UILabel! @IBOutlet weak var curentDateLabel: UILabel!
@IBOutlet weak var activityIndicator: UIActivityIndicatorView! @IBOutlet weak var activityIndicator: UIActivityIndicatorView!
...@@ -50,9 +45,6 @@ class SingleFormViewController: UIViewController { ...@@ -50,9 +45,6 @@ class SingleFormViewController: UIViewController {
private func setUI() { private func setUI() {
self.title = "FORM".localized() self.title = "FORM".localized()
fistNameLabel.text = "FIRST_NAME".localized()
lastNameLabel.text = "LAST_NAME".localized()
meddleNameLabel.text = "MEDDLE_NAME".localized()
outDateTimeTextLabel.text = "OUT_ADDRESS".localized() outDateTimeTextLabel.text = "OUT_ADDRESS".localized()
outAddressTextLabel.text = "OUT_DATETIME".localized() outAddressTextLabel.text = "OUT_DATETIME".localized()
...@@ -63,9 +55,13 @@ class SingleFormViewController: UIViewController { ...@@ -63,9 +55,13 @@ class SingleFormViewController: UIViewController {
private func setData(response: FormResponse?) { private func setData(response: FormResponse?) {
fistNameLabel.text = response?.firstName if let firstName = response?.firstName,
lastNameLabel.text = response?.lastName let lastName = response?.lastName,
meddleNameLabel.text = response?.middleName let middleName = response?.middleName {
nameLabel.text = "\(firstName) \(lastName) \(middleName)"
}else {
nameLabel.text = nil
}
outDateTimeLabel.text = response?.outDatetime outDateTimeLabel.text = response?.outDatetime
outAddressLabel.text = response?.outAddress outAddressLabel.text = response?.outAddress
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment