mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-28 23:35:27 +08:00
fix: compile macos semantic helper
This commit is contained in:
@@ -74,9 +74,13 @@ func bounds(_ element: AXUIElement) -> [String: Double]? {
|
|||||||
|
|
||||||
var point = CGPoint.zero
|
var point = CGPoint.zero
|
||||||
var size = CGSize.zero
|
var size = CGSize.zero
|
||||||
guard let positionAxValue = positionValue as? AXValue,
|
guard CFGetTypeID(positionValue) == AXValueGetTypeID(),
|
||||||
let sizeAxValue = sizeValue as? AXValue,
|
CFGetTypeID(sizeValue) == AXValueGetTypeID()
|
||||||
AXValueGetValue(positionAxValue, .cgPoint, &point),
|
else { return nil }
|
||||||
|
|
||||||
|
let positionAxValue = positionValue as! AXValue
|
||||||
|
let sizeAxValue = sizeValue as! AXValue
|
||||||
|
guard AXValueGetValue(positionAxValue, .cgPoint, &point),
|
||||||
AXValueGetValue(sizeAxValue, .cgSize, &size)
|
AXValueGetValue(sizeAxValue, .cgSize, &size)
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user