Skip to content

Commit 133b659

Browse files
committed
Support getting int value from AXUIElement
1 parent 44ab963 commit 133b659

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Tool/Sources/AXExtension/AXUIElement.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public extension AXUIElement {
2121
var value: String {
2222
(try? copyValue(key: kAXValueAttribute)) ?? ""
2323
}
24+
25+
var intValue: Int? {
26+
(try? copyValue(key: kAXValueAttribute))
27+
}
2428

2529
var title: String {
2630
(try? copyValue(key: kAXTitleAttribute)) ?? ""

0 commit comments

Comments
 (0)