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 Whitespace Appearing on Gallery View #1563

Merged
merged 6 commits into from Oct 21, 2021

Conversation

adamrushy
Copy link
Contributor

@adamrushy adamrushy commented Oct 19, 2021

🔗 Issue Link

https://stream-io.atlassian.net/browse/CIS-1229

🎯 Goal

We are fixing an issue reported via GitHub, which shows a whitespace when dismissing a Gallery View via Pan Gesture.

🛠 Implementation

We had to implement the transitionFinished function provided by Apple's framework. This closes up the transitions and therefore respecting the responder chain.

🧪 Testing

  1. Launch the DemoApp
  2. Open a chat with some images
  3. Bring up the keyboard and tap on a single image
  4. Then dismiss the Image via Pan Gesture
  5. Keyboard becomes first responder again.

Video

CorrectBehaviour.mov

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

@adamrushy adamrushy requested a review from a team October 19, 2021 15:50
evsaev
evsaev previously approved these changes Oct 19, 2021
Copy link
Contributor

@evsaev evsaev left a comment

Choose a reason for hiding this comment

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

Good catch 👏

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

nuno-vieira
nuno-vieira previously approved these changes Oct 19, 2021
@adamrushy adamrushy linked an issue Oct 19, 2021 that may be closed by this pull request
evsaev and others added 3 commits October 20, 2021 20:52
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #1563 (b9fd170) into main (81be558) will increase coverage by 0.15%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1563      +/-   ##
==========================================
+ Coverage   87.80%   87.95%   +0.15%     
==========================================
  Files         232      232              
  Lines       10970    11029      +59     
==========================================
+ Hits         9632     9701      +69     
+ Misses       1338     1328      -10     
Flag Coverage Δ
llc-tests 87.95% <92.30%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...StreamChat/Database/DTOs/ChannelListQueryDTO.swift 90.00% <ø> (ø)
Sources/StreamChat/Database/DatabaseSession.swift 93.87% <ø> (ø)
Sources/StreamChat/Utils/Logger/Logger.swift 68.29% <ø> (+5.48%) ⬆️
...lient/EventMiddlewares/MemberEventMiddleware.swift 79.06% <57.14%> (-12.36%) ⬇️
...trollers/ChannelController/ChannelController.swift 92.60% <100.00%> (+0.59%) ⬆️
Sources/StreamChat/Database/DTOs/ChannelDTO.swift 96.98% <100.00%> (+2.94%) ⬆️
...reamChat/Query/Sorting/ChannelListSortingKey.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc81bcd...b9fd170. Read the comment docs.

@@ -14,7 +14,7 @@ concurrency:

env:
HOMEBREW_NO_INSTALL_CLEANUP=1: 1 # Disable cleanup for homebrew, we don't need it on CI
DEVELOPER_DIR: /Applications/Xcode_12.5.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app/Contents/Developer
Copy link
Contributor

Choose a reason for hiding this comment

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

hm, that is already on main, right? 🤔

Copy link
Contributor

@evsaev evsaev left a comment

Choose a reason for hiding this comment

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

Let's remove stuff that is already merged to main and then 🚢

@adamrushy
Copy link
Contributor Author

Let's remove stuff that is already merged to main and then 🚢

Yeah, I had to bring it in so that CI would work :]

@adamrushy adamrushy merged commit 8fda2d0 into main Oct 21, 2021
@adamrushy adamrushy deleted the bug/CIS-1229-Whitespace-Keyboard-Gallery branch October 21, 2021 09:30
nuno-vieira pushed a commit that referenced this pull request Oct 21, 2021
* Adding the `finishInteractiveTransition` required to close up the animations

* Updating CHANGELOG

* [CIS-1242] Update CI to use `Xcode 12.5.1` (#1568)

* Fix `ChatMessagePopupVC` tests

* Bump xcode version to `12.5.1` on CI

* Updating CHANGELOG

* Removing duplicate entry in the CHANGELOG

Co-authored-by: Adam Rush <adam.rush@getstream.io>
Co-authored-by: Pavel Evsaev <pavel.evsaev@gmail.com>
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.

White keyboard on image swipe to dismiss
3 participants