Selaa lähdekoodia

init chat subtitle lazily

cyberta 2 vuotta sitten
vanhempi
commit
00f47a696a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      deltachat-ios/View/ChatTitleView.swift

+ 1 - 1
deltachat-ios/View/ChatTitleView.swift

@@ -32,7 +32,7 @@ class ChatTitleView: UIView {
         return stackView
     }()
 
-    private var subtitleLabel: UILabel = {
+    private lazy var subtitleLabel: UILabel = {
         let subtitleLabel = UILabel()
         subtitleLabel.translatesAutoresizingMaskIntoConstraints = false
         subtitleLabel.font = UIFont.systemFont(ofSize: 12)