Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit c9ff21e

Browse files
Luis PadronLuis Padron
authored andcommitted
Add fix for pixelation and bluriness on retina
Update podspec
1 parent 40dfb10 commit c9ff21e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

UICircularProgressRing.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "UICircularProgressRing"
5-
s.version = "1.1.1"
5+
s.version = "1.1.2"
66
s.summary = "A highly customizable circular progress bar for iOS written in Swift 3"
77

88
s.description = <<-DESC

UICircularProgressRing/UICircularProgressRingView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,10 @@ import UIKit
533533

534534
*/
535535
private func initialize() {
536+
// Helps with pixelation and blurriness on retina devices
537+
self.layer.contentsScale = UIScreen.main.scale
538+
self.layer.shouldRasterize = true
539+
self.layer.rasterizationScale = UIScreen.main.scale * 2
536540
self.ringLayer.value = value
537541
self.ringLayer.maxValue = maxValue
538542
self.ringLayer.viewStyle = viewStyle

0 commit comments

Comments
 (0)