Răsfoiți Sursa

init chat subtitle lazily

cyberta 2 ani în urmă
părinte
comite
00f47a696a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      deltachat-ios/View/ChatTitleView.swift

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

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