Commit 383be486 authored by Grigor Aghabalyan's avatar Grigor Aghabalyan
Browse files

Feat: add name label in form view

parent f9cb70c3
......@@ -32,6 +32,7 @@ class FormCreateViewController: UIViewController {
@IBOutlet weak var outDateButtonAction: UIButton!
@IBOutlet weak var planneDateTimeButton: UIButton!
@IBOutlet weak var nameLabel: UILabel!
// MARK: - Variables
var data: FormResponse!
......@@ -59,6 +60,12 @@ class FormCreateViewController: UIViewController {
createButton.isHidden = true
retriveCurentForm()
}
if let firstName = UserDefaultsHelper.getString(for: .firstName),
let lastName = UserDefaultsHelper.getString(for: .lstName),
let middleName = UserDefaultsHelper.getString(for: .middleName) {
nameLabel.text = "\(firstName) \(lastName) \(middleName)"
}
}
// MARK: - Actions
......
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