Skip to content

Commit cae1a6b

Browse files
author
jrapoport
committed
missing image key should fallback to the image name
If the image key isn’t actually mapped to anything, then just assume the key is the image name.
1 parent 84bcf0e commit cae1a6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AWLThemeManager/AWLThemeManager.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ - (UIImage *)imageforKey:(NSString *)key forTheme:(NSString*)themeName
131131

132132
NSString *imageName = [self objectForKey:key forTheme:themeName];
133133

134+
if (imageName == nil) {
135+
imageName = key;
136+
}
134137
return [self imageNamed:imageName forTheme:themeName];
135138
}
136139

0 commit comments

Comments
 (0)