Refactor Home to SwiftUI#272
Conversation
- Completely rewrite the 1500-line HomeV2ViewController into a modern SwiftUI architecture (HomeView, HomeViewModel) - Wrap the SwiftUI view in a UIHostingController (HomeViewController) - Preserve all existing XIB designs via modular SwiftUI cell counterparts - Connect all callbacks for TabBar routing, AppDelegates, and deep link managers - Clean project.pbxproj of obsolete files Co-authored-by: clemPerrousset <64415865+clemPerrousset@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
I have fully refactored the main Home screen to use SwiftUI.
Key Accomplishments:
HomeMainViewControllerfolder and the complexHomeV2ViewControlleralong with all its XIBs and cells.HomeViewModeland a centralizedHomeViewimplementing the exact visual designs of all the legacy cells (Action, Event, Group, SmallTalk, Pedagogic, etc.) cleanly natively in SwiftUI.UIHostingControllernamedHomeViewController, ensuring the new code correctly intercepts and fields all DeepLinks, delegate callbacks (likeWelcomeOneDelegateand onboarding handlers), and popups.UUID()computations inForEach, ensuring safe optional chains on data properties, and implementing correct view diffing arrays.project.pbxprojreferences to compile locally.PR created automatically by Jules for task 7018293049297530963 started by @clemPerrousset