fix: profile header background cannot dynamic adapt UI appearance issue

This commit is contained in:
CMK 2022-07-15 03:30:33 +08:00
parent c4b8f129d7
commit 742c02ce6a
1 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,8 @@ final class ProfileHeaderView: UIView {
weak var delegate: ProfileHeaderViewDelegate?
var disposeBag = Set<AnyCancellable>()
private var _disposeBag = Set<AnyCancellable>()
func prepareForReuse() {
disposeBag.removeAll()
}
@ -237,7 +238,7 @@ extension ProfileHeaderView {
guard let self = self else { return }
self.backgroundColor = theme.systemBackgroundColor
}
.store(in: &disposeBag)
.store(in: &_disposeBag)
// banner
bannerContainerView.translatesAutoresizingMaskIntoConstraints = false