Преглед на файлове

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
     }()
 
-    private var subtitleLabel: UILabel = {
+    private lazy var subtitleLabel: UILabel = {
         let subtitleLabel = UILabel()
         subtitleLabel.translatesAutoresizingMaskIntoConstraints = false
         subtitleLabel.font = UIFont.systemFont(ofSize: 12)