From 4c4dad9c949ad458adf08a79efd0324e928d03dc Mon Sep 17 00:00:00 2001 From: Doug Russell Date: Thu, 16 Nov 2023 08:03:18 -0500 Subject: [PATCH] Add missing public --- Sources/AX/AXUIElement.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/AX/AXUIElement.swift b/Sources/AX/AXUIElement.swift index 315357e..0ee19f2 100644 --- a/Sources/AX/AXUIElement.swift +++ b/Sources/AX/AXUIElement.swift @@ -264,7 +264,7 @@ public struct UIElement: Sendable, CustomStringConvertible, CustomDebugStringCon /// /// /// See also `public func AXUIElementIsAttributeSettable(_ element: AXUIElement, _ attribute: CFString, _ settable: UnsafeMutablePointer) -> AXError` - func isSettable(attribute: NSAccessibility.Attribute) throws -> Bool { + public func isSettable(attribute: NSAccessibility.Attribute) throws -> Bool { var value: DarwinBoolean = false let result = AXUIElementIsAttributeSettable( element, @@ -276,7 +276,7 @@ public struct UIElement: Sendable, CustomStringConvertible, CustomDebugStringCon /// /// /// See also `public func AXUIElementSetAttributeValue(_ element: AXUIElement, _ attribute: CFString, _ value: CoreFoundation.CFTypeRef) -> AXError` - func set( + public func set( attribute: NSAccessibility.Attribute, value: Any? ) throws { @@ -292,7 +292,7 @@ public struct UIElement: Sendable, CustomStringConvertible, CustomDebugStringCon /// /// /// See also `public func AXUIElementCopyActionNames(_ element: AXUIElement, _ names: UnsafeMutablePointer) -> AXError` - func actions() throws -> [NSAccessibility.Action] { + public func actions() throws -> [NSAccessibility.Action] { var actions: CFArray? return try AXUIElementCopyActionNames( element, @@ -303,7 +303,7 @@ public struct UIElement: Sendable, CustomStringConvertible, CustomDebugStringCon /// /// /// See also `public func AXUIElementCopyActionDescription(_ element: AXUIElement, _ action: CFString, _ description: UnsafeMutablePointer) -> AXError` - func description(action: NSAccessibility.Action) throws -> String { + public func description(action: NSAccessibility.Action) throws -> String { var description: CFString? return try AXUIElementCopyActionDescription( element, @@ -315,7 +315,7 @@ public struct UIElement: Sendable, CustomStringConvertible, CustomDebugStringCon /// /// /// See also `public func AXUIElementPerformAction(_ element: AXUIElement, _ action: CFString) -> AXError` - func perform(action: NSAccessibility.Action) throws { + public func perform(action: NSAccessibility.Action) throws { try AXUIElementPerformAction( element, action as CFString