mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Fix pixelated initials in avatar
This commit is contained in:
@@ -89,7 +89,7 @@ open class AvatarView: UIView {
|
||||
if width == 0 || height == 0 {return UIImage()}
|
||||
var font = placeholderFont
|
||||
|
||||
_ = UIGraphicsBeginImageContext(CGSize(width: width, height: height))
|
||||
_ = UIGraphicsBeginImageContextWithOptions(CGSize(width: width, height: height), false, UIScreen.main.scale)
|
||||
let context = UIGraphicsGetCurrentContext()!
|
||||
|
||||
//// Text Drawing
|
||||
|
||||
Reference in New Issue
Block a user