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

Input bar relayouting #620

Merged
merged 2 commits into from
Nov 4, 2019
Merged

Input bar relayouting #620

merged 2 commits into from
Nov 4, 2019

Conversation

MikhailGasanov
Copy link
Contributor

@MikhailGasanov MikhailGasanov commented Oct 25, 2019

inputContainerBottomConstraint.constant should always depend on both self.bottomLayoutGuide.length and an additional offset managed by a keyboard tracker. In this pull-request, I've extracted this logic into a updateInputContainerBottomConstraint() method to fix an issue when updates from the keyboard tracker could break a proper input bar position if the bottom layout guide wasn't taken into account.

@codecov-io
Copy link

codecov-io commented Oct 25, 2019

Codecov Report

Merging #620 into master will increase coverage by 0.17%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #620      +/-   ##
==========================================
+ Coverage   60.59%   60.76%   +0.17%     
==========================================
  Files          92       92              
  Lines        4875     4881       +6     
==========================================
+ Hits         2954     2966      +12     
+ Misses       1921     1915       -6
Impacted Files Coverage Δ
...Source/ChatController/BaseChatViewController.swift 69.2% <71.42%> (+0.65%) ⬆️
...Chat Items/TextMessages/Views/TextBubbleView.swift 86.22% <0%> (+3.06%) ⬆️

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 30b0e5d...9c38775. Read the comment docs.

@wiruzx wiruzx added the bug label Nov 4, 2019
@wiruzx wiruzx self-requested a review November 4, 2019 16:22
@wiruzx wiruzx merged commit dbfacce into master Nov 4, 2019
@wiruzx wiruzx deleted the input-bar-relayouting branch November 4, 2019 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants