Skip to content

Commit

Permalink
Merge pull request #1438 from smartdevicelink/bugfix/issue_1437_swift…
Browse files Browse the repository at this point in the history
…_example_app_does_not_compile

Fixed Swift Example app not compiling
  • Loading branch information
joeljfischer authored Oct 15, 2019
2 parents 58216db + fdd5855 commit f1c98cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Example Apps/Example Swift/MenuManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private extension MenuManager {
})
}

return SDLMenuCell(title: ACGetAllVehicleDataMenuName, submenuLayout: .tiles, icon: SDLArtwork(image: UIImage(named: CarBWIconImageName)!.withRenderingMode(.alwaysTemplate), persistent: true, as: .PNG), subCells: submenuItems)
return SDLMenuCell(title: ACGetAllVehicleDataMenuName, icon: SDLArtwork(image: UIImage(named: CarBWIconImageName)!.withRenderingMode(.alwaysTemplate), persistent: true, as: .PNG), submenuLayout: .tiles, subCells: submenuItems)
}

/// A list of all possible vehicle data types
Expand Down Expand Up @@ -151,7 +151,7 @@ private extension MenuManager {
}
}))

return SDLMenuCell(title: ACSubmenuTemplateMenuName, submenuLayout: .list, icon: nil, subCells: submenuItems)
return SDLMenuCell(title: ACSubmenuTemplateMenuName, icon: nil, submenuLayout: .list, subCells: submenuItems)
}

/// Menu item that opens a submenu when selected
Expand All @@ -174,7 +174,7 @@ private extension MenuManager {
}))
}

return SDLMenuCell(title: ACSubmenuMenuName, submenuLayout: .list, icon: SDLArtwork(image: #imageLiteral(resourceName: "choice_set").withRenderingMode(.alwaysTemplate), persistent: true, as: .PNG), subCells: submenuItems)
return SDLMenuCell(title: ACSubmenuMenuName, icon: SDLArtwork(image: #imageLiteral(resourceName: "choice_set").withRenderingMode(.alwaysTemplate), persistent: true, as: .PNG), submenuLayout: .list, subCells: submenuItems)
}

private class func sliderMenuCell(with manager: SDLManager) -> SDLMenuCell {
Expand Down

0 comments on commit f1c98cd

Please sign in to comment.