CKRatioLayoutComponent Class Reference
Inherits from | CKLayoutComponent : CKComponent : NSObject |
---|---|
Declared in | CKRatioLayoutComponent.h |
Overview
@uidocs https://fburl.com/CKRatioLayoutComponent:b4d0
Ratio layout component For when the content should respect a certain inherent ratio but can be scaled (think photos or videos) The ratio passed is the ratio of height / width you expect
For a ratio 0.5, the component will have a flat rectangle shape
| | | _ _ |
For a ratio 2.0, the component will be twice as tall as it is wide _ _ | | | | | | | |
*