Fixes vector-im/element-ios/issues/5042 - Message composer doesn't follow keyboard when swiping to dismiss.

This commit is contained in:
Stefan Ceriu 2021-10-25 15:27:27 +03:00 committed by Stefan Ceriu
parent fe98559d4a
commit 35802071dd
3 changed files with 6 additions and 1 deletions

View file

@ -163,7 +163,7 @@
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oni-F4-X1U" userLabel="User suggestion container">
<rect key="frame" x="0.0" y="626" width="375" height="0.0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" placeholder="YES" id="1Cd-cT-gOr"/>
</constraints>

View file

@ -85,6 +85,10 @@ const CGFloat kComposerContainerTrailingPadding = 12;
[self updateUIWithTextMessage:nil animated:NO];
self.textView.toolbarDelegate = self;
// Add an accessory view to the text view in order to retrieve keyboard view.
inputAccessoryView = [[UIView alloc] initWithFrame:CGRectZero];
self.textView.inputAccessoryView = inputAccessoryView;
}
- (void)setVoiceMessageToolbarView:(UIView *)voiceMessageToolbarView

1
changelog.d/5042.bugfix Normal file
View file

@ -0,0 +1 @@
Fixed message composer not following keyboard when swiping to dismiss.