mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -10,6 +10,7 @@ public enum MessageBubbleImageNeighbors {
|
||||
case bottom
|
||||
case both
|
||||
case side
|
||||
case extracted
|
||||
}
|
||||
|
||||
public func messageSingleBubbleLikeImage(fillColor: UIColor, strokeColor: UIColor) -> UIImage {
|
||||
@@ -117,6 +118,12 @@ public func messageBubbleImage(maxCornerRadius: CGFloat, minCornerRadius: CGFloa
|
||||
bottomLeftRadius = side ? minCornerRadius : maxCornerRadius
|
||||
bottomRightRadius = minCornerRadius
|
||||
drawTail = false
|
||||
case .extracted:
|
||||
topLeftRadius = maxCornerRadius
|
||||
topRightRadius = maxCornerRadius
|
||||
bottomLeftRadius = maxCornerRadius
|
||||
bottomRightRadius = maxCornerRadius
|
||||
drawTail = false
|
||||
}
|
||||
|
||||
let fixedMainDiameter: CGFloat = 33.0
|
||||
|
||||
Reference in New Issue
Block a user