Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALFMOB-61: Refactor PDP screen's details to use a ScrollView #28

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JoaoPinhoMinder
Copy link
Contributor

@JoaoPinhoMinder JoaoPinhoMinder commented Feb 5, 2025

Ticket

https://mindera.atlassian.net/browse/ALFMOB-61

Description

Converted sheet that shows product details to a draggable view that mimics the same behaviour, since the bottom sheet was causing some navigation bugs.

@JoaoPinhoMinder JoaoPinhoMinder force-pushed the techdebt/ALFMOB-61-refactor-pdp-screen-details-to-use-scroll-view branch 10 times, most recently from 0bb6b4a to 7a9e2a5 Compare February 7, 2025 12:34
@JoaoPinhoMinder JoaoPinhoMinder force-pushed the techdebt/ALFMOB-61-refactor-pdp-screen-details-to-use-scroll-view branch 3 times, most recently from 586c5a6 to 109f0b3 Compare February 14, 2025 09:38
Converted sheet that shows product details to a draggable view that mimics the same behaviour, since the bottom sheet was causing some navigation bugs.
@JoaoPinhoMinder JoaoPinhoMinder force-pushed the techdebt/ALFMOB-61-refactor-pdp-screen-details-to-use-scroll-view branch from 109f0b3 to 4718fe0 Compare February 14, 2025 09:39
@@ -108,6 +105,7 @@ struct ProductDetailsView<ViewModel: ProductDetailsViewModelProtocol>: View {
}

@ViewBuilder private var pdpView: some View {
// TODO: Check why iPad uses a different view

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey 👋 @p4checo asked me to take a look and help.
The reason why we had a different view for iPad and iPhone pre iOS 16.4 is:

  • iPhone only supports sheets with detents starting on iOS 16.4
  • iPad does support them but sheets in general on iPad are nothing like the ones on iPhone and so we just decided to not to use it and keep it as a simple ScrollView. But there were no other blockers or particular reasons :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants