mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-12 05:08:23 -05:00
## Summary Adds more detail to the list and reshuffles detail to include up/down buttons to move through entries. ## Screenshots <img width="350" src="https://user-images.githubusercontent.com/74188/110901125-ad6b0f00-82b8-11eb-9575-f0437e8bb313.png"><img width="350" src="https://user-images.githubusercontent.com/74188/110901132-af34d280-82b8-11eb-947f-4b967e7f38fe.png"> <img width="350" src="https://user-images.githubusercontent.com/74188/110898692-8f031480-82b4-11eb-9d51-61664224758e.png"><img width="350" src="https://user-images.githubusercontent.com/74188/110898697-90ccd800-82b4-11eb-9403-d3ae7038d5cd.png"> ## Any other notes This also adds more information to the debug file shared and improves the selected state handling in the list.
17 lines
487 B
Swift
17 lines
487 B
Swift
#if os(iOS)
|
|
import UIKit
|
|
|
|
public extension UIBarButtonItem {
|
|
convenience init(icon: MaterialDesignIcons, target: Any?, action: Selector?) {
|
|
self.init(
|
|
image: icon.image(ofSize: CGSize(width: 28, height: 28), color: nil),
|
|
landscapeImagePhone: icon.image(ofSize: CGSize(width: 20, height: 20), color: nil),
|
|
style: .plain,
|
|
target: target,
|
|
action: action
|
|
)
|
|
accessibilityLabel = icon.name
|
|
}
|
|
}
|
|
#endif
|