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

Fix: dark mode issues

parent 6ea42f8c
......@@ -758,7 +758,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 12;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
......@@ -770,7 +770,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
......@@ -780,7 +780,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 12;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
......@@ -792,7 +792,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "am.x-tech.App16";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
......
......@@ -11,24 +11,19 @@ import UIKit
class SingleFormViewController: UIViewController {
// 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 outAddressTextLabel: UILabel!
@IBOutlet weak var destinationAddressTextLabel: UILabel!
@IBOutlet weak var planneDateTimeTextLabel: 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 outAddressLabel: UILabel!
@IBOutlet weak var destinationAddressLabel: UILabel!
@IBOutlet weak var planneDateTimeLabel: UILabel!
@IBOutlet weak var destinationTypeLabel: UILabel!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var curentDateLabel: UILabel!
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
......@@ -50,9 +45,6 @@ class SingleFormViewController: UIViewController {
private func setUI() {
self.title = "FORM".localized()
fistNameLabel.text = "FIRST_NAME".localized()
lastNameLabel.text = "LAST_NAME".localized()
meddleNameLabel.text = "MEDDLE_NAME".localized()
outDateTimeTextLabel.text = "OUT_ADDRESS".localized()
outAddressTextLabel.text = "OUT_DATETIME".localized()
......@@ -63,9 +55,13 @@ class SingleFormViewController: UIViewController {
private func setData(response: FormResponse?) {
fistNameLabel.text = response?.firstName
lastNameLabel.text = response?.lastName
meddleNameLabel.text = response?.middleName
if let firstName = response?.firstName,
let lastName = response?.lastName,
let middleName = response?.middleName {
nameLabel.text = "\(firstName) \(lastName) \(middleName)"
}else {
nameLabel.text = nil
}
outDateTimeLabel.text = response?.outDatetime
outAddressLabel.text = response?.outAddress
......
Markdown is supported
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