ASRatioLayoutSpec Class Reference

Inherits from ASLayoutSpec : NSObject
Declared in ASRatioLayoutSpec.h

Overview

Ratio layout spec 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 spec will have a flat rectangle shape


| | | _ _ |

For a ratio 2.0, the spec will be twice as tall as it is wide _ _ | | | | | | | |

*