HomeiOS Developmentios - Easy manner to make use of digicam to take a...

ios – Easy manner to make use of digicam to take a photograph in swift


I am curious, is there a quite simple, ideally SwiftUI-native, iOS/iPadOS API obtainable that may enable the person to take a photograph that can be used instantly in my App (without having to go to digicam roll)? I’ve discovered Apple’s “tutorial” on Capturing and Saving a Picture, and I do know there may be a minimum of one Stack Overflow reply on this space, however these are too convoluted in comparison with my expectations. I am searching for an API like:

let pathToPhoto = MyFramework_takePhoto()

Perhaps it will return one thing in RAM as a substitute of on disk. Perhaps there can be optionally available parameters. However the level is, for a lot of use-cases, it must be this easy to get a photograph from no matter digicam is connected to the machine. I do not thoughts if the API has full management of my App’s principal thread whereas the digicam is lively. I think about one thing just like the behaviour within the Messages app, whenever you select “Digital camera” from the “+” button.

Having simply checked just a few third-party apps that take pictures, I can see that they’ve a customized interface for taking pictures, so I believe I do know what the reply goes to be, as far as Apple API is anxious. 🙁
But when Apple would not provide such an API, is there a Swift Bundle that does?

I’ve regarded within the Swift Bundle Index, and Digital camera Supervisor looks as if it may be an honest selection. Any steering on this space can be appreciated!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments