Commit 20050d7
Replace custom tab bar with native iOS TabView (#53)
* feat: replace custom tab bar with native iOS TabView
Replace the custom bottom tab bar implementation with iOS native TabView component using SF Symbols icons.
Changes:
- Replace custom TabBar widget with native SwiftUI TabView
- Use SF Symbols for tab icons (newspaper, safari, bell, person)
- Add badge support for unread message count
- Remove .hide() modifiers from page views (TabView handles visibility)
- Move data loading logic to onAppear in each page view
- Integrate TopBar within each tab using pageWithTopBar helper
Cleanup:
- Delete TabBar.swift (custom tab bar implementation)
- Remove custom tab icon assets (feed_tab, explore_tab, message_tab, me_tab)
- Removed ~150 lines of custom UI code
Benefits:
- Native iOS look and feel with standard tab bar behavior
- Uses system SF Symbols icons instead of custom assets
- Cleaner, more maintainable codebase
- Better integration with iOS accessibility features
- Automatic handling of safe areas and device variations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: remove TabBar.swift references from Xcode project
Remove all references to the deleted TabBar.swift file from the Xcode project.pbxproj file to fix build failure.
- Remove PBXBuildFile reference
- Remove PBXFileReference
- Remove from Widget group children
- Remove from PBXSourcesBuildPhase
Fixes CI build error: "Build input file cannot be found: TabBar.swift"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: restore TabId enum definition
Restore the TabId enum definition that was removed with TabBar.swift.
The enum is now defined in GlobalState.swift where it's primarily used.
Fixes build errors: "cannot find type 'TabId' in scope"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0db9971 commit 20050d7
File tree
24 files changed
+70
-261
lines changed- V2er.xcodeproj
- V2er
- Assets.xcassets
- explore_tab.imageset
- feed_tab.imageset
- me_tab.imageset
- message_tab.imageset
- State/DataFlow/State
- View
- Explore
- Feed
- Message
- Me
- Widget
24 files changed
+70
-261
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | | - | |
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
| |||
350 | 348 | | |
351 | 349 | | |
352 | 350 | | |
353 | | - | |
354 | 351 | | |
355 | 352 | | |
356 | 353 | | |
| |||
985 | 982 | | |
986 | 983 | | |
987 | 984 | | |
988 | | - | |
989 | 985 | | |
990 | 986 | | |
991 | 987 | | |
| |||
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
0 commit comments