-
Notifications
You must be signed in to change notification settings - Fork 57
A signal equivalent to AVMakeRectWithAspectRatioInsideRect ? #73
Comments
I want to add something like this as a RAC extension:
edit here's another possibility:
Thoughts? |
A method like that would be useful, but we can't introduce a dependency on AVFoundation. If you're willing to rewrite the sizing algorithm from scratch, I'd be happy to review a PR. |
Yeah, I tried to find the actual implementation, but of course avfoundations m files are a tightly guarded secret. I'll try to come up with something equivalent. |
In that case, let's leave this open until a PR is merged that completes it. |
Instead of targeting |
First things first. Submitting pull request to Archimedes for the functions themselves. Then a special RACSignal should be added to use them. |
I've been constructing my own signal to pass a
CGSize
through AVFoundation's very useful AVMakeRectWithAspectRatioInsideRect function. Example:I was going to submit a pull request for a
RACSignal
category containing a simplified version of my above signal, but there's a problem.AVMakeRectWithAspectRatioInsideRect
requires AVFoundation, and I'm not sure it's a good idea to add a big dependency like that to RCL.What would the best way be to add this functionality to RCL (or RAC)?
The text was updated successfully, but these errors were encountered: