Skip to content

Commit 1231b29

Browse files
graycreateclaude
andcommitted
fix: revert rotation animation and add progress indicator
- Reverted rotation angle logic to continuous increment for smoother animation - Added progress view display when switching tabs to improve UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 55cf03f commit 1231b29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

V2er/State/DataFlow/Reducers/FeedReducer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func feedStateReducer(_ state: FeedState, _ action: Action) -> (FeedState, Actio
4848
state.selectedTab = action.tab
4949
Tab.saveSelectedTab(action.tab)
5050
state.showFilterMenu = false
51+
state.showProgressView = true
5152
let supportsLoadMore = action.tab.supportsLoadMore()
5253
state.hasMoreData = supportsLoadMore
5354
followingAction = FeedActions.FetchData.Start()

V2er/View/Widget/TopBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct TopBar: View {
7070
.forceClickable()
7171
.onChange(of: store.appState.feedState.showFilterMenu) { newValue in
7272
withAnimation {
73-
rotationAngle = newValue ? 180 : 0
73+
rotationAngle += 180
7474
}
7575
}
7676
.onTapGesture {

0 commit comments

Comments
 (0)