Tweak the vibrancy icon transition animation
This commit is contained in:
parent
eea450bee3
commit
bac205ef84
@ -198,7 +198,7 @@ private extension MasterFeedTableViewCell {
|
|||||||
|
|
||||||
func updateVibrancy(animated: Bool) {
|
func updateVibrancy(animated: Bool) {
|
||||||
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
|
||||||
let duration = animated ? 0.5 : 0.0
|
let duration = animated ? 0.6 : 0.0
|
||||||
UIView.animate(withDuration: duration) {
|
UIView.animate(withDuration: duration) {
|
||||||
self.disclosureButton?.tintColor = tintColor
|
self.disclosureButton?.tintColor = tintColor
|
||||||
self.faviconImageView.tintColor = tintColor
|
self.faviconImageView.tintColor = tintColor
|
||||||
|
@ -30,7 +30,7 @@ class SettingsAccountTableViewCell: VibrantTableViewCell {
|
|||||||
|
|
||||||
func updateVibrancy(animated: Bool) {
|
func updateVibrancy(animated: Bool) {
|
||||||
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
||||||
let duration = animated ? 0.5 : 0.0
|
let duration = animated ? 0.6 : 0.0
|
||||||
UIView.animate(withDuration: duration) {
|
UIView.animate(withDuration: duration) {
|
||||||
self.accountImage?.tintColor = tintColor
|
self.accountImage?.tintColor = tintColor
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user