Fix pixelated initials in avatar

This commit is contained in:
Jeremy Bouillanne
2017-11-10 15:55:37 +01:00
parent 9347aa0809
commit f1e5b31eae
+1 -1
View File
@@ -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