mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-03 19:54:31 +00:00
Fix image corner radius
This commit is contained in:
@@ -2759,7 +2759,7 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
|
||||
|
||||
return newImage
|
||||
}
|
||||
let updatedImage = roundedImageWithTransparentCorners(image: image, cornerRadius: 180.0)!
|
||||
let updatedImage = roundedImageWithTransparentCorners(image: image, cornerRadius: floor(image.size.width * 0.03))!
|
||||
self.interaction?.insertEntity(DrawingStickerEntity(content: .image(updatedImage, .rectangle)), scale: 2.5)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user