Re-enable blur-effect for pictures (IOS-192)
This commit is contained in:
parent
0729fa41f2
commit
b7bb271b40
|
@ -121,19 +121,22 @@ extension ProfileHeaderView.ViewModel {
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
.store(in: &disposeBag)
|
.store(in: &disposeBag)
|
||||||
#warning("TODO: Implement")
|
// blur for blocking & blockingBy
|
||||||
// // blur for blocking & blockingBy
|
$relationship
|
||||||
// $relationshipActionOptionSet
|
.compactMap { relationship in
|
||||||
// .map { $0.contains(.blocking) || $0.contains(.blockingBy) }
|
guard let relationship else { return false }
|
||||||
// .sink { needsImageOverlayBlurred in
|
|
||||||
// UIView.animate(withDuration: 0.33) {
|
return relationship.blocking || (relationship.blockedBy ?? false)
|
||||||
// let bannerEffect: UIVisualEffect? = needsImageOverlayBlurred ? ProfileHeaderView.bannerImageViewOverlayBlurEffect : nil
|
}
|
||||||
// view.bannerImageViewOverlayVisualEffectView.effect = bannerEffect
|
.sink { needsImageOverlayBlurred in
|
||||||
// let avatarEffect: UIVisualEffect? = needsImageOverlayBlurred ? ProfileHeaderView.avatarImageViewOverlayBlurEffect : nil
|
UIView.animate(withDuration: 0.33) {
|
||||||
// view.avatarImageViewOverlayVisualEffectView.effect = avatarEffect
|
let bannerEffect: UIVisualEffect? = needsImageOverlayBlurred ? ProfileHeaderView.bannerImageViewOverlayBlurEffect : nil
|
||||||
// }
|
view.bannerImageViewOverlayVisualEffectView.effect = bannerEffect
|
||||||
// }
|
let avatarEffect: UIVisualEffect? = needsImageOverlayBlurred ? ProfileHeaderView.avatarImageViewOverlayBlurEffect : nil
|
||||||
// .store(in: &disposeBag)
|
view.avatarImageViewOverlayVisualEffectView.effect = avatarEffect
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.store(in: &disposeBag)
|
||||||
// name
|
// name
|
||||||
Publishers.CombineLatest4(
|
Publishers.CombineLatest4(
|
||||||
$isEditing.removeDuplicates(),
|
$isEditing.removeDuplicates(),
|
||||||
|
|
Loading…
Reference in New Issue