diff --git a/Zotero/Scenes/Detail/Annotation Popover/Views/TextContentEditCell.swift b/Zotero/Scenes/Detail/Annotation Popover/Views/TextContentEditCell.swift index 3bbacfdc7..849b12119 100644 --- a/Zotero/Scenes/Detail/Annotation Popover/Views/TextContentEditCell.swift +++ b/Zotero/Scenes/Detail/Annotation Popover/Views/TextContentEditCell.swift @@ -13,8 +13,8 @@ import RxSwift final class TextContentEditCell: RxTableViewCell { let attributedTextAndHeightReloadNeededObservable: PublishSubject<(NSAttributedString, Bool)> - private var lineView: UIView? - private var textView: FormattedTextView? + private weak var lineView: UIView? + private weak var textView: FormattedTextView? override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { attributedTextAndHeightReloadNeededObservable = PublishSubject() diff --git a/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift b/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift index 53fd516e0..5c7f56139 100644 --- a/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift +++ b/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift @@ -10,10 +10,10 @@ import UIKit import RxSwift final class ItemDetailTitleContentView: UIView { - private var textView: FormattedTextView! - private var topConstraint: NSLayoutConstraint! - private var bottomConstraint: NSLayoutConstraint! - private var separatorHeight: NSLayoutConstraint! + private weak var textView: FormattedTextView! + private weak var topConstraint: NSLayoutConstraint! + private weak var bottomConstraint: NSLayoutConstraint! + private weak var separatorHeight: NSLayoutConstraint! var attributedTextObservable: Observable { textView.attributedTextObservable