Removed Unneeded Code

This commit is contained in:
Nathan Tannar
2017-12-08 12:22:29 -08:00
parent b045427cb8
commit 6666b0ff21
3 changed files with 10 additions and 17 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
PODS:
- MessageKit (0.10.2)
- MessageKit (0.11.0)
DEPENDENCIES:
- MessageKit (from `../MessageKit.podspec`)
- MessageKit (from `../`)
EXTERNAL SOURCES:
MessageKit:
:path: ../MessageKit.podspec
:path: ../
SPEC CHECKSUMS:
MessageKit: a1e8d0f1d7785891e4b37f6252898f23cd8f8b6a
MessageKit: 96caa3ba2c32f9393b406256c5caa29ae9189d71
PODFILE CHECKSUM: 9ac65b8dedf0e1b63fea245b089b6645c4e66309
PODFILE CHECKSUM: cecdb7bc8129cf99f66de9f68eea3256fec30c3d
COCOAPODS: 1.3.1
@@ -74,12 +74,12 @@ class ConversationViewController: MessagesViewController {
defer {
isTyping = !isTyping
messageInputBar.layoutStackViews([.top])
}
if isTyping {
messageInputBar.topStackView.arrangedSubviews.first?.removeFromSuperview()
messageInputBar.topStackViewPadding = .zero
} else {
@@ -89,9 +89,10 @@ class ConversationViewController: MessagesViewController {
messageInputBar.topStackView.addArrangedSubview(label)
// messageInputBar.topStackViewPadding.top = 6
// messageInputBar.topStackViewPadding.left = 12
// The backgroundView doesn't include the topStackView. This is so things in the topStackView can have transparent backgrounds if you need it that way
messageInputBar.topStackViewPadding.top = 6
messageInputBar.topStackViewPadding.left = 12
// The backgroundView doesn't include the topStackView. This is so things in the topStackView can have transparent backgrounds if you need it that way or another color all together
messageInputBar.backgroundColor = messageInputBar.backgroundView.backgroundColor
}
-8
View File
@@ -69,12 +69,4 @@ open class InputStackView: UIStackView {
distribution = .fill
alignment = .bottom
}
open override func layoutIfNeeded() {
super.layoutIfNeeded()
// We need to invalidate the size of the superview (MessageInputBar) in case the subview heights have changed
// and thus the superview size needs to change
superview?.invalidateIntrinsicContentSize()
}
}