From 7668d0be1bea1e89f83e25cd251c5aafa486615c Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:31:56 -0500 Subject: [PATCH] Add YT Back Icon Support (AppIconOptionsController.m) --- Sources/AppIconOptionsController.m | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Sources/AppIconOptionsController.m b/Sources/AppIconOptionsController.m index c6f1257..fc7fa20 100644 --- a/Sources/AppIconOptionsController.m +++ b/Sources/AppIconOptionsController.m @@ -27,13 +27,7 @@ self.tableView.backgroundColor = (self.pageStyle == UIUserInterfaceStyleLight) ? [UIColor whiteColor] : [UIColor blackColor]; [self.view addSubview:self.tableView]; - UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:@selector(back)]; - UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil]; - if (!backImage) { - backButton.image = [UIImage systemImageNamed:@"chevron.backward"]; - } else { - backButton.image = backImage; - } + UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Back.png" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil] style:UIBarButtonItemStylePlain target:self action:@selector(back)]; [backButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor blackColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:20]} forState:UIControlStateNormal]; self.navigationItem.leftBarButtonItem = backButton;