Skip to content

Commit

Permalink
CALabel.stringValue
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Oct 27, 2023
1 parent 0e1d67c commit 9a5645e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/CommonAppleKit/CommonAppleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@
}
}

public extension CALabel {
var stringValue: String {
get {
text ?? ""
}

set {
text = newValue
}
}
}

public extension CAButton {
func addTargetForPrimaryActionTriggered(
_ target: AnyObject,
Expand Down

0 comments on commit 9a5645e

Please sign in to comment.