Posts

Showing posts with the label ios

Distance between face and camera using ARKit

Is there any where are you to get distance between camera and face using ARKit ? I think this is possible by using the ARFaceAnchor.leftEyeTransform and ARFaceAnchor.rightEyeTransform properties. Once you have these you can get the approximate distance of the eyes to the Camera using the worldPosition of the Eyes and subtracting the position of the Camera e.g. SCNVector3Zero . Below is a very crude example with all the code commented so it should be easy enough to understand: Hope it helps... By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

xcode how to develop with frameworks

Thanks for spending time reading my question. I've been working as an iOS developer for more than 2 years and today I still feel shame because I don't know how to deal with frameworks. I've build some projects using my own frameworks, but I've never understood exactly what's the best practice doing this. Lets see the following example: Project -> FrameworkA -> AFNetworking - Charts - FMDB - more So, I have a big FrameworkA with mostly all the app behavior and then a small project referencing this FrameworkA and customizing just icons, texts and images. I use to manage dependencies with CocoaPods and I would like to use it with FrameworkA. By this I could reference external libraries easily, but it seems it doesn't work for frameworks, only for projects. So, my questions is: how can I add AFNetworking, Charts, FMDB, etc to my FrameworkA and then reference the framework form my project? I appreciate if you can give me some idea using CocoaPods or any other d...

TabelView Delegate methods using RxSwift

I am using RxSwift for TableView.I need to calculate height of dynamic cells previously I did it in WillDisplayCell delegate method. I don't know how to bind TableView Delegate methods with RxSwift. Can any one help? Conform your View Controller Then add this in viewDidLoad() then you write UITableViewDelegate methods. Actually you can. Try this: By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.