Animations improvements

This commit is contained in:
Arkadiusz Fal
2022-08-25 19:09:55 +02:00
parent 5f50797b54
commit 08ed810b9e
17 changed files with 205 additions and 103 deletions

View File

@@ -116,7 +116,7 @@ final class NavigationModel: ObservableObject {
if presentingPlayer { delay = 1.0 }
#endif
DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
withAnimation(.linear(duration: 0.3)) {
withAnimation(Constants.overlayAnimation) {
navigation.presentingChannel = true
}
}
@@ -156,7 +156,7 @@ final class NavigationModel: ObservableObject {
if presentingPlayer { delay = 1.0 }
#endif
DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
withAnimation(.linear(duration: 0.3)) {
withAnimation(Constants.overlayAnimation) {
navigation.presentingPlaylist = true
}
}