added placeholder arrow icon (AppIconOptionsController.m)

This commit is contained in:
arichornlover 2024-04-15 23:59:40 -05:00 committed by GitHub
parent c8f16a2ec8
commit 941a8a79c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];