Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Created January 19, 2022 16:57
Show Gist options
  • Save zafarivaev/0a2aed854af92ab980d7da85c1fa0ec0 to your computer and use it in GitHub Desktop.
Save zafarivaev/0a2aed854af92ab980d7da85c1fa0ec0 to your computer and use it in GitHub Desktop.
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