mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-12 18:29:26 +00:00
Animate the removal of translations
The reset of a translation when the translation type is changed is now animated, which is important for iPad users if they've translated a post in the sidebar.
This commit is contained in:
parent
e651f5c12c
commit
7f3bfb6a7b
|
@ -65,7 +65,9 @@ struct StatusRowTranslateView: View {
|
|||
var body: some View {
|
||||
generalTranslateButton
|
||||
.onChange(of: preferences.preferredTranslationType) { _, _ in
|
||||
_ = viewModel.updatePreferredTranslation()
|
||||
withAnimation {
|
||||
_ = viewModel.updatePreferredTranslation()
|
||||
}
|
||||
}
|
||||
|
||||
if let translation = viewModel.translation, !viewModel.isLoadingTranslation, preferences.preferredTranslationType != .useApple {
|
||||
|
|
Loading…
Reference in a new issue