From 941a8a79c662bcd045139f2200e44831e82ea58b Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:59:40 -0500 Subject: [PATCH] added placeholder arrow icon (AppIconOptionsController.m) --- Sources/AppIconOptionsController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/AppIconOptionsController.m b/Sources/AppIconOptionsController.m index f006650..fb759f2 100644 --- a/Sources/AppIconOptionsController.m +++ b/Sources/AppIconOptionsController.m @@ -29,8 +29,11 @@ [self.view addSubview:self.tableView]; UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil]; - UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:backImage style:UIBarButtonItemStylePlain target:self action:@selector(back)]; - self.navigationItem.leftBarButtonItem = backButton; + if (!backImage) { + backButton.image = [UIImage systemImageNamed:@"chevron.backward"]; + } else { + backButton.image = backImage; + } UIBarButtonItem *resetButton = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStylePlain target:self action:@selector(resetIcon)]; [resetButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:17]} forState:UIControlStateNormal];