浏览代码

init chat subtitle lazily

cyberta 2 年之前
父节点
当前提交
00f47a696a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)