Skip to content

Commit

Permalink
Fix multivalue row icons not falling back on SF Symbols
Browse files Browse the repository at this point in the history
fixes  #492, thanks @Jon-Schneider
  • Loading branch information
futuretap committed Jul 1, 2024
1 parent 5b6a33c commit 4a25f3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion InAppSettingsKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'InAppSettingsKit'
s.version = '3.7.1'
s.version = '3.7.2'
s.summary = 'This iPhone framework allows settings to be in-app in addition to being in the Settings app.'

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
// This tries to read the image from the main bundle. As this is currently not supported in
// system settings, this should be the correct behaviour. (Idea: abstract away and try different
// paths?)
UIImage *image = [UIImage imageNamed:iconName];
cell.imageView.image = image;
if (@available(iOS 13.0, *)) {
cell.imageView.image = [UIImage imageNamed:iconName] ?: [UIImage systemImageNamed:iconName];
} else {
cell.imageView.image = [UIImage imageNamed:iconName];
}
}
}
@catch (NSException * e) {}
Expand Down

0 comments on commit 4a25f3e

Please sign in to comment.