Merge pull request #34 from diegosanchezr/master

Fixes autolayout warnings
This commit is contained in:
Diego Sánchez 2016-02-02 23:23:42 +00:00
commit 62b09af22e
1 changed files with 1 additions and 1 deletions

View File

@ -76,8 +76,8 @@ public class ChatInputBar: ReusableXibView {
NSLayoutConstraint.activateConstraints(self.constraintsForHiddenTextView)
}
if self.showsSendButton {
NSLayoutConstraint.activateConstraints(self.constraintsForVisibleSendButton)
NSLayoutConstraint.deactivateConstraints(self.constraintsForHiddenSendButton)
NSLayoutConstraint.activateConstraints(self.constraintsForVisibleSendButton)
} else {
NSLayoutConstraint.deactivateConstraints(self.constraintsForVisibleSendButton)
NSLayoutConstraint.activateConstraints(self.constraintsForHiddenSendButton)