Commit 61ef454
committed
feat: Add pull-to-refresh and improve navigation in settings
- **Settings Categories**:
- Added `Refresh` and `NavBackDetail` actions to `SettingsCategoriesViewModel`.
- Implemented `navBackDetail` to clear the selected category and navigate back via the router.
- Updated `SettingsCategoriesResult` to include a `loading` state.
- Wrapped `SettingsMasterScreenBody` content in a `PullToRefreshBox`.
- **Settings Detail**:
- Added a `Refresh` action to `SettingsViewModel` to trigger switch updates.
- Integrated `PullToRefreshBox` into `SettingsDetailScreen` for manual updates.
- Optimized state collection using `derivedStateOf` for refresh and loading indicators.
- **Adaptive UI & Navigation**:
- Updated `AdaptiveSettingsScreen` to use the view model's `NavBackDetail` action for back navigation, ensuring state synchronization.
- Replaced local coroutine-based navigation in the UI with view model actions.
- **Testing**:
- Enabled the navigation back test case in `AdaptiveInteractorTest`.1 parent db0c639 commit 61ef454
File tree
5 files changed
+9
-2
lines changed- app/iosApp
- Pods/Pods.xcodeproj
- iosApp.xcworkspace/xcuserdata/artur.xcuserdatad
- docs
- ui/test
5 files changed
+9
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments