Drop animations on reload servers on iOS

This commit is contained in:
Davide 2024-11-27 00:45:11 +01:00
parent 4fcac3c95a
commit b3c90b6802
No known key found for this signature in database
GPG Key ID: A48836171C759F5E

View File

@ -90,7 +90,7 @@ private extension VPNProviderServerView.ContentView {
header: filtersViewModel.filters.categoryName ?? Strings.Views.Vpn.Category.any
)
.onLoad {
if let selectedServer = selectedServer {
if let selectedServer {
expandedCodes.insert(selectedServer.provider.countryCode)
}
}
@ -165,9 +165,7 @@ private extension VPNProviderServerView.ContentView {
list.append($0)
map[code] = list
}
withAnimation {
serversByCountryCode = map
}
serversByCountryCode = map
}
}