Skip to content

Commit b9c8066

Browse files
committed
fix: DispatchQueue.main.async를 통해 필요하지 않은 애니메이션 제거
1 parent f756c23 commit b9c8066

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

DevLog/UI/PushNotification/PushNotificationListView.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ struct PushNotificationListView: View {
191191
}
192192

193193
Button {
194-
viewModel.send(.toggleSortOption)
194+
DispatchQueue.main.async {
195+
viewModel.send(.toggleSortOption)
196+
}
195197
} label: {
196198
let condition = viewModel.state.query.sortOrder == .oldest
197199
Text(
@@ -200,8 +202,8 @@ struct PushNotificationListView: View {
200202
viewModel.state.query.sortOrder.title
201203
)
202204
)
203-
.foregroundStyle(condition ? .white : Color(.label))
204-
.adaptiveButtonStyle(color: condition ? .blue : .clear)
205+
.foregroundStyle(condition ? .white : Color(.label))
206+
.adaptiveButtonStyle(color: condition ? .blue : .clear)
205207
}
206208

207209
Menu {
@@ -226,7 +228,9 @@ struct PushNotificationListView: View {
226228
}
227229

228230
Button {
229-
viewModel.send(.toggleUnreadOnly)
231+
DispatchQueue.main.async {
232+
viewModel.send(.toggleUnreadOnly)
233+
}
230234
} label: {
231235
let condition = viewModel.state.query.unreadOnly
232236
Text(String(localized: "push_unread"))

0 commit comments

Comments
 (0)