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:
parent
db502f569f
commit
74bd60fac4
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user