mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge commit '10977e207186151959ab37cb5e73191df188dfd7'
This commit is contained in:
commit
08ebdf6f90
@ -99,7 +99,7 @@ private func generateBadgePath(rectSize: CGSize, tailPosition: CGFloat? = 0.5) -
|
||||
withCenter: CGPoint(x: rect.minX + cornerRadius, y: rect.minY + cornerRadius),
|
||||
radius: cornerRadius,
|
||||
startAngle: .pi,
|
||||
endAngle: .pi + leftArcEndAngle,
|
||||
endAngle: .pi + max(0.0001, leftArcEndAngle),
|
||||
clockwise: true
|
||||
)
|
||||
|
||||
@ -136,7 +136,7 @@ private func generateBadgePath(rectSize: CGSize, tailPosition: CGFloat? = 0.5) -
|
||||
path.addArc(
|
||||
withCenter: CGPoint(x: rect.minX + rectSize.width - cornerRadius, y: rect.minY + cornerRadius),
|
||||
radius: cornerRadius,
|
||||
startAngle: rightArcStartAngle,
|
||||
startAngle: min(-0.0001, rightArcStartAngle),
|
||||
endAngle: 0.0,
|
||||
clockwise: true
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user