mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
+ Dynamic widths of the outlines, depending on the size of annotations.
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
|
||||
self.strokeLayer.frame = self.bounds;
|
||||
self.strokeLayer.path = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:10].CGPath;
|
||||
|
||||
CGFloat lineWidth = MAX(self.frame.size.width / 10.0f,10);
|
||||
|
||||
[CATransaction begin];
|
||||
[CATransaction setAnimationDuration:0];
|
||||
self.strokeLayer.lineWidth = lineWidth/1.5f;
|
||||
self.shapeLayer.lineWidth = lineWidth / 3.0f;
|
||||
|
||||
[CATransaction commit];
|
||||
}
|
||||
|
||||
-(BOOL)resizable {
|
||||
|
||||
Reference in New Issue
Block a user