From b1af71b251b2927f2ef14cd6c32f90e4eeef095d Mon Sep 17 00:00:00 2001 From: noorhashem Date: Wed, 24 Jun 2020 17:14:48 +0200 Subject: [PATCH] code styling --- Extensions/Today/TodayViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/Today/TodayViewController.swift b/Extensions/Today/TodayViewController.swift index 8dc5973df866..02d4d3ce5809 100644 --- a/Extensions/Today/TodayViewController.swift +++ b/Extensions/Today/TodayViewController.swift @@ -203,14 +203,14 @@ extension UIButton { func setBackgroundColor(_ color: UIColor, forState state: UIControl.State) { let colorView = UIView(frame: CGRect(width: 1, height: 1)) colorView.backgroundColor = color - + UIGraphicsBeginImageContext(colorView.bounds.size) if let context = UIGraphicsGetCurrentContext() { colorView.layer.render(in: context) } let colorImage = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() - + self.setBackgroundImage(colorImage, for: state) } }