Created
January 19, 2022 16:57
-
-
Save zafarivaev/0a2aed854af92ab980d7da85c1fa0ec0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Combine | |
... | |
class ViewController: UIViewController { | |
... | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
overrideUserInterfaceStyle = .light | |
// 1 | |
bindStateToTitle() | |
// 2 | |
DispatchQueue.global().asyncAfter(deadline: .now() + 2) { | |
self.bindAvatarToImageView() | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment