Skip to content

Commit

Permalink
Silence warning in AXExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
Eskils committed Aug 8, 2024
1 parent a4fe867 commit 2bda1c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rectangle/Utilities/AXExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ extension AXValue {

static func from<T>(value: T, type: AXValueType) -> AXValue? {
var value = value
return AXValueCreate(type, &value)
return withUnsafePointer(to: &value) { valuePointer in
AXValueCreate(type, valuePointer)
}
}
}

Expand Down

0 comments on commit 2bda1c5

Please sign in to comment.