2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Avoid animating position change of menu

Contributes to IOS-398
This commit is contained in:
shannon 2025-04-09 15:47:02 -04:00
parent db502f569f
commit 74bd60fac4

View File

@ -226,12 +226,10 @@ struct NotificationPolicyView: View {
case .notFollowing, .notFollowers, .newAccounts, .privateMentions,
.limitedAccounts:
Button {
withAnimation {
if viewModel.isShowingMenu == nil {
viewModel.isShowingMenu = settingType
} else {
viewModel.isShowingMenu = nil
}
if viewModel.isShowingMenu == nil {
viewModel.isShowingMenu = settingType
} else {
viewModel.isShowingMenu = nil
}
} label: {
HStack {