Post

Replies

Boosts

Views

Activity

Reply to How to print a local file from printer in cocoa application?
1.File can be any type : Word,Excel,PPT,Keynote,Text,RTF,Pages,numbers .2. My App is not sandboxed Yes i want to print from my aooI tried lp command in shell which is printing only PDF'sApple script also i triedM looking for swift framework , PDF kit is also printing obly PDF docs . I already posted below question regardingHow to print a non PDF document from MacOS using swift or shell script
Apr ’20
Reply to How to to expose elements for automation but not for accessibility in swift UIKit?
This is a working solution dataDisclosureView.accessibilityElements = [dataDisclosureView as Any, titleLabel as Any, descriptionLabel as Any, requestButton as Any, hintLabel as Any] if #available(iOS 17.0, *) { dataDisclosureView.automationElements = [titleLabel as Any, descriptionLabel as Any, requestButton as Any, hintLabel as Any] } else { // Fallback on earlier versions } but I am not satisfied with that because in one of Apple WWDC video it was mentioned that if we want exempt item from voice over accessibility don't add it in accessibilityItems and if we want in automation elements just add it. They haven't provided deeper details . Reference is https://www.youtube.com/watch?v=IAqzXI3kFCk also adding screenshot about what I am saying According to this it should be dataDisclosureView.accessibilityElements = [dataDisclosureView as Any, titleLabel as Any, descriptionLabel as Any, requestButton as Any] if #available(iOS 17.0, *) { dataDisclosureView.automationElements = [titleLabel as Any, descriptionLabel as Any, requestButton as Any, hintLabel as Any] } else { // Fallback on earlier versions }
3w