-
Notifications
You must be signed in to change notification settings - Fork 103
Fruittie screen and ios designs #78
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: mlykotom/ios-viewmodel-scoping
Are you sure you want to change the base?
Fruittie screen and ios designs #78
Conversation
mlykotom
commented
Jun 26, 2025
- created fruittie screen (ios+android)
- added bunch of actions (increase/decrease to cart), how many fruits in cart
- improved ios designs to use default components
- improved android designs






Split app to 2 screens with Navigation3 and NavigationStack
Design list + cart screens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @mlykotom, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request significantly enhances the application's user experience by introducing a new detail view for individual fruit items and improving the cart management capabilities. The changes also include a substantial UI overhaul on both Android and iOS to leverage modern platform components and design patterns.
Highlights
- New Fruittie Detail Screen: Introduced a dedicated detail screen for individual 'fruitties' on both Android (Compose) and iOS (SwiftUI), allowing users to view more information about a specific item and add it to their cart.
- Enhanced Cart Management: Implemented functionality to increase and decrease the quantity of items directly within the cart view on both platforms, providing a more interactive shopping experience.
- UI/UX Improvements: Refactored the user interface for both Android and iOS to align with platform-specific design best practices, utilizing native components like
LargeTopAppBar
andList
in SwiftUI, andFilledIconButton
in Compose, resulting in a more polished and consistent look and feel. - Navigation Updates: Updated the navigation flow to support the new fruittie detail screen, allowing users to tap on a fruittie from the main list to view its details.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request introduces the Fruittie detail screen and improves the UI on Android and iOS. The Swift code has critical issues with calling async
functions synchronously. UI consistency can be improved by using theme colors. State handling and navigation should be more robust.
Fruitties/shared/src/commonMain/kotlin/com/example/fruitties/viewmodel/FruittieViewModel.kt
Outdated
Show resolved
Hide resolved
Fruitties/androidApp/src/main/java/com/example/fruitties/android/MainActivity.kt
Show resolved
Hide resolved
Fruitties/androidApp/src/main/java/com/example/fruitties/android/ui/CartScreen.kt
Outdated
Show resolved
Hide resolved
Fruitties/androidApp/src/main/java/com/example/fruitties/android/ui/FruittieScreen.kt
Show resolved
Hide resolved
…id/ui/CartScreen.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Fruitties/androidApp/src/main/java/com/example/fruitties/android/ui/FruittieScreen.kt
Show resolved
Hide resolved
Fruitties/androidApp/src/main/java/com/example/fruitties/android/ui/ListScreen.kt
Outdated
Show resolved
Hide resolved
Fruitties/androidApp/src/main/java/com/example/fruitties/android/ui/CartScreen.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, remember to run ./gradlew spotlessApply
(requested in #75)
@@ -69,6 +82,22 @@ fun CartScreen(onNavBarBack: () -> Unit) { | |||
|
|||
val cartState by viewModel.cartUiState.collectAsState() | |||
|
|||
CartScreen( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for extracting the state like this. I wanted to do this.