Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a warning - remove unused userInterfaceStyle property #2614

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class CarPlayDomainsListTemplate: CarPlayTemplateProvider {
}

func updateList(domains: [Domain]) {
let userInterfaceStyle = interfaceController?.carTraitCollection.userInterfaceStyle
let items: [CPListItem] = domains.map { domain in
let itemTitle = domain.localizedDescription
let listItem = CPListItem(
Expand All @@ -39,7 +38,7 @@ class CarPlayDomainsListTemplate: CarPlayTemplateProvider {
.carPlayIcon() : domain.icon
.carPlayIcon()
)
listItem.accessoryType = CPListItemAccessoryType.disclosureIndicator
listItem.accessoryType = .disclosureIndicator
listItem.handler = { [weak self] _, completion in
self?.viewModel.listItemHandler(domain: domain.rawValue)
completion()
Expand Down