Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix: sharpen blurry checkmark icon (#1487)
Browse files Browse the repository at this point in the history
`image(with)` is currently buggy and returns an image with the wrong scale (causing it to be blurry).  Remove this call, it is actually unnecessary because `tintColor` does the same thing.
  • Loading branch information
colinbrash authored and saeedbashir committed Apr 9, 2021
1 parent 1f68e01 commit 5af57de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CourseOutlineItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public class CourseOutlineItemView: UIView {

func setContentIcon(icon: Icon?, color: UIColor) {
shouldShowLeadingView = true
let image = icon?.imageWithFontSize(size: SmallIconSize).image(with: color)
let image = icon?.imageWithFontSize(size: SmallIconSize)
leadingImageButton.setImage(image, for: .normal)
leadingImageButton.tintColor = color
if let accessibilityText = icon?.accessibilityText {
Expand Down

0 comments on commit 5af57de

Please sign in to comment.