mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-09 04:46:35 +10:00
Move to YepConfig.ChatCell.bubbleCornerRadius
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user