Skip to content

Commit

Permalink
Fix a warning - remove unused userInterfaceStyle property (#2614)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->

🚮 

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->
![Screenshot 2024-02-29 at 8 06
20](https://github.com/home-assistant/iOS/assets/35694712/2de12347-01f9-4e42-a689-fa814a64c2fb)
  • Loading branch information
michalsrutek committed Feb 29, 2024
1 parent 60b1fcf commit 328b0d8
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 328b0d8

Please sign in to comment.