iOS/Sources/Extensions/Watch/Utilities/WKInterfaceLabel+Additions....

9 lines
157 B
Swift

import WatchKit
extension WKInterfaceLabel {
func setTextAndHideIfEmpty(_ text: String) {
setText(text)
setHidden(text.isEmpty)
}
}