macOS Photos allows me to tag people that are in my photos. Is there anyway to access these tags via PHAssest or someother mechanism?
Post
Replies
Boosts
Views
Activity
I'm developing a photos extension application. Sometimes the users photos can be local on disk and sometimes they have to be fetched over network from iCloud. Testing the application under the 'fetch from iCloud' conditioin is tedious, delete all local photos-> upload new batch to icloud -> sync with iCloud. Does iCloud maybe have a developer mode to avoid these steps?
I have an apple pages document stored in my apps bundle. How can i open this document in pages?i've tried:UIApplication.shared.openURL(tempUrl)where tempUrl looks like"file:///var/containers/Bundle/Application/92EF2211-48F9-40C5-A0E8-3AD6598569D8/PrestoPhoto.app/Frameworks/PrestoAssets_iOS.framework/storage/designer/2135/Apple%20Pages%207/Presto%20Photo%20Book%20-%20Stock%20Book%20Black%20-%20Landscape.template"When i doUIApplication.shared.canOpenURL(tempUrl)I geterror: "This app is not allowed to query for scheme file"So i think i have to set LSApplicationQueriesSchemes in info.plist to whatever the scheme is for apple pages which i can not find. i've tried pages://, applepages:// etc. what is the scheme for apple pages?
My app writes files to the users shared Documents directory. I save the files path but this breaks if the user changes the documents name, moves the document to a new location etc. Is there some kind of persistent file id i can use to keep track of these documents? i've been poking aroundFileManager.default.attributesOfItem(atPath: docUrl.path)and i find attributes like FileAttributeKey.systemFileNumber but this number seems to change every time i run the app. There has to be some way to keep track of files other than their path
This function will validate the tracking quality of an image. That is, will the phone camera be able to recognize and track a given photo. I need this functionality for a macOS application, but ARKit is not available on macOS. Can anyone give me tips on how to replicate this function? In wwdc video apple defines a trackable image as having [distinct features, well textured, good contrast] and a non trackable image as having [repetitive structures, uniform color regions, narrow histogram]. I imagine this will require python/openCV to implement, but i need more information from Apple, like how narrow is too narrow histogram? What metric for well textured? Can i use accelerate or coreImage to calculate image tracking quality?