Move to YepConfig.ChatCell.bubbleCornerRadius

This commit is contained in:
kevinzhow
2015-11-03 07:56:18 +08:00
parent 98f182b260
commit 1bc8697d7d
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -169,6 +169,8 @@ class YepConfig {
static let mediaMinHeight: CGFloat = 30
static let centerXOffset: CGFloat = 4
static let bubbleCornerRadius: CGFloat = 20
static let imageAppearDuration: NSTimeInterval = 0.1
@@ -113,7 +113,7 @@ class ChatLeftTextCell: ChatBaseCell {
let bubbleBodyFrame = CGRectInset(strongSelf.textContainerView.frame, -12, -3)
strongSelf.bubbleBodyShapeLayer.path = UIBezierPath(roundedRect: bubbleBodyFrame, byRoundingCorners: UIRectCorner.AllCorners, cornerRadii: CGSize(width: 18, height: 18)).CGPath
strongSelf.bubbleBodyShapeLayer.path = UIBezierPath(roundedRect: bubbleBodyFrame, byRoundingCorners: UIRectCorner.AllCorners, cornerRadii: CGSize(width: YepConfig.ChatCell.bubbleCornerRadius, height: YepConfig.ChatCell.bubbleCornerRadius)).CGPath
if strongSelf.inGroup {
strongSelf.nameLabel.text = strongSelf.user?.nickname
@@ -105,7 +105,7 @@ class ChatRightTextCell: ChatRightBaseCell {
let bubbleBodyFrame = CGRectInset(strongSelf.textContainerView.frame, -12, -3)
strongSelf.bubbleBodyShapeLayer.path = UIBezierPath(roundedRect: bubbleBodyFrame, byRoundingCorners: UIRectCorner.AllCorners, cornerRadii: CGSize(width: 18, height: 18)).CGPath
strongSelf.bubbleBodyShapeLayer.path = UIBezierPath(roundedRect: bubbleBodyFrame, byRoundingCorners: UIRectCorner.AllCorners, cornerRadii: CGSize(width: YepConfig.ChatCell.bubbleCornerRadius, height: YepConfig.ChatCell.bubbleCornerRadius)).CGPath
// strongSelf.bubbleBodyImageView.frame =
strongSelf.bubbleTailImageView.center = CGPoint(x: CGRectGetMaxX(bubbleBodyFrame), y: CGRectGetMidY(strongSelf.avatarImageView.frame))