Browse Source

init chat subtitle lazily

cyberta 2 years ago
parent
commit
00f47a696a
1 changed files with 1 additions and 1 deletions
  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)