better match for corner radius

// FREEBIE
pull/1/head
sdkjfhsdkjhfsdlkjhfsdf 7 years ago
parent 0ea3a36559
commit eeaea5fa01

@ -62,12 +62,15 @@ NS_ASSUME_NONNULL_BEGIN
// mask orientation manually. // mask orientation manually.
BOOL hasOutgoingMask = self.isOutgoing ^ self.isRTL; BOOL hasOutgoingMask = self.isOutgoing ^ self.isRTL;
// Since the caption has it's own tail, the media bubble looks better // Since the caption has it's own tail, the media bubble just above
// without a tail. // it looks better without a tail.
if (self.hideTail) { if (self.hideTail) {
self.layoutMargins = UIEdgeInsetsMake(0, 0, 2, 8); self.layoutMargins = UIEdgeInsetsMake(0, 0, 2, 8);
maskedSubview.clipsToBounds = YES; maskedSubview.clipsToBounds = YES;
maskedSubview.layer.cornerRadius = 10;
// I arrived at this cornerRadius by superimposing the generated corner
// over that generated from the JSQMessagesMediaViewBubbleImageMasker
maskedSubview.layer.cornerRadius = 17;
} else { } else {
[JSQMessagesMediaViewBubbleImageMasker applyBubbleImageMaskToMediaView:maskedSubview [JSQMessagesMediaViewBubbleImageMasker applyBubbleImageMaskToMediaView:maskedSubview
isOutgoing:hasOutgoingMask]; isOutgoing:hasOutgoingMask];

Loading…
Cancel
Save