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

Double Tap for Scroll to Top #764

Closed
wants to merge 2 commits into from

Conversation

schmeat
Copy link
Contributor

@schmeat schmeat commented Nov 15, 2023

Checklist

  • I have read CONTRIBUTING.md
  • I have described what this PR contains
  • This PR addresses one or more open issues that were assigned to me:
    - N/A
  • If this PR alters the UI, I have attached pictures/videos

Pull Request Information

About this Pull Request

Adding functionality that scrolls to the top of the feed when a user double clicks the feed button. Just wanted to add it because it's a feature I miss when using Apollo. It's also a way to for me to get more into swiftUI.

The animations are a bit bare bones right now but wanted to get feedback on this before I proceed further.

Note: This currently fails swift lint's type_body_length rule since it adds 10 lines of code and the body is already at the max (250). Not sure if that would be open to changing as it does seem a bit restrictive in my opinion.

Screenshots and Videos

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-15.at.11.17.45.mp4

Additional Context

Bulk of the "changes" is me adding a ScrollViewReader and state tracker for double clicking the button. Please let me know if you need additional information.

@schmeat schmeat marked this pull request as ready for review November 17, 2023 08:21
@schmeat schmeat requested a review from a team as a code owner November 17, 2023 08:21
@schmeat schmeat requested review from mormaer and EricBAndrews and removed request for a team November 17, 2023 08:21
@EricBAndrews
Copy link
Member

EricBAndrews commented Nov 21, 2023

Thank you for the PR!

I'm closing this because we have a bunch of infrastructure in place already to support this feature and so don't want to merge a second parallel implementation, but we truly appreciate your contribution. We know this is a super highly requested feature, so we've bumped development priority aggressively and are hoping to have it in the next release.

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