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

fix: iOS 18 Toggle tap gesture #98

Merged
merged 2 commits into from
Nov 21, 2024
Merged

fix: iOS 18 Toggle tap gesture #98

merged 2 commits into from
Nov 21, 2024

Conversation

rnr
Copy link
Collaborator

@rnr rnr commented Nov 20, 2024

In iOS 18, parental view blocks the tap gesture for Toogle, and tapping only works in a small area above Toggle. Drag action doesn't work too. Added priority for the Toggle gestures (both tap and drag).

Before After
Screen.Recording.2024-11-20.at.17.41.41.mov
Screen.Recording.2024-11-20.at.17.37.31.mov

@rnr rnr changed the title Fix: iOS 18 Toggle tap gesture fix: iOS 18 Toggle tap gesture Nov 20, 2024
@shafqat-muneer
Copy link

@rnr Based on my observations, this issue seems to be specific to the simulator and occurs when the trackpad is clicked on a Mac. If the user uses a tap gesture on the trackpad, the issue does not appear, even in the simulator.

It's great that this scenario has been addressed. However, there are two additional places where the Toggle control is being used. Could you kindly address it there as well?

- CourseDatesView
- DatesAndCalendarView

@rnr
Copy link
Collaborator Author

rnr commented Nov 21, 2024

@rnr Based on my observations, this issue seems to be specific to the simulator and occurs when the trackpad is clicked on a Mac. If the user uses a tap gesture on the trackpad, the issue does not appear, even in the simulator.

It's great that this scenario has been addressed. However, there are two additional places where the Toggle control is being used. Could you kindly address it there as well?

- CourseDatesView
- DatesAndCalendarView

@shafqat-muneer
I have this issue on my iPhone with iOS 18.1 when build from 2U/develop right now - so it's not Simulator or trackpad bug.
And you are right CourseDatesView has this bug too since .onTapGesture is using there. Let me fix it. Thank you

@shafqat-muneer
Copy link

@shafqat-muneer I have this issue on my iPhone with iOS 18.1 when build from 2U/develop right now - so it's not Simulator or trackpad bug. And you are right CourseDatesView has this bug too since .onTapGesture is using there. Let me fix it. Thank you

Got it. It's great that the issue has been identified and fixed 🎉. I tested it on a device running OS 17.3 but will also check on the latest OS version.

@@ -135,13 +135,15 @@ struct CourseVideoDownloadBarView: View {
Toggle("", isOn: .constant(viewModel.isOn))

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

@@ -462,9 +462,16 @@ struct CalendarSyncView: View {
Toggle("", isOn: .constant(viewModel.isOn))

This comment was marked as resolved.

@rnr
Copy link
Collaborator Author

rnr commented Nov 21, 2024

@shafqat-muneer
PR is ready for another pass.
Thank you

Copy link

@shafqat-muneer shafqat-muneer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@rnr rnr merged commit 9409d67 into 2U/develop Nov 21, 2024
2 checks passed
@rnr rnr deleted the ios18-toggle-fix branch November 21, 2024 15:58
rnr added a commit that referenced this pull request Dec 23, 2024
* fix: added priority for toggle tap gesture

* fix: fixed tap and drag actions for Toggle

---------

Co-authored-by: Anton Yarmolenko <[email protected]>
rnr added a commit that referenced this pull request Dec 30, 2024
* chore: add video and discussion analytics (#93)

* fix: fixes after merge, deleted IAP parts

* chore: changed dependency version, deleted unused analytics part

* chore: regenerate mocks

* chore: In app ratings modal and profile picture picture sheet UI improvements (#94)

* chore: show subtitles for videos in full-screen mode (#97)

* fix: after merge

* fix: iOS 18 Toggle tap gesture (#98)

* fix: added priority for toggle tap gesture

* fix: fixed tap and drag actions for Toggle

---------

Co-authored-by: Anton Yarmolenko <[email protected]>

* fix: gesture for ios 18.2

* chore: quick fix with performance for subtitles view

---------

Co-authored-by: Saeed Bashir <[email protected]>
Co-authored-by: Anton Yarmolenko <[email protected]>
Co-authored-by: Shafqat Muneer <[email protected]>
rnr added a commit that referenced this pull request Jan 9, 2025
* chore: add video and discussion analytics (#93)

* fix: fixes after merge, deleted IAP parts

* chore: changed dependency version, deleted unused analytics part

* chore: regenerate mocks

* chore: In app ratings modal and profile picture picture sheet UI improvements (#94)

* chore: show subtitles for videos in full-screen mode (#97)

* fix: after merge

* fix: iOS 18 Toggle tap gesture (#98)

* fix: added priority for toggle tap gesture

* fix: fixed tap and drag actions for Toggle

---------

Co-authored-by: Anton Yarmolenko <[email protected]>

* fix: gesture for ios 18.2

* chore: quick fix with performance for subtitles view

* chore: sign-in and register screens social sign in improvements (#95)

* chore: fix after merge

* fix: fix microsoft login issue on iOS after config branch merges (#96)

* refactor: change the microsoft key name in the script (#101)

* chore: fix access modifier

* chore: re-generate nocks

* chore: hide grades when sub section dependents not available (#99)

* chore: fix after merge

* chore: hide progress points from assignment status (#100)

* chore: fix test

---------

Co-authored-by: Saeed Bashir <[email protected]>
Co-authored-by: Anton Yarmolenko <[email protected]>
Co-authored-by: Shafqat Muneer <[email protected]>
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.

3 participants