Skip to content

Hide keyboard on Price Check screen#69

Open
Roudique wants to merge 3 commits intoVeritasDev:release/1.3.0from
Roudique:roudique/price-check-hide-keyboard
Open

Hide keyboard on Price Check screen#69
Roudique wants to merge 3 commits intoVeritasDev:release/1.3.0from
Roudique:roudique/price-check-hide-keyboard

Conversation

@Roudique
Copy link

@Roudique Roudique commented Aug 2, 2020

Summary

As of right now the UX with keyboard on Price Check screen is not very friendly, to be more precise there's no way to hide it:
RocketSim Recording - iPhone X 13 6 - 2020-08-02 16 45 07

This PR fixes this by hiding keyboard either on scrolling or when user presses "search":
RocketSim Recording - iPhone X 13 6 - 2020-08-02 16 47 30

Encourage you to try for yourself :)

UPD Lol PR #69 :D

@Roudique Roudique changed the base branch from release/1.1.0 to master August 2, 2020 20:50
Comment on lines 94 to 96
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
searchBar.resignFirstResponder()
}
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps we can replace this with scrollViewWillBeginDragging instead, as that will be called once upon scrolling as opposed to scrollViewDidScroll which is called a shitload during scrolling? Thoughts? Thanks for the PR!

Copy link
Owner

Choose a reason for hiding this comment

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

Also would want to re-target this PR to the release/1.3.0 branch if possible!

@Roudique Roudique changed the base branch from master to release/1.3.0 August 4, 2020 23:36
@Roudique
Copy link
Author

Roudique commented Aug 4, 2020

@VeritasDev Updated!

@Roudique Roudique requested a review from VeritasDev August 4, 2020 23:38
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