Diffable fade animations (#1343)

* animate only 2 seconds after the appearence

* scrolling is stable

* code improvement

* comment and removing code that is not necessary anymore

* feature flag

* comment

* better code

* the day divider ID is the timestamp itself as ISO

* Apply suggestions from code review

Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>

* format fix

---------

Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
This commit is contained in:
Mauro
2023-07-18 16:18:11 +02:00
committed by GitHub
parent 48dbbfb4d0
commit f46abbaf9e
6 changed files with 34 additions and 12 deletions
@@ -36,6 +36,7 @@ final class AppSettings {
case shareLocationEnabled
case hasShownWelcomeScreen
case notificationSettingsEnabled
case timelineDiffableAnimationsEnabled
}
private static var suiteName: String = InfoPlistReader.main.appGroupIdentifier
@@ -226,4 +227,7 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.notificationSettingsEnabled, defaultValue: false, storageType: .userDefaults(store))
var notificationSettingsEnabled
@UserPreference(key: UserDefaultsKeys.timelineDiffableAnimationsEnabled, defaultValue: false, storageType: .userDefaults(store))
var timelineDiffableAnimationsEnabled
}