From 1fb03b0441df6e5280d201c325019d6cc8699f47 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 07:17:58 -0600 Subject: [PATCH] Update uYouPlus.xm --- Sources/uYouPlus.xm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index f2e3efb..09537b4 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -18,6 +18,14 @@ NSBundle *tweakBundle = uYouPlusBundle(); // // Notifications Tab appearance +UIImage *resizeImage(UIImage *image, CGSize newSize) { + UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0); + [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; + UIImage *resizedImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return resizedImage; +} + static int getNotificationIconStyle() { return [[NSUserDefaults standardUserDefaults] integerForKey:@"notificationIconStyle"]; }