Skip to content
Snippets Groups Projects
Commit 4b098fba authored by Alireza Toghyiani's avatar Alireza Toghyiani Committed by Kateryna Kostiuk
Browse files

fix link device form UI issue

Change-Id: I6615e6f9abf3aeb518882d42c7b4a281d3e8ef9d
parent 5b55f219
No related branches found
No related tags found
No related merge requests found
...@@ -54,16 +54,15 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase ...@@ -54,16 +54,15 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase
// MARK: functions // MARK: functions
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
setupUI()
// Style // Style
self.pinTextField.becomeFirstResponder()
self.view.layoutIfNeeded()
linkButton.titleLabel?.ajustToTextSize() linkButton.titleLabel?.ajustToTextSize()
adaptToSystemColor() adaptToSystemColor()
configurePasswordField() configurePasswordField()
self.applyL10n() self.applyL10n()
setupUI()
self.pinTextField.becomeFirstResponder()
// bind view model to view // bind view model to view
...@@ -142,7 +141,10 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase ...@@ -142,7 +141,10 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase
contentView.removeCorners() contentView.removeCorners()
view.backgroundColor = .secondarySystemBackground view.backgroundColor = .secondarySystemBackground
} else { } else {
contentView.roundTopCorners(radius: 12) DispatchQueue.main.async { [weak self] in
guard let self else { return }
self.contentView.roundTopCorners(radius: 12)
}
view.backgroundColor = .clear view.backgroundColor = .clear
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment