Skip to content

Commit a9a68f6

Browse files
authored
Fixed separator line height (MessageKit#667)
* Fixed separator line height * Update CHANGELOG.md
1 parent 9b2e785 commit a9a68f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ You must now set this font explicitly through the `emojiMessageSizeCalculator` o
9898
- The result of the `MessagesDisplayDelegate` method `textColor(for message:...)` no longer applies to `.attributedText` case of `MessageData`.
9999
[#625](https://github.com/MessageKit/MessageKit/pull/625) by [@cwalo](https://github.com/cwalo).
100100

101+
- Removed the explicit height constraint from the `separatorLine` in `MessageInputBar`.
102+
[#667](https://github.com/MessageKit/MessageKit/pull/667) by [@zhongwuzw](https://github.com/zhongwuzw)
103+
101104
### Removed
102105

103106
- **Breaking Change** Removed `NSLayoutConstraintSet` by changing access control from `public` to `internal`.

Sources/Views/MessageInputBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ open class MessageInputBar: UIView {
340340
private func setupConstraints() {
341341

342342
// The constraints within the MessageInputBar
343-
separatorLine.addConstraints(topAnchor, left: leftAnchor, right: rightAnchor, heightConstant: 1)
343+
separatorLine.addConstraints(topAnchor, left: leftAnchor, right: rightAnchor)
344344
backgroundViewBottomAnchor = backgroundView.bottomAnchor.constraint(equalTo: bottomAnchor)
345345
backgroundViewBottomAnchor?.isActive = true
346346
backgroundView.addConstraints(topStackView.bottomAnchor, left: leftAnchor, right: rightAnchor)

0 commit comments

Comments
 (0)