// // UICollectionViewLayout+ASConvenience.mm // Texture // // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved. // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // #ifndef MINIMAL_ASDK #import #import #import @implementation UICollectionViewLayout (ASLayoutInspectorProviding) - (id)asdk_layoutInspector { UICollectionViewFlowLayout *flow = ASDynamicCast(self, UICollectionViewFlowLayout); if (flow != nil) { return [[ASCollectionViewFlowLayoutInspector alloc] initWithFlowLayout:flow]; } else { return [[ASCollectionViewLayoutInspector alloc] init]; } } @end #endif