From f1e5b31eae0e09a18cc4ada4e53a14780f667d76 Mon Sep 17 00:00:00 2001 From: Jeremy Bouillanne Date: Fri, 10 Nov 2017 15:55:37 +0100 Subject: [PATCH] Fix pixelated initials in avatar --- Sources/Views/AvatarView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Views/AvatarView.swift b/Sources/Views/AvatarView.swift index 44d5f229..0fde7a29 100644 --- a/Sources/Views/AvatarView.swift +++ b/Sources/Views/AvatarView.swift @@ -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