summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLMenuCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLMenuCell.m')
-rw-r--r--SmartDeviceLink/SDLMenuCell.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLMenuCell.m b/SmartDeviceLink/SDLMenuCell.m
index 0d2d9f03e..cc7bfd53c 100644
--- a/SmartDeviceLink/SDLMenuCell.m
+++ b/SmartDeviceLink/SDLMenuCell.m
@@ -37,10 +37,15 @@ NS_ASSUME_NONNULL_BEGIN
}
- (instancetype)initWithTitle:(NSString *)title subCells:(NSArray<SDLMenuCell *> *)subCells {
+ return [self initWithTitle:title icon:nil subCells:subCells];
+}
+
+- (instancetype)initWithTitle:(NSString *)title icon:(nullable SDLArtwork *)icon subCells:(NSArray<SDLMenuCell *> *)subCells {
self = [super init];
if (!self) { return nil; }
_title = title;
+ _icon = icon;
_subCells = subCells;
_cellId = UINT32_MAX;