mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-17 12:46:47 -06:00
Fixes #1612. ## Summary Sets the number of lines to 0, and to make the group prettier also hides the labels when empty. ## Screenshots 
9 lines
157 B
Swift
9 lines
157 B
Swift
import WatchKit
|
|
|
|
extension WKInterfaceLabel {
|
|
func setTextAndHideIfEmpty(_ text: String) {
|
|
setText(text)
|
|
setHidden(text.isEmpty)
|
|
}
|
|
}
|