[
  {
    "path": ".gitignore",
    "content": "DynamicClipImage.xcodeproj/xcuserdata/\n.DS_Store\nDynamicClipImage.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/\nPods/Pods.xcodeproj/xcuserdata/*.xcuserdatad/\nDynamicClipImage.xcworkspace/xcuserdata/*.xcuserdatad/\nbuild/\nDynamicClipImage.xcworkspace/xcshareddata/\n*.swp\n*.xcscheme\n\n# fastlane specific\nfastlane/report.xml\nfastlane/Preview.html\nfastlane/screenshots\nfastlane/test_output\n.idea/\n\n#oclint\ncheckResults.html\ncompile_commands.json\noclint.html\n"
  },
  {
    "path": "DynamicClipImage/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n"
  },
  {
    "path": "DynamicClipImage/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"YasicClipPage.h\"\n\n@interface AppDelegate ()\n\n@end\n\n@implementation AppDelegate\n\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];\n    [self.window setBackgroundColor:[UIColor whiteColor]];\n    YasicClipPage *vc = [[YasicClipPage alloc] init];\n    [self.window setRootViewController:vc];\n    [self.window makeKeyAndVisible];\n    return YES;\n}\n\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.\n}\n\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.\n}\n\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"83.5x83.5\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ios-marketing\",\n      \"size\" : \"1024x1024\",\n      \"scale\" : \"1x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "DynamicClipImage/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "DynamicClipImage/Assets.xcassets/TARGET_IMG.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"IMG_0085.JPG\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "DynamicClipImage/Assets.xcassets/TARGET_IMG_1.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"v2-57033c14c83de106b5bc7a87fdc9fbb9_b.jpg\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "DynamicClipImage/Assets.xcassets/TARGET_IMG_2.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"Image.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "DynamicClipImage/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"13122.16\" systemVersion=\"17A277\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" useSafeAreas=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"13104.12\"/>\n        <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                        <viewLayoutGuide key=\"safeArea\" id=\"6Tk-OE-BBY\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "DynamicClipImage/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"13122.16\" systemVersion=\"17A277\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" useSafeAreas=\"YES\" colorMatched=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"13104.12\"/>\n        <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" customModuleProvider=\"\" sceneMemberID=\"viewController\">\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                        <viewLayoutGuide key=\"safeArea\" id=\"6Tk-OE-BBY\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "DynamicClipImage/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "DynamicClipImage/ViewController.h",
    "content": "//\n//  ViewController.h\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"
  },
  {
    "path": "DynamicClipImage/ViewController.m",
    "content": "//\n//  ViewController.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import \"ViewController.h\"\n\n@interface ViewController ()\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    \n}\n\n\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicClipAreaLayer.h",
    "content": "//\n//  YasicClipAreaLayer.h\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <QuartzCore/QuartzCore.h>\n\n@interface YasicClipAreaLayer : CAShapeLayer\n\n@property(assign, nonatomic) NSInteger cropAreaLeft;\n@property(assign, nonatomic) NSInteger cropAreaTop;\n@property(assign, nonatomic) NSInteger cropAreaRight;\n@property(assign, nonatomic) NSInteger cropAreaBottom;\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft CropAreaTop:(NSInteger)cropAreaTop CropAreaRight:(NSInteger)cropAreaRight CropAreaBottom:(NSInteger)cropAreaBottom;\n\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicClipAreaLayer.m",
    "content": "//\n//  YasicClipAreaLayer.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import \"YasicClipAreaLayer.h\"\n#import <UIKit/UIKit.h>\n\n#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width\n#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height\n\nstatic CGFloat const lineWidth = 3;\n\n@implementation YasicClipAreaLayer\n\n- (instancetype)init\n{\n    self = [super init];\n    if (self) {\n        _cropAreaLeft = 50;\n        _cropAreaTop = 50;\n        _cropAreaRight = SCREEN_WIDTH - self.cropAreaLeft;\n        _cropAreaBottom = 400;\n    }\n    return self;\n}\n\n- (void)drawInContext:(CGContextRef)ctx\n{\n    UIGraphicsPushContext(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaLeft, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(2, 0), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaTop);\n    CGContextSetShadow(ctx, CGSizeMake(0, 2), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaRight, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(-2, 0), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaBottom);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(0, -2), 2.0);\n    CGContextStrokePath(ctx);\n    \n    UIGraphicsPopContext();\n}\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft\n{\n    _cropAreaLeft = cropAreaLeft;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaTop:(NSInteger)cropAreaTop\n{\n    _cropAreaTop = cropAreaTop;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaRight:(NSInteger)cropAreaRight\n{\n    _cropAreaRight = cropAreaRight;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaBottom:(NSInteger)cropAreaBottom\n{\n    _cropAreaBottom = cropAreaBottom;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft CropAreaTop:(NSInteger)cropAreaTop CropAreaRight:(NSInteger)cropAreaRight CropAreaBottom:(NSInteger)cropAreaBottom\n{\n    _cropAreaLeft = cropAreaLeft;\n    _cropAreaRight = cropAreaRight;\n    _cropAreaTop = cropAreaTop;\n    _cropAreaBottom = cropAreaBottom;\n    \n    [self setNeedsDisplay];\n}\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicClipPage.h",
    "content": "//\n//  YasicClipPage.h\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YasicClipPage : UIViewController\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicClipPage.m",
    "content": "//\n//  YasicClipPage.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import \"YasicClipPage.h\"\n#import <Masonry.h>\n#import \"YasicClipAreaLayer.h\"\n#import \"YasicPanGestureRecognizer.h\"\n\n#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width\n#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height\n\ntypedef NS_ENUM(NSInteger, ACTIVEGESTUREVIEW) {\n    CROPVIEWLEFT,\n    CROPVIEWRIGHT,\n    CROPVIEWTOP,\n    CROPVIEWBOTTOM,\n    BIGIMAGEVIEW\n};\n\n@interface YasicClipPage ()\n\n@property (strong, nonatomic) UIImage *targetImage;\n@property(strong, nonatomic) UIImageView *bigImageView;\n@property(strong, nonatomic) UIView *cropView;\n\n@property(assign, nonatomic) ACTIVEGESTUREVIEW activeGestureView;\n\n// 图片 view 原始 frame\n@property(assign, nonatomic) CGRect originalFrame;\n\n// 裁剪区域属性\n@property(assign, nonatomic) CGFloat cropAreaX;\n@property(assign, nonatomic) CGFloat cropAreaY;\n@property(assign, nonatomic) CGFloat cropAreaWidth;\n@property(assign, nonatomic) CGFloat cropAreaHeight;\n\n@property(nonatomic, assign) CGFloat clipHeight;\n@property(nonatomic, assign) CGFloat clipWidth;\n\n@end\n\n@implementation YasicClipPage\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    self.view.backgroundColor = [UIColor blackColor];\n    self.targetImage = [UIImage imageNamed:@\"TARGET_IMG\"];\n    \n    self.clipWidth = SCREEN_WIDTH;\n    self.clipHeight = self.clipWidth * 9/16;\n    \n    self.cropAreaX = (SCREEN_WIDTH - self.clipWidth)/2;\n    self.cropAreaY = (SCREEN_HEIGHT - self.clipHeight)/2;\n    self.cropAreaWidth = self.clipWidth;\n    self.cropAreaHeight = self.clipHeight;\n    \n    self.bigImageView.image = self.targetImage;\n}\n\n- (void)viewWillAppear:(BOOL)animated\n{\n    [self.view addSubview:self.cropView];\n    [self.view addSubview:self.bigImageView];\n    \n    [self.cropView mas_makeConstraints:^(MASConstraintMaker *make) {\n        make.left.right.top.bottom.equalTo(self.view);\n    }];\n    \n    CGFloat tempWidth = 0.0;\n    CGFloat tempHeight = 0.0;\n    \n    if (self.targetImage.size.width/self.cropAreaWidth <= self.targetImage.size.height/self.cropAreaHeight) {\n        tempWidth = self.cropAreaWidth;\n        tempHeight = (tempWidth/self.targetImage.size.width) * self.targetImage.size.height;\n    } else if (self.targetImage.size.width/self.cropAreaWidth > self.targetImage.size.height/self.cropAreaHeight) {\n        tempHeight = self.cropAreaHeight;\n        tempWidth = (tempHeight/self.targetImage.size.height) * self.targetImage.size.width;\n    }\n    \n    [self.bigImageView mas_updateConstraints:^(MASConstraintMaker *make) {\n        make.left.mas_equalTo(self.cropAreaX - (tempWidth - self.cropAreaWidth)/2);\n        make.top.mas_equalTo(self.cropAreaY - (tempHeight - self.cropAreaHeight)/2);\n        make.width.mas_equalTo(tempWidth);\n        make.height.mas_equalTo(tempHeight);\n    }];\n    self.originalFrame = CGRectMake(self.cropAreaX - (tempWidth - self.cropAreaWidth)/2, self.cropAreaY - (tempHeight - self.cropAreaHeight)/2, tempWidth, tempHeight);\n    [self addAllGesture];\n    [super viewWillAppear:animated];\n}\n\n- (void)viewDidAppear:(BOOL)animated\n{\n    [super viewDidAppear:animated];\n    [self setUpCropLayer];\n}\n\n-(void)addAllGesture\n{\n    // 捏合手势\n    UIPinchGestureRecognizer *pinGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handleCenterPinGesture:)];\n    [self.view addGestureRecognizer:pinGesture];\n    \n    // 拖动手势\n    YasicPanGestureRecognizer *panGesture = [[YasicPanGestureRecognizer alloc] initWithTarget:self action:@selector(handleDynamicPanGesture:) inview:self.cropView];\n    [self.cropView addGestureRecognizer:panGesture];\n}\n\n-(void)handleDynamicPanGesture:(YasicPanGestureRecognizer *)panGesture\n{\n    UIView * view = self.bigImageView;\n    CGPoint translation = [panGesture translationInView:view.superview];\n    \n    CGPoint beginPoint = panGesture.beginPoint;\n    CGPoint movePoint = panGesture.movePoint;\n    CGFloat judgeWidth = 20;\n    \n    // 开始滑动时判断滑动对象是 ImageView 还是 Layer 上的 Line\n    if (panGesture.state == UIGestureRecognizerStateBegan) {\n        if (beginPoint.x >= self.cropAreaX - judgeWidth && beginPoint.x <= self.cropAreaX + judgeWidth && beginPoint.y >= self.cropAreaY && beginPoint.y <= self.cropAreaY + self.cropAreaHeight && self.cropAreaWidth >= 50) {\n            self.activeGestureView = CROPVIEWLEFT;\n        } else if (beginPoint.x >= self.cropAreaX + self.cropAreaWidth - judgeWidth && beginPoint.x <= self.cropAreaX + self.cropAreaWidth + judgeWidth && beginPoint.y >= self.cropAreaY && beginPoint.y <= self.cropAreaY + self.cropAreaHeight &&  self.cropAreaWidth >= 50) {\n            self.activeGestureView = CROPVIEWRIGHT;\n        } else if (beginPoint.y >= self.cropAreaY - judgeWidth && beginPoint.y <= self.cropAreaY + judgeWidth && beginPoint.x >= self.cropAreaX && beginPoint.x <= self.cropAreaX + self.cropAreaWidth && self.cropAreaHeight >= 50) {\n            self.activeGestureView = CROPVIEWTOP;\n        } else if (beginPoint.y >= self.cropAreaY + self.cropAreaHeight - judgeWidth && beginPoint.y <= self.cropAreaY + self.cropAreaHeight + judgeWidth && beginPoint.x >= self.cropAreaX && beginPoint.x <= self.cropAreaX + self.cropAreaWidth && self.cropAreaHeight >= 50) {\n            self.activeGestureView = CROPVIEWBOTTOM;\n        } else {\n            self.activeGestureView = BIGIMAGEVIEW;\n            [view setCenter:CGPointMake(view.center.x + translation.x, view.center.y + translation.y)];\n            [panGesture setTranslation:CGPointZero inView:view.superview];\n        }\n    }\n    \n    // 滑动过程中进行位置改变\n    if (panGesture.state == UIGestureRecognizerStateChanged) {\n        CGFloat diff = 0;\n        switch (self.activeGestureView) {\n            case CROPVIEWLEFT: {\n                diff = movePoint.x - self.cropAreaX;\n                if (diff >= 0 && self.cropAreaWidth > 50) {\n                    self.cropAreaWidth -= diff;\n                    self.cropAreaX += diff;\n                } else if (diff < 0 && self.cropAreaX > self.bigImageView.frame.origin.x && self.cropAreaX >= 15) {\n                    self.cropAreaWidth -= diff;\n                    self.cropAreaX += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWRIGHT: {\n                diff = movePoint.x - self.cropAreaX - self.cropAreaWidth;\n                if (diff >= 0 && (self.cropAreaX + self.cropAreaWidth) < MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15)){\n                    self.cropAreaWidth += diff;\n                } else if (diff < 0 && self.cropAreaWidth >= 50) {\n                    self.cropAreaWidth += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWTOP: {\n                diff = movePoint.y - self.cropAreaY;\n                if (diff >= 0 && self.cropAreaHeight > 50) {\n                    self.cropAreaHeight -= diff;\n                    self.cropAreaY += diff;\n                } else if (diff < 0 && self.cropAreaY > self.bigImageView.frame.origin.y && self.cropAreaY >= 15) {\n                    self.cropAreaHeight -= diff;\n                    self.cropAreaY += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWBOTTOM: {\n                diff = movePoint.y - self.cropAreaY - self.cropAreaHeight;\n                if (diff >= 0 && (self.cropAreaY + self.cropAreaHeight) < MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15)){\n                    self.cropAreaHeight += diff;\n                } else if (diff < 0 && self.cropAreaHeight >= 50) {\n                    self.cropAreaHeight += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case BIGIMAGEVIEW: {\n                [view setCenter:CGPointMake(view.center.x + translation.x, view.center.y + translation.y)];\n                [panGesture setTranslation:CGPointZero inView:view.superview];\n                break;\n            }\n            default:\n                break;\n        }\n    }\n    \n    // 滑动结束后进行位置修正\n    if (panGesture.state == UIGestureRecognizerStateEnded) {\n        switch (self.activeGestureView) {\n            case CROPVIEWLEFT: {\n                if (self.cropAreaWidth < 50) {\n                    self.cropAreaX -= 50 - self.cropAreaWidth;\n                    self.cropAreaWidth = 50;\n                }\n                if (self.cropAreaX < MAX(self.bigImageView.frame.origin.x, 15)) {\n                    CGFloat temp = self.cropAreaX + self.cropAreaWidth;\n                    self.cropAreaX = MAX(self.bigImageView.frame.origin.x, 15);\n                    self.cropAreaWidth = temp - self.cropAreaX;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWRIGHT: {\n                if (self.cropAreaWidth < 50) {\n                    self.cropAreaWidth = 50;\n                }\n                if (self.cropAreaX + self.cropAreaWidth > MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15)) {\n                    self.cropAreaWidth = MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15) - self.cropAreaX;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWTOP: {\n                if (self.cropAreaHeight < 50) {\n                    self.cropAreaY -= 50 - self.cropAreaHeight;\n                    self.cropAreaHeight = 50;\n                }\n                if (self.cropAreaY < MAX(self.bigImageView.frame.origin.y, 15)) {\n                    CGFloat temp = self.cropAreaY + self.cropAreaHeight;\n                    self.cropAreaY = MAX(self.bigImageView.frame.origin.y, 15);\n                    self.cropAreaHeight = temp - self.cropAreaY;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWBOTTOM: {\n                if (self.cropAreaHeight < 50) {\n                    self.cropAreaHeight = 50;\n                }\n                if (self.cropAreaY + self.cropAreaHeight > MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15)) {\n                    self.cropAreaHeight = MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15) - self.cropAreaY;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case BIGIMAGEVIEW: {\n                CGRect currentFrame = view.frame;\n                \n                if (currentFrame.origin.x >= self.cropAreaX) {\n                    currentFrame.origin.x = self.cropAreaX;\n                    \n                }\n                if (currentFrame.origin.y >= self.cropAreaY) {\n                    currentFrame.origin.y = self.cropAreaY;\n                }\n                if (currentFrame.size.width + currentFrame.origin.x < self.cropAreaX + self.cropAreaWidth) {\n                    CGFloat movedLeftX = fabs(currentFrame.size.width + currentFrame.origin.x - (self.cropAreaX + self.cropAreaWidth));\n                    currentFrame.origin.x += movedLeftX;\n                }\n                if (currentFrame.size.height + currentFrame.origin.y < self.cropAreaY + self.cropAreaHeight) {\n                    CGFloat moveUpY = fabs(currentFrame.size.height + currentFrame.origin.y - (self.cropAreaY + self.cropAreaHeight));\n                    currentFrame.origin.y += moveUpY;\n                }\n                [UIView animateWithDuration:0.3 animations:^{\n                    \n                    [view setFrame:currentFrame];\n                }];\n                break;\n            }\n            default:\n                break;\n        }\n    }\n}\n\n-(void)handleCenterPinGesture:(UIPinchGestureRecognizer *)pinGesture\n{\n    CGFloat scaleRation = 3;\n    UIView * view = self.bigImageView;\n    \n    // 缩放开始与缩放中\n    if (pinGesture.state == UIGestureRecognizerStateBegan || pinGesture.state == UIGestureRecognizerStateChanged) {\n        // 移动缩放中心到手指中心\n        CGPoint pinchCenter = [pinGesture locationInView:view.superview];\n        CGFloat distanceX = view.frame.origin.x - pinchCenter.x;\n        CGFloat distanceY = view.frame.origin.y - pinchCenter.y;\n        CGFloat scaledDistanceX = distanceX * pinGesture.scale;\n        CGFloat scaledDistanceY = distanceY * pinGesture.scale;\n        CGRect newFrame = CGRectMake(view.frame.origin.x + scaledDistanceX - distanceX, view.frame.origin.y + scaledDistanceY - distanceY, view.frame.size.width * pinGesture.scale, view.frame.size.height * pinGesture.scale);\n        view.frame = newFrame;\n        pinGesture.scale = 1;\n    }\n    \n    // 缩放结束\n    if (pinGesture.state == UIGestureRecognizerStateEnded) {\n        CGFloat ration =  view.frame.size.width / self.originalFrame.size.width;\n        \n        // 缩放过大\n        if (ration > 5) {\n            CGRect newFrame = CGRectMake(0, 0, self.originalFrame.size.width * scaleRation, self.originalFrame.size.height * scaleRation);\n            view.frame = newFrame;\n        }\n        \n        // 缩放过小\n        if (ration < 0.25) {\n            view.frame = self.originalFrame;\n        }\n        // 对图片进行位置修正\n        CGRect resetPosition = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, view.frame.size.height);\n        \n        if (resetPosition.origin.x >= self.cropAreaX) {\n            resetPosition.origin.x = self.cropAreaX;\n        }\n        if (resetPosition.origin.y >= self.cropAreaY) {\n            resetPosition.origin.y = self.cropAreaY;\n        }\n        if (resetPosition.size.width + resetPosition.origin.x < self.cropAreaX + self.cropAreaWidth) {\n            CGFloat movedLeftX = fabs(resetPosition.size.width + resetPosition.origin.x - (self.cropAreaX + self.cropAreaWidth));\n            resetPosition.origin.x += movedLeftX;\n        }\n        if (resetPosition.size.height + resetPosition.origin.y < self.cropAreaY + self.cropAreaHeight) {\n            CGFloat moveUpY = fabs(resetPosition.size.height + resetPosition.origin.y - (self.cropAreaY + self.cropAreaHeight));\n            resetPosition.origin.y += moveUpY;\n        }\n        view.frame = resetPosition;\n        \n        // 对图片缩放进行比例修正，防止过小\n        if (self.cropAreaX < self.bigImageView.frame.origin.x\n            || ((self.cropAreaX + self.cropAreaWidth) > self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width)\n            || self.cropAreaY < self.bigImageView.frame.origin.y\n            || ((self.cropAreaY + self.cropAreaHeight) > self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height)) {\n            view.frame = self.originalFrame;\n        }\n    }\n}\n\n// 裁剪图片并调用返回Block\n- (void)cropImage\n{\n    CGFloat imageScale = MIN(self.bigImageView.frame.size.width/self.targetImage.size.width, self.bigImageView.frame.size.height/self.targetImage.size.height);\n    CGFloat cropX = (self.cropAreaX - self.bigImageView.frame.origin.x)/imageScale;\n    CGFloat cropY = (self.cropAreaY - self.bigImageView.frame.origin.y)/imageScale;\n    CGFloat cropWidth = self.cropAreaWidth/imageScale;\n    CGFloat cropHeight = self.cropAreaHeight/imageScale;\n    CGRect cropRect = CGRectMake(cropX, cropY, cropWidth, cropHeight);\n    \n    CGImageRef sourceImageRef = [self.targetImage CGImage];\n    CGImageRef newImageRef = CGImageCreateWithImageInRect(sourceImageRef, cropRect);\n    UIImage *newImage = [UIImage imageWithCGImage:newImageRef];\n}\n\n- (void)setUpCropLayer\n{\n    self.cropView.layer.sublayers = nil;\n    YasicClipAreaLayer * layer = [[YasicClipAreaLayer alloc] init];\n    \n    CGRect cropframe = CGRectMake(self.cropAreaX, self.cropAreaY, self.cropAreaWidth, self.cropAreaHeight);\n    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:self.cropView.frame cornerRadius:0];\n    UIBezierPath * cropPath = [UIBezierPath bezierPathWithRect:cropframe];\n    [path appendPath:cropPath];\n    layer.path = path.CGPath;\n    \n    layer.fillRule = kCAFillRuleEvenOdd;\n    layer.fillColor = [[UIColor blackColor] CGColor];\n    layer.opacity = 0.5;\n    \n    layer.frame = self.cropView.bounds;\n    [layer setCropAreaLeft:self.cropAreaX CropAreaTop:self.cropAreaY CropAreaRight:self.cropAreaX + self.cropAreaWidth CropAreaBottom:self.cropAreaY + self.cropAreaHeight];\n    [self.cropView.layer addSublayer:layer];\n    [self.view bringSubviewToFront:self.cropView];\n}\n\n- (UIImageView *)bigImageView\n{\n    if (!_bigImageView) {\n        _bigImageView = [[UIImageView alloc] init];\n        _bigImageView.contentMode = UIViewContentModeScaleAspectFit;\n    }\n    return _bigImageView;\n}\n\n- (UIView *)cropView\n{\n    if (!_cropView) {\n        _cropView = [[UIView alloc] init];\n    }\n    return _cropView;\n}\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicPanGestureRecognizer.h",
    "content": "//\n//  YasicPanGestureRecognizer.h\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YasicPanGestureRecognizer : UIPanGestureRecognizer\n\n@property(assign, nonatomic) CGPoint beginPoint;\n@property(assign, nonatomic) CGPoint movePoint;\n\n-(instancetype)initWithTarget:(id)target action:(SEL)action inview:(UIView*)view;\n\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/YasicPanGestureRecognizer.m",
    "content": "//\n//  YasicPanGestureRecognizer.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import \"YasicPanGestureRecognizer.h\"\n#import <UIKit/UIGestureRecognizerSubclass.h>\n\n@interface YasicPanGestureRecognizer()\n\n@property(strong, nonatomic) UIView *targetView;\n\n@end\n\n@implementation YasicPanGestureRecognizer\n\n-(instancetype)initWithTarget:(id)target action:(SEL)action inview:(UIView*)view{\n    \n    self = [super initWithTarget:target action:action];\n    if(self) {\n        self.targetView = view;\n    }\n    return self;\n}\n\n- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent*)event{\n    \n    [super touchesBegan:touches withEvent:event];\n    UITouch *touch = [touches anyObject];\n    self.beginPoint = [touch locationInView:self.targetView];\n}\n\n- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event\n{\n    [super touchesMoved:touches withEvent:event];\n    UITouch *touch = [touches anyObject];\n    self.movePoint = [touch locationInView:self.targetView];\n}\n\n@end\n"
  },
  {
    "path": "DynamicClipImage/main.m",
    "content": "//\n//  main.m\n//  DynamicClipImage\n//\n//  Created by yasic on 2017/11/29.\n//  Copyright © 2017年 yasic. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "DynamicClipImage.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t74B75D851FCE3A980099AE34 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75D841FCE3A980099AE34 /* AppDelegate.m */; };\n\t\t74B75D881FCE3A980099AE34 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75D871FCE3A980099AE34 /* ViewController.m */; };\n\t\t74B75D8B1FCE3A980099AE34 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 74B75D891FCE3A980099AE34 /* Main.storyboard */; };\n\t\t74B75D8D1FCE3A980099AE34 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 74B75D8C1FCE3A980099AE34 /* Assets.xcassets */; };\n\t\t74B75D901FCE3A980099AE34 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 74B75D8E1FCE3A980099AE34 /* LaunchScreen.storyboard */; };\n\t\t74B75D931FCE3A980099AE34 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75D921FCE3A980099AE34 /* main.m */; };\n\t\t74B75D9B1FCE3AFB0099AE34 /* YasicClipPage.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75D9A1FCE3AFB0099AE34 /* YasicClipPage.m */; };\n\t\t74B75D9E1FCE42B20099AE34 /* YasicClipAreaLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75D9D1FCE42B20099AE34 /* YasicClipAreaLayer.m */; };\n\t\t74B75DA11FCE76020099AE34 /* YasicPanGestureRecognizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 74B75DA01FCE76020099AE34 /* YasicPanGestureRecognizer.m */; };\n\t\tF41D9148B0A75255E11BAAC5 /* libPods-DynamicClipImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 960A348D495D06C081C775E6 /* libPods-DynamicClipImage.a */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t2E0701C8B0866E68069C0583 /* Pods-DynamicClipImage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-DynamicClipImage.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t74B75D801FCE3A980099AE34 /* DynamicClipImage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DynamicClipImage.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t74B75D831FCE3A980099AE34 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t74B75D841FCE3A980099AE34 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t74B75D861FCE3A980099AE34 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = \"<group>\"; };\n\t\t74B75D871FCE3A980099AE34 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = \"<group>\"; };\n\t\t74B75D8A1FCE3A980099AE34 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t74B75D8C1FCE3A980099AE34 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t74B75D8F1FCE3A980099AE34 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t74B75D911FCE3A980099AE34 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t74B75D921FCE3A980099AE34 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t74B75D991FCE3AFB0099AE34 /* YasicClipPage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YasicClipPage.h; sourceTree = \"<group>\"; };\n\t\t74B75D9A1FCE3AFB0099AE34 /* YasicClipPage.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YasicClipPage.m; sourceTree = \"<group>\"; };\n\t\t74B75D9C1FCE42B20099AE34 /* YasicClipAreaLayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YasicClipAreaLayer.h; sourceTree = \"<group>\"; };\n\t\t74B75D9D1FCE42B20099AE34 /* YasicClipAreaLayer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YasicClipAreaLayer.m; sourceTree = \"<group>\"; };\n\t\t74B75D9F1FCE76020099AE34 /* YasicPanGestureRecognizer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YasicPanGestureRecognizer.h; sourceTree = \"<group>\"; };\n\t\t74B75DA01FCE76020099AE34 /* YasicPanGestureRecognizer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YasicPanGestureRecognizer.m; sourceTree = \"<group>\"; };\n\t\t82EEA682B1E1CB2D22C8F949 /* Pods-DynamicClipImage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-DynamicClipImage.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t960A348D495D06C081C775E6 /* libPods-DynamicClipImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-DynamicClipImage.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t74B75D7D1FCE3A980099AE34 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tF41D9148B0A75255E11BAAC5 /* libPods-DynamicClipImage.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t1B90EECAD3A6C44BC011A86D /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t960A348D495D06C081C775E6 /* libPods-DynamicClipImage.a */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t74B75D771FCE3A980099AE34 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t74B75D821FCE3A980099AE34 /* DynamicClipImage */,\n\t\t\t\t74B75D811FCE3A980099AE34 /* Products */,\n\t\t\t\t931B745476C128B06E618124 /* Pods */,\n\t\t\t\t1B90EECAD3A6C44BC011A86D /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t74B75D811FCE3A980099AE34 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t74B75D801FCE3A980099AE34 /* DynamicClipImage.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t74B75D821FCE3A980099AE34 /* DynamicClipImage */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t74B75D831FCE3A980099AE34 /* AppDelegate.h */,\n\t\t\t\t74B75D841FCE3A980099AE34 /* AppDelegate.m */,\n\t\t\t\t74B75D861FCE3A980099AE34 /* ViewController.h */,\n\t\t\t\t74B75D871FCE3A980099AE34 /* ViewController.m */,\n\t\t\t\t74B75D891FCE3A980099AE34 /* Main.storyboard */,\n\t\t\t\t74B75D8C1FCE3A980099AE34 /* Assets.xcassets */,\n\t\t\t\t74B75D8E1FCE3A980099AE34 /* LaunchScreen.storyboard */,\n\t\t\t\t74B75D911FCE3A980099AE34 /* Info.plist */,\n\t\t\t\t74B75D921FCE3A980099AE34 /* main.m */,\n\t\t\t\t74B75D991FCE3AFB0099AE34 /* YasicClipPage.h */,\n\t\t\t\t74B75D9A1FCE3AFB0099AE34 /* YasicClipPage.m */,\n\t\t\t\t74B75D9C1FCE42B20099AE34 /* YasicClipAreaLayer.h */,\n\t\t\t\t74B75D9D1FCE42B20099AE34 /* YasicClipAreaLayer.m */,\n\t\t\t\t74B75D9F1FCE76020099AE34 /* YasicPanGestureRecognizer.h */,\n\t\t\t\t74B75DA01FCE76020099AE34 /* YasicPanGestureRecognizer.m */,\n\t\t\t);\n\t\t\tpath = DynamicClipImage;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t931B745476C128B06E618124 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t82EEA682B1E1CB2D22C8F949 /* Pods-DynamicClipImage.debug.xcconfig */,\n\t\t\t\t2E0701C8B0866E68069C0583 /* Pods-DynamicClipImage.release.xcconfig */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t74B75D7F1FCE3A980099AE34 /* DynamicClipImage */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 74B75D961FCE3A980099AE34 /* Build configuration list for PBXNativeTarget \"DynamicClipImage\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tD0000F0F6C45A6ADBB59DC04 /* [CP] Check Pods Manifest.lock */,\n\t\t\t\t74B75D7C1FCE3A980099AE34 /* Sources */,\n\t\t\t\t74B75D7D1FCE3A980099AE34 /* Frameworks */,\n\t\t\t\t74B75D7E1FCE3A980099AE34 /* Resources */,\n\t\t\t\t6AC16F1FFCAF61A7F1623B0D /* [CP] Embed Pods Frameworks */,\n\t\t\t\t0FA111F66C357263514B6984 /* [CP] Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = DynamicClipImage;\n\t\t\tproductName = DynamicClipImage;\n\t\t\tproductReference = 74B75D801FCE3A980099AE34 /* DynamicClipImage.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t74B75D781FCE3A980099AE34 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0910;\n\t\t\t\tORGANIZATIONNAME = yasic;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t74B75D7F1FCE3A980099AE34 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.1;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 74B75D7B1FCE3A980099AE34 /* Build configuration list for PBXProject \"DynamicClipImage\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 74B75D771FCE3A980099AE34;\n\t\t\tproductRefGroup = 74B75D811FCE3A980099AE34 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t74B75D7F1FCE3A980099AE34 /* DynamicClipImage */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t74B75D7E1FCE3A980099AE34 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t74B75D901FCE3A980099AE34 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t74B75D8D1FCE3A980099AE34 /* Assets.xcassets in Resources */,\n\t\t\t\t74B75D8B1FCE3A980099AE34 /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t0FA111F66C357263514B6984 /* [CP] Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"[CP] Copy Pods Resources\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t6AC16F1FFCAF61A7F1623B0D /* [CP] Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tD0000F0F6C45A6ADBB59DC04 /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t74B75D7C1FCE3A980099AE34 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t74B75D9B1FCE3AFB0099AE34 /* YasicClipPage.m in Sources */,\n\t\t\t\t74B75D9E1FCE42B20099AE34 /* YasicClipAreaLayer.m in Sources */,\n\t\t\t\t74B75D881FCE3A980099AE34 /* ViewController.m in Sources */,\n\t\t\t\t74B75DA11FCE76020099AE34 /* YasicPanGestureRecognizer.m in Sources */,\n\t\t\t\t74B75D931FCE3A980099AE34 /* main.m in Sources */,\n\t\t\t\t74B75D851FCE3A980099AE34 /* AppDelegate.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\t74B75D891FCE3A980099AE34 /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t74B75D8A1FCE3A980099AE34 /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t74B75D8E1FCE3A980099AE34 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t74B75D8F1FCE3A980099AE34 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t74B75D941FCE3A980099AE34 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t74B75D951FCE3A980099AE34 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t74B75D971FCE3A980099AE34 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 82EEA682B1E1CB2D22C8F949 /* Pods-DynamicClipImage.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"compiler-default\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = GJYQWG36VA;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tINFOPLIST_FILE = DynamicClipImage/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = developer.technology.DynamicClipImage;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t74B75D981FCE3A980099AE34 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 2E0701C8B0866E68069C0583 /* Pods-DynamicClipImage.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"compiler-default\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = GJYQWG36VA;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tINFOPLIST_FILE = DynamicClipImage/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = developer.technology.DynamicClipImage;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t74B75D7B1FCE3A980099AE34 /* Build configuration list for PBXProject \"DynamicClipImage\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t74B75D941FCE3A980099AE34 /* Debug */,\n\t\t\t\t74B75D951FCE3A980099AE34 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t74B75D961FCE3A980099AE34 /* Build configuration list for PBXNativeTarget \"DynamicClipImage\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t74B75D971FCE3A980099AE34 /* Debug */,\n\t\t\t\t74B75D981FCE3A980099AE34 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 74B75D781FCE3A980099AE34 /* Project object */;\n}\n"
  },
  {
    "path": "DynamicClipImage.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:DynamicClipImage.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "DynamicClipImage.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:DynamicClipImage.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "Podfile",
    "content": "# Uncomment the next line to define a global platform for your project\n# platform :ios, '9.0'\n\ntarget 'DynamicClipImage' do\n  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks\n  # use_frameworks!\n\n  # Pods for DynamicClipImage\n  pod 'Masonry'\nend\n"
  },
  {
    "path": "Pods/Masonry/LICENSE",
    "content": "Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
  },
  {
    "path": "Pods/Masonry/Masonry/MASCompositeConstraint.h",
    "content": "//\n//  MASCompositeConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASUtilities.h\"\n\n/**\n *\tA group of MASConstraint objects\n */\n@interface MASCompositeConstraint : MASConstraint\n\n/**\n *\tCreates a composite with a predefined array of children\n *\n *\t@param\tchildren\tchild MASConstraints\n *\n *\t@return\ta composite constraint\n */\n- (id)initWithChildren:(NSArray *)children;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASCompositeConstraint.m",
    "content": "//\n//  MASCompositeConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASCompositeConstraint.h\"\n#import \"MASConstraint+Private.h\"\n\n@interface MASCompositeConstraint () <MASConstraintDelegate>\n\n@property (nonatomic, strong) id mas_key;\n@property (nonatomic, strong) NSMutableArray *childConstraints;\n\n@end\n\n@implementation MASCompositeConstraint\n\n- (id)initWithChildren:(NSArray *)children {\n    self = [super init];\n    if (!self) return nil;\n\n    _childConstraints = [children mutableCopy];\n    for (MASConstraint *constraint in _childConstraints) {\n        constraint.delegate = self;\n    }\n\n    return self;\n}\n\n#pragma mark - MASConstraintDelegate\n\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {\n    NSUInteger index = [self.childConstraints indexOfObject:constraint];\n    NSAssert(index != NSNotFound, @\"Could not find constraint %@\", constraint);\n    [self.childConstraints replaceObjectAtIndex:index withObject:replacementConstraint];\n}\n\n- (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    id<MASConstraintDelegate> strongDelegate = self.delegate;\n    MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n    newConstraint.delegate = self;\n    [self.childConstraints addObject:newConstraint];\n    return newConstraint;\n}\n\n#pragma mark - NSLayoutConstraint multiplier proxies \n\n- (MASConstraint * (^)(CGFloat))multipliedBy {\n    return ^id(CGFloat multiplier) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.multipliedBy(multiplier);\n        }\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGFloat))dividedBy {\n    return ^id(CGFloat divider) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.dividedBy(divider);\n        }\n        return self;\n    };\n}\n\n#pragma mark - MASLayoutPriority proxy\n\n- (MASConstraint * (^)(MASLayoutPriority))priority {\n    return ^id(MASLayoutPriority priority) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.priority(priority);\n        }\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutRelation proxy\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation {\n    return ^id(id attr, NSLayoutRelation relation) {\n        for (MASConstraint *constraint in self.childConstraints.copy) {\n            constraint.equalToWithRelation(attr, relation);\n        }\n        return self;\n    };\n}\n\n#pragma mark - attribute chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    [self constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n    return self;\n}\n\n#pragma mark - Animator proxy\n\n#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)\n\n- (MASConstraint *)animator {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint animator];\n    }\n    return self;\n}\n\n#endif\n\n#pragma mark - debug helpers\n\n- (MASConstraint * (^)(id))key {\n    return ^id(id key) {\n        self.mas_key = key;\n        int i = 0;\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.key([NSString stringWithFormat:@\"%@[%d]\", key, i++]);\n        }\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant setters\n\n- (void)setInsets:(MASEdgeInsets)insets {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.insets = insets;\n    }\n}\n\n- (void)setInset:(CGFloat)inset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.inset = inset;\n    }\n}\n\n- (void)setOffset:(CGFloat)offset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.offset = offset;\n    }\n}\n\n- (void)setSizeOffset:(CGSize)sizeOffset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.sizeOffset = sizeOffset;\n    }\n}\n\n- (void)setCenterOffset:(CGPoint)centerOffset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.centerOffset = centerOffset;\n    }\n}\n\n#pragma mark - MASConstraint\n\n- (void)activate {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint activate];\n    }\n}\n\n- (void)deactivate {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint deactivate];\n    }\n}\n\n- (void)install {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.updateExisting = self.updateExisting;\n        [constraint install];\n    }\n}\n\n- (void)uninstall {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint uninstall];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASConstraint+Private.h",
    "content": "//\n//  MASConstraint+Private.h\n//  Masonry\n//\n//  Created by Nick Tymchenko on 29/04/14.\n//  Copyright (c) 2014 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n\n@protocol MASConstraintDelegate;\n\n\n@interface MASConstraint ()\n\n/**\n *  Whether or not to check for an existing constraint instead of adding constraint\n */\n@property (nonatomic, assign) BOOL updateExisting;\n\n/**\n *\tUsually MASConstraintMaker but could be a parent MASConstraint\n */\n@property (nonatomic, weak) id<MASConstraintDelegate> delegate;\n\n/**\n *  Based on a provided value type, is equal to calling:\n *  NSNumber - setOffset:\n *  NSValue with CGPoint - setPointOffset:\n *  NSValue with CGSize - setSizeOffset:\n *  NSValue with MASEdgeInsets - setInsets:\n */\n- (void)setLayoutConstantWithValue:(NSValue *)value;\n\n@end\n\n\n@interface MASConstraint (Abstract)\n\n/**\n *\tSets the constraint relation to given NSLayoutRelation\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation;\n\n/**\n *\tOverride to set a custom chaining behaviour\n */\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n@end\n\n\n@protocol MASConstraintDelegate <NSObject>\n\n/**\n *\tNotifies the delegate when the constraint needs to be replaced with another constraint. For example\n *  A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks\n */\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint;\n\n- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASConstraint.h",
    "content": "//\n//  MASConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tEnables Constraints to be created with chainable syntax\n *  Constraint can represent single NSLayoutConstraint (MASViewConstraint) \n *  or a group of NSLayoutConstraints (MASComposisteConstraint)\n */\n@interface MASConstraint : NSObject\n\n// Chaining Support\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (MASConstraint * (^)(MASEdgeInsets insets))insets;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (MASConstraint * (^)(CGFloat inset))inset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeWidth, NSLayoutAttributeHeight\n */\n- (MASConstraint * (^)(CGSize offset))sizeOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeCenterX, NSLayoutAttributeCenterY\n */\n- (MASConstraint * (^)(CGPoint offset))centerOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant\n */\n- (MASConstraint * (^)(CGFloat offset))offset;\n\n/**\n *  Modifies the NSLayoutConstraint constant based on a value type\n */\n- (MASConstraint * (^)(NSValue *value))valueOffset;\n\n/**\n *\tSets the NSLayoutConstraint multiplier property\n */\n- (MASConstraint * (^)(CGFloat multiplier))multipliedBy;\n\n/**\n *\tSets the NSLayoutConstraint multiplier to 1.0/dividedBy\n */\n- (MASConstraint * (^)(CGFloat divider))dividedBy;\n\n/**\n *\tSets the NSLayoutConstraint priority to a float or MASLayoutPriority\n */\n- (MASConstraint * (^)(MASLayoutPriority priority))priority;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityLow\n */\n- (MASConstraint * (^)(void))priorityLow;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityMedium\n */\n- (MASConstraint * (^)(void))priorityMedium;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityHigh\n */\n- (MASConstraint * (^)(void))priorityHigh;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))equalTo;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationGreaterThanOrEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))greaterThanOrEqualTo;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationLessThanOrEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))lessThanOrEqualTo;\n\n/**\n *\tOptional semantic property which has no effect but improves the readability of constraint\n */\n- (MASConstraint *)with;\n\n/**\n *\tOptional semantic property which has no effect but improves the readability of constraint\n */\n- (MASConstraint *)and;\n\n/**\n *\tCreates a new MASCompositeConstraint with the called attribute and reciever\n */\n- (MASConstraint *)left;\n- (MASConstraint *)top;\n- (MASConstraint *)right;\n- (MASConstraint *)bottom;\n- (MASConstraint *)leading;\n- (MASConstraint *)trailing;\n- (MASConstraint *)width;\n- (MASConstraint *)height;\n- (MASConstraint *)centerX;\n- (MASConstraint *)centerY;\n- (MASConstraint *)baseline;\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n- (MASConstraint *)firstBaseline;\n- (MASConstraint *)lastBaseline;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n- (MASConstraint *)leftMargin;\n- (MASConstraint *)rightMargin;\n- (MASConstraint *)topMargin;\n- (MASConstraint *)bottomMargin;\n- (MASConstraint *)leadingMargin;\n- (MASConstraint *)trailingMargin;\n- (MASConstraint *)centerXWithinMargins;\n- (MASConstraint *)centerYWithinMargins;\n\n#endif\n\n\n/**\n *\tSets the constraint debug name\n */\n- (MASConstraint * (^)(id key))key;\n\n// NSLayoutConstraint constant Setters\n// for use outside of mas_updateConstraints/mas_makeConstraints blocks\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (void)setInsets:(MASEdgeInsets)insets;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (void)setInset:(CGFloat)inset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeWidth, NSLayoutAttributeHeight\n */\n- (void)setSizeOffset:(CGSize)sizeOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeCenterX, NSLayoutAttributeCenterY\n */\n- (void)setCenterOffset:(CGPoint)centerOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant\n */\n- (void)setOffset:(CGFloat)offset;\n\n\n// NSLayoutConstraint Installation support\n\n#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)\n/**\n *  Whether or not to go through the animator proxy when modifying the constraint\n */\n@property (nonatomic, copy, readonly) MASConstraint *animator;\n#endif\n\n/**\n *  Activates an NSLayoutConstraint if it's supported by an OS. \n *  Invokes install otherwise.\n */\n- (void)activate;\n\n/**\n *  Deactivates previously installed/activated NSLayoutConstraint.\n */\n- (void)deactivate;\n\n/**\n *\tCreates a NSLayoutConstraint and adds it to the appropriate view.\n */\n- (void)install;\n\n/**\n *\tRemoves previously installed NSLayoutConstraint\n */\n- (void)uninstall;\n\n@end\n\n\n/**\n *  Convenience auto-boxing macros for MASConstraint methods.\n *\n *  Defining MAS_SHORTHAND_GLOBALS will turn on auto-boxing for default syntax.\n *  A potential drawback of this is that the unprefixed macros will appear in global scope.\n */\n#define mas_equalTo(...)                 equalTo(MASBoxValue((__VA_ARGS__)))\n#define mas_greaterThanOrEqualTo(...)    greaterThanOrEqualTo(MASBoxValue((__VA_ARGS__)))\n#define mas_lessThanOrEqualTo(...)       lessThanOrEqualTo(MASBoxValue((__VA_ARGS__)))\n\n#define mas_offset(...)                  valueOffset(MASBoxValue((__VA_ARGS__)))\n\n\n#ifdef MAS_SHORTHAND_GLOBALS\n\n#define equalTo(...)                     mas_equalTo(__VA_ARGS__)\n#define greaterThanOrEqualTo(...)        mas_greaterThanOrEqualTo(__VA_ARGS__)\n#define lessThanOrEqualTo(...)           mas_lessThanOrEqualTo(__VA_ARGS__)\n\n#define offset(...)                      mas_offset(__VA_ARGS__)\n\n#endif\n\n\n@interface MASConstraint (AutoboxingSupport)\n\n/**\n *  Aliases to corresponding relation methods (for shorthand macros)\n *  Also needed to aid autocompletion\n */\n- (MASConstraint * (^)(id attr))mas_equalTo;\n- (MASConstraint * (^)(id attr))mas_greaterThanOrEqualTo;\n- (MASConstraint * (^)(id attr))mas_lessThanOrEqualTo;\n\n/**\n *  A dummy method to aid autocompletion\n */\n- (MASConstraint * (^)(id offset))mas_offset;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASConstraint.m",
    "content": "//\n//  MASConstraint.m\n//  Masonry\n//\n//  Created by Nick Tymchenko on 1/20/14.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASConstraint+Private.h\"\n\n#define MASMethodNotImplemented() \\\n    @throw [NSException exceptionWithName:NSInternalInconsistencyException \\\n                                   reason:[NSString stringWithFormat:@\"You must override %@ in a subclass.\", NSStringFromSelector(_cmd)] \\\n                                 userInfo:nil]\n\n@implementation MASConstraint\n\n#pragma mark - Init\n\n- (id)init {\n\tNSAssert(![self isMemberOfClass:[MASConstraint class]], @\"MASConstraint is an abstract class, you should not instantiate it directly.\");\n\treturn [super init];\n}\n\n#pragma mark - NSLayoutRelation proxies\n\n- (MASConstraint * (^)(id))equalTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_equalTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))greaterThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_greaterThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))lessThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_lessThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual);\n    };\n}\n\n#pragma mark - MASLayoutPriority proxies\n\n- (MASConstraint * (^)(void))priorityLow {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultLow);\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(void))priorityMedium {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultMedium);\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(void))priorityHigh {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultHigh);\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant proxies\n\n- (MASConstraint * (^)(MASEdgeInsets))insets {\n    return ^id(MASEdgeInsets insets){\n        self.insets = insets;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGFloat))inset {\n    return ^id(CGFloat inset){\n        self.inset = inset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGSize))sizeOffset {\n    return ^id(CGSize offset) {\n        self.sizeOffset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGPoint))centerOffset {\n    return ^id(CGPoint offset) {\n        self.centerOffset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGFloat))offset {\n    return ^id(CGFloat offset){\n        self.offset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(NSValue *value))valueOffset {\n    return ^id(NSValue *offset) {\n        NSAssert([offset isKindOfClass:NSValue.class], @\"expected an NSValue offset, got: %@\", offset);\n        [self setLayoutConstantWithValue:offset];\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(id offset))mas_offset {\n    // Will never be called due to macro\n    return nil;\n}\n\n#pragma mark - NSLayoutConstraint constant setter\n\n- (void)setLayoutConstantWithValue:(NSValue *)value {\n    if ([value isKindOfClass:NSNumber.class]) {\n        self.offset = [(NSNumber *)value doubleValue];\n    } else if (strcmp(value.objCType, @encode(CGPoint)) == 0) {\n        CGPoint point;\n        [value getValue:&point];\n        self.centerOffset = point;\n    } else if (strcmp(value.objCType, @encode(CGSize)) == 0) {\n        CGSize size;\n        [value getValue:&size];\n        self.sizeOffset = size;\n    } else if (strcmp(value.objCType, @encode(MASEdgeInsets)) == 0) {\n        MASEdgeInsets insets;\n        [value getValue:&insets];\n        self.insets = insets;\n    } else {\n        NSAssert(NO, @\"attempting to set layout constant with unsupported value: %@\", value);\n    }\n}\n\n#pragma mark - Semantic properties\n\n- (MASConstraint *)with {\n    return self;\n}\n\n- (MASConstraint *)and {\n    return self;\n}\n\n#pragma mark - Chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute __unused)layoutAttribute {\n    MASMethodNotImplemented();\n}\n\n- (MASConstraint *)left {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASConstraint *)top {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASConstraint *)right {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASConstraint *)bottom {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASConstraint *)leading {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASConstraint *)trailing {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASConstraint *)width {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASConstraint *)height {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASConstraint *)centerX {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASConstraint *)centerY {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASConstraint *)baseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline];\n}\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n- (MASConstraint *)firstBaseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline];\n}\n- (MASConstraint *)lastBaseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline];\n}\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n- (MASConstraint *)leftMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASConstraint *)rightMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASConstraint *)topMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASConstraint *)bottomMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASConstraint *)leadingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASConstraint *)trailingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASConstraint *)centerXWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASConstraint *)centerYWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n#pragma mark - Abstract\n\n- (MASConstraint * (^)(CGFloat multiplier))multipliedBy { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(CGFloat divider))dividedBy { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(MASLayoutPriority priority))priority { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(id key))key { MASMethodNotImplemented(); }\n\n- (void)setInsets:(MASEdgeInsets __unused)insets { MASMethodNotImplemented(); }\n\n- (void)setInset:(CGFloat __unused)inset { MASMethodNotImplemented(); }\n\n- (void)setSizeOffset:(CGSize __unused)sizeOffset { MASMethodNotImplemented(); }\n\n- (void)setCenterOffset:(CGPoint __unused)centerOffset { MASMethodNotImplemented(); }\n\n- (void)setOffset:(CGFloat __unused)offset { MASMethodNotImplemented(); }\n\n#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)\n\n- (MASConstraint *)animator { MASMethodNotImplemented(); }\n\n#endif\n\n- (void)activate { MASMethodNotImplemented(); }\n\n- (void)deactivate { MASMethodNotImplemented(); }\n\n- (void)install { MASMethodNotImplemented(); }\n\n- (void)uninstall { MASMethodNotImplemented(); }\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASConstraintMaker.h",
    "content": "//\n//  MASConstraintMaker.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASUtilities.h\"\n\ntypedef NS_OPTIONS(NSInteger, MASAttribute) {\n    MASAttributeLeft = 1 << NSLayoutAttributeLeft,\n    MASAttributeRight = 1 << NSLayoutAttributeRight,\n    MASAttributeTop = 1 << NSLayoutAttributeTop,\n    MASAttributeBottom = 1 << NSLayoutAttributeBottom,\n    MASAttributeLeading = 1 << NSLayoutAttributeLeading,\n    MASAttributeTrailing = 1 << NSLayoutAttributeTrailing,\n    MASAttributeWidth = 1 << NSLayoutAttributeWidth,\n    MASAttributeHeight = 1 << NSLayoutAttributeHeight,\n    MASAttributeCenterX = 1 << NSLayoutAttributeCenterX,\n    MASAttributeCenterY = 1 << NSLayoutAttributeCenterY,\n    MASAttributeBaseline = 1 << NSLayoutAttributeBaseline,\n    \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n    \n    MASAttributeFirstBaseline = 1 << NSLayoutAttributeFirstBaseline,\n    MASAttributeLastBaseline = 1 << NSLayoutAttributeLastBaseline,\n    \n#endif\n    \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n    \n    MASAttributeLeftMargin = 1 << NSLayoutAttributeLeftMargin,\n    MASAttributeRightMargin = 1 << NSLayoutAttributeRightMargin,\n    MASAttributeTopMargin = 1 << NSLayoutAttributeTopMargin,\n    MASAttributeBottomMargin = 1 << NSLayoutAttributeBottomMargin,\n    MASAttributeLeadingMargin = 1 << NSLayoutAttributeLeadingMargin,\n    MASAttributeTrailingMargin = 1 << NSLayoutAttributeTrailingMargin,\n    MASAttributeCenterXWithinMargins = 1 << NSLayoutAttributeCenterXWithinMargins,\n    MASAttributeCenterYWithinMargins = 1 << NSLayoutAttributeCenterYWithinMargins,\n\n#endif\n    \n};\n\n/**\n *  Provides factory methods for creating MASConstraints.\n *  Constraints are collected until they are ready to be installed\n *\n */\n@interface MASConstraintMaker : NSObject\n\n/**\n *\tThe following properties return a new MASViewConstraint\n *  with the first item set to the makers associated view and the appropriate MASViewAttribute\n */\n@property (nonatomic, strong, readonly) MASConstraint *left;\n@property (nonatomic, strong, readonly) MASConstraint *top;\n@property (nonatomic, strong, readonly) MASConstraint *right;\n@property (nonatomic, strong, readonly) MASConstraint *bottom;\n@property (nonatomic, strong, readonly) MASConstraint *leading;\n@property (nonatomic, strong, readonly) MASConstraint *trailing;\n@property (nonatomic, strong, readonly) MASConstraint *width;\n@property (nonatomic, strong, readonly) MASConstraint *height;\n@property (nonatomic, strong, readonly) MASConstraint *centerX;\n@property (nonatomic, strong, readonly) MASConstraint *centerY;\n@property (nonatomic, strong, readonly) MASConstraint *baseline;\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n@property (nonatomic, strong, readonly) MASConstraint *firstBaseline;\n@property (nonatomic, strong, readonly) MASConstraint *lastBaseline;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n@property (nonatomic, strong, readonly) MASConstraint *leftMargin;\n@property (nonatomic, strong, readonly) MASConstraint *rightMargin;\n@property (nonatomic, strong, readonly) MASConstraint *topMargin;\n@property (nonatomic, strong, readonly) MASConstraint *bottomMargin;\n@property (nonatomic, strong, readonly) MASConstraint *leadingMargin;\n@property (nonatomic, strong, readonly) MASConstraint *trailingMargin;\n@property (nonatomic, strong, readonly) MASConstraint *centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASConstraint *centerYWithinMargins;\n\n#endif\n\n/**\n *  Returns a block which creates a new MASCompositeConstraint with the first item set\n *  to the makers associated view and children corresponding to the set bits in the\n *  MASAttribute parameter. Combine multiple attributes via binary-or.\n */\n@property (nonatomic, strong, readonly) MASConstraint *(^attributes)(MASAttribute attrs);\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeEdges\n *  which generates the appropriate MASViewConstraint children (top, left, bottom, right)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *edges;\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeSize\n *  which generates the appropriate MASViewConstraint children (width, height)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *size;\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeCenter\n *  which generates the appropriate MASViewConstraint children (centerX, centerY)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *center;\n\n/**\n *  Whether or not to check for an existing constraint instead of adding constraint\n */\n@property (nonatomic, assign) BOOL updateExisting;\n\n/**\n *  Whether or not to remove existing constraints prior to installing\n */\n@property (nonatomic, assign) BOOL removeExisting;\n\n/**\n *\tinitialises the maker with a default view\n *\n *\t@param\tview\tany MASConstraint are created with this view as the first item\n *\n *\t@return\ta new MASConstraintMaker\n */\n- (id)initWithView:(MAS_VIEW *)view;\n\n/**\n *\tCalls install method on any MASConstraints which have been created by this maker\n *\n *\t@return\tan array of all the installed MASConstraints\n */\n- (NSArray *)install;\n\n- (MASConstraint * (^)(dispatch_block_t))group;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASConstraintMaker.m",
    "content": "//\n//  MASConstraintMaker.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraintMaker.h\"\n#import \"MASViewConstraint.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASConstraint+Private.h\"\n#import \"MASViewAttribute.h\"\n#import \"View+MASAdditions.h\"\n\n@interface MASConstraintMaker () <MASConstraintDelegate>\n\n@property (nonatomic, weak) MAS_VIEW *view;\n@property (nonatomic, strong) NSMutableArray *constraints;\n\n@end\n\n@implementation MASConstraintMaker\n\n- (id)initWithView:(MAS_VIEW *)view {\n    self = [super init];\n    if (!self) return nil;\n    \n    self.view = view;\n    self.constraints = NSMutableArray.new;\n    \n    return self;\n}\n\n- (NSArray *)install {\n    if (self.removeExisting) {\n        NSArray *installedConstraints = [MASViewConstraint installedConstraintsForView:self.view];\n        for (MASConstraint *constraint in installedConstraints) {\n            [constraint uninstall];\n        }\n    }\n    NSArray *constraints = self.constraints.copy;\n    for (MASConstraint *constraint in constraints) {\n        constraint.updateExisting = self.updateExisting;\n        [constraint install];\n    }\n    [self.constraints removeAllObjects];\n    return constraints;\n}\n\n#pragma mark - MASConstraintDelegate\n\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {\n    NSUInteger index = [self.constraints indexOfObject:constraint];\n    NSAssert(index != NSNotFound, @\"Could not find constraint %@\", constraint);\n    [self.constraints replaceObjectAtIndex:index withObject:replacementConstraint];\n}\n\n- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    MASViewAttribute *viewAttribute = [[MASViewAttribute alloc] initWithView:self.view layoutAttribute:layoutAttribute];\n    MASViewConstraint *newConstraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:viewAttribute];\n    if ([constraint isKindOfClass:MASViewConstraint.class]) {\n        //replace with composite constraint\n        NSArray *children = @[constraint, newConstraint];\n        MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n        compositeConstraint.delegate = self;\n        [self constraint:constraint shouldBeReplacedWithConstraint:compositeConstraint];\n        return compositeConstraint;\n    }\n    if (!constraint) {\n        newConstraint.delegate = self;\n        [self.constraints addObject:newConstraint];\n    }\n    return newConstraint;\n}\n\n- (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {\n    __unused MASAttribute anyAttribute = (MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading\n                                          | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX\n                                          | MASAttributeCenterY | MASAttributeBaseline\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n                                          | MASAttributeFirstBaseline | MASAttributeLastBaseline\n#endif\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n                                          | MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin\n                                          | MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins\n                                          | MASAttributeCenterYWithinMargins\n#endif\n                                          );\n    \n    NSAssert((attrs & anyAttribute) != 0, @\"You didn't pass any attribute to make.attributes(...)\");\n    \n    NSMutableArray *attributes = [NSMutableArray array];\n    \n    if (attrs & MASAttributeLeft) [attributes addObject:self.view.mas_left];\n    if (attrs & MASAttributeRight) [attributes addObject:self.view.mas_right];\n    if (attrs & MASAttributeTop) [attributes addObject:self.view.mas_top];\n    if (attrs & MASAttributeBottom) [attributes addObject:self.view.mas_bottom];\n    if (attrs & MASAttributeLeading) [attributes addObject:self.view.mas_leading];\n    if (attrs & MASAttributeTrailing) [attributes addObject:self.view.mas_trailing];\n    if (attrs & MASAttributeWidth) [attributes addObject:self.view.mas_width];\n    if (attrs & MASAttributeHeight) [attributes addObject:self.view.mas_height];\n    if (attrs & MASAttributeCenterX) [attributes addObject:self.view.mas_centerX];\n    if (attrs & MASAttributeCenterY) [attributes addObject:self.view.mas_centerY];\n    if (attrs & MASAttributeBaseline) [attributes addObject:self.view.mas_baseline];\n    \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n    \n    if (attrs & MASAttributeFirstBaseline) [attributes addObject:self.view.mas_firstBaseline];\n    if (attrs & MASAttributeLastBaseline) [attributes addObject:self.view.mas_lastBaseline];\n    \n#endif\n    \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n    \n    if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin];\n    if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin];\n    if (attrs & MASAttributeTopMargin) [attributes addObject:self.view.mas_topMargin];\n    if (attrs & MASAttributeBottomMargin) [attributes addObject:self.view.mas_bottomMargin];\n    if (attrs & MASAttributeLeadingMargin) [attributes addObject:self.view.mas_leadingMargin];\n    if (attrs & MASAttributeTrailingMargin) [attributes addObject:self.view.mas_trailingMargin];\n    if (attrs & MASAttributeCenterXWithinMargins) [attributes addObject:self.view.mas_centerXWithinMargins];\n    if (attrs & MASAttributeCenterYWithinMargins) [attributes addObject:self.view.mas_centerYWithinMargins];\n    \n#endif\n    \n    NSMutableArray *children = [NSMutableArray arrayWithCapacity:attributes.count];\n    \n    for (MASViewAttribute *a in attributes) {\n        [children addObject:[[MASViewConstraint alloc] initWithFirstViewAttribute:a]];\n    }\n    \n    MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n    constraint.delegate = self;\n    [self.constraints addObject:constraint];\n    return constraint;\n}\n\n#pragma mark - standard Attributes\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    return [self constraint:nil addConstraintWithLayoutAttribute:layoutAttribute];\n}\n\n- (MASConstraint *)left {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASConstraint *)top {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASConstraint *)right {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASConstraint *)bottom {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASConstraint *)leading {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASConstraint *)trailing {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASConstraint *)width {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASConstraint *)height {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASConstraint *)centerX {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASConstraint *)centerY {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASConstraint *)baseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline];\n}\n\n- (MASConstraint *(^)(MASAttribute))attributes {\n    return ^(MASAttribute attrs){\n        return [self addConstraintWithAttributes:attrs];\n    };\n}\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n- (MASConstraint *)firstBaseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline];\n}\n\n- (MASConstraint *)lastBaseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline];\n}\n\n#endif\n\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n- (MASConstraint *)leftMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASConstraint *)rightMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASConstraint *)topMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASConstraint *)bottomMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASConstraint *)leadingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASConstraint *)trailingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASConstraint *)centerXWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASConstraint *)centerYWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n\n#pragma mark - composite Attributes\n\n- (MASConstraint *)edges {\n    return [self addConstraintWithAttributes:MASAttributeTop | MASAttributeLeft | MASAttributeRight | MASAttributeBottom];\n}\n\n- (MASConstraint *)size {\n    return [self addConstraintWithAttributes:MASAttributeWidth | MASAttributeHeight];\n}\n\n- (MASConstraint *)center {\n    return [self addConstraintWithAttributes:MASAttributeCenterX | MASAttributeCenterY];\n}\n\n#pragma mark - grouping\n\n- (MASConstraint *(^)(dispatch_block_t group))group {\n    return ^id(dispatch_block_t group) {\n        NSInteger previousCount = self.constraints.count;\n        group();\n\n        NSArray *children = [self.constraints subarrayWithRange:NSMakeRange(previousCount, self.constraints.count - previousCount)];\n        MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n        constraint.delegate = self;\n        return constraint;\n    };\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASLayoutConstraint.h",
    "content": "//\n//  MASLayoutConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tWhen you are debugging or printing the constraints attached to a view this subclass\n *  makes it easier to identify which constraints have been created via Masonry\n */\n@interface MASLayoutConstraint : NSLayoutConstraint\n\n/**\n *\ta key to associate with this constraint\n */\n@property (nonatomic, strong) id mas_key;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASLayoutConstraint.m",
    "content": "//\n//  MASLayoutConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASLayoutConstraint.h\"\n\n@implementation MASLayoutConstraint\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASUtilities.h",
    "content": "//\n//  MASUtilities.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 19/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n\n#if TARGET_OS_IPHONE || TARGET_OS_TV\n\n    #import <UIKit/UIKit.h>\n    #define MAS_VIEW UIView\n    #define MAS_VIEW_CONTROLLER UIViewController\n    #define MASEdgeInsets UIEdgeInsets\n\n    typedef UILayoutPriority MASLayoutPriority;\n    static const MASLayoutPriority MASLayoutPriorityRequired = UILayoutPriorityRequired;\n    static const MASLayoutPriority MASLayoutPriorityDefaultHigh = UILayoutPriorityDefaultHigh;\n    static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 500;\n    static const MASLayoutPriority MASLayoutPriorityDefaultLow = UILayoutPriorityDefaultLow;\n    static const MASLayoutPriority MASLayoutPriorityFittingSizeLevel = UILayoutPriorityFittingSizeLevel;\n\n#elif TARGET_OS_MAC\n\n    #import <AppKit/AppKit.h>\n    #define MAS_VIEW NSView\n    #define MASEdgeInsets NSEdgeInsets\n\n    typedef NSLayoutPriority MASLayoutPriority;\n    static const MASLayoutPriority MASLayoutPriorityRequired = NSLayoutPriorityRequired;\n    static const MASLayoutPriority MASLayoutPriorityDefaultHigh = NSLayoutPriorityDefaultHigh;\n    static const MASLayoutPriority MASLayoutPriorityDragThatCanResizeWindow = NSLayoutPriorityDragThatCanResizeWindow;\n    static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 501;\n    static const MASLayoutPriority MASLayoutPriorityWindowSizeStayPut = NSLayoutPriorityWindowSizeStayPut;\n    static const MASLayoutPriority MASLayoutPriorityDragThatCannotResizeWindow = NSLayoutPriorityDragThatCannotResizeWindow;\n    static const MASLayoutPriority MASLayoutPriorityDefaultLow = NSLayoutPriorityDefaultLow;\n    static const MASLayoutPriority MASLayoutPriorityFittingSizeCompression = NSLayoutPriorityFittingSizeCompression;\n\n#endif\n\n/**\n *\tAllows you to attach keys to objects matching the variable names passed.\n *\n *  view1.mas_key = @\"view1\", view2.mas_key = @\"view2\";\n *\n *  is equivalent to:\n *\n *  MASAttachKeys(view1, view2);\n */\n#define MASAttachKeys(...)                                                        \\\n    {                                                                             \\\n        NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__);     \\\n        for (id key in keyPairs.allKeys) {                                        \\\n            id obj = keyPairs[key];                                               \\\n            NSAssert([obj respondsToSelector:@selector(setMas_key:)],             \\\n                     @\"Cannot attach mas_key to %@\", obj);                        \\\n            [obj setMas_key:key];                                                 \\\n        }                                                                         \\\n    }\n\n/**\n *  Used to create object hashes\n *  Based on http://www.mikeash.com/pyblog/friday-qa-2010-06-18-implementing-equality-and-hashing.html\n */\n#define MAS_NSUINT_BIT (CHAR_BIT * sizeof(NSUInteger))\n#define MAS_NSUINTROTATE(val, howmuch) ((((NSUInteger)val) << howmuch) | (((NSUInteger)val) >> (MAS_NSUINT_BIT - howmuch)))\n\n/**\n *  Given a scalar or struct value, wraps it in NSValue\n *  Based on EXPObjectify: https://github.com/specta/expecta\n */\nstatic inline id _MASBoxValue(const char *type, ...) {\n    va_list v;\n    va_start(v, type);\n    id obj = nil;\n    if (strcmp(type, @encode(id)) == 0) {\n        id actual = va_arg(v, id);\n        obj = actual;\n    } else if (strcmp(type, @encode(CGPoint)) == 0) {\n        CGPoint actual = (CGPoint)va_arg(v, CGPoint);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(CGSize)) == 0) {\n        CGSize actual = (CGSize)va_arg(v, CGSize);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(MASEdgeInsets)) == 0) {\n        MASEdgeInsets actual = (MASEdgeInsets)va_arg(v, MASEdgeInsets);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(double)) == 0) {\n        double actual = (double)va_arg(v, double);\n        obj = [NSNumber numberWithDouble:actual];\n    } else if (strcmp(type, @encode(float)) == 0) {\n        float actual = (float)va_arg(v, double);\n        obj = [NSNumber numberWithFloat:actual];\n    } else if (strcmp(type, @encode(int)) == 0) {\n        int actual = (int)va_arg(v, int);\n        obj = [NSNumber numberWithInt:actual];\n    } else if (strcmp(type, @encode(long)) == 0) {\n        long actual = (long)va_arg(v, long);\n        obj = [NSNumber numberWithLong:actual];\n    } else if (strcmp(type, @encode(long long)) == 0) {\n        long long actual = (long long)va_arg(v, long long);\n        obj = [NSNumber numberWithLongLong:actual];\n    } else if (strcmp(type, @encode(short)) == 0) {\n        short actual = (short)va_arg(v, int);\n        obj = [NSNumber numberWithShort:actual];\n    } else if (strcmp(type, @encode(char)) == 0) {\n        char actual = (char)va_arg(v, int);\n        obj = [NSNumber numberWithChar:actual];\n    } else if (strcmp(type, @encode(bool)) == 0) {\n        bool actual = (bool)va_arg(v, int);\n        obj = [NSNumber numberWithBool:actual];\n    } else if (strcmp(type, @encode(unsigned char)) == 0) {\n        unsigned char actual = (unsigned char)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedChar:actual];\n    } else if (strcmp(type, @encode(unsigned int)) == 0) {\n        unsigned int actual = (unsigned int)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedInt:actual];\n    } else if (strcmp(type, @encode(unsigned long)) == 0) {\n        unsigned long actual = (unsigned long)va_arg(v, unsigned long);\n        obj = [NSNumber numberWithUnsignedLong:actual];\n    } else if (strcmp(type, @encode(unsigned long long)) == 0) {\n        unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long);\n        obj = [NSNumber numberWithUnsignedLongLong:actual];\n    } else if (strcmp(type, @encode(unsigned short)) == 0) {\n        unsigned short actual = (unsigned short)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedShort:actual];\n    }\n    va_end(v);\n    return obj;\n}\n\n#define MASBoxValue(value) _MASBoxValue(@encode(__typeof__((value))), (value))\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASViewAttribute.h",
    "content": "//\n//  MASViewAttribute.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *  An immutable tuple which stores the view and the related NSLayoutAttribute.\n *  Describes part of either the left or right hand side of a constraint equation\n */\n@interface MASViewAttribute : NSObject\n\n/**\n *  The view which the reciever relates to. Can be nil if item is not a view.\n */\n@property (nonatomic, weak, readonly) MAS_VIEW *view;\n\n/**\n *  The item which the reciever relates to.\n */\n@property (nonatomic, weak, readonly) id item;\n\n/**\n *  The attribute which the reciever relates to\n */\n@property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute;\n\n/**\n *  Convenience initializer.\n */\n- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n/**\n *  The designated initializer.\n */\n- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n/**\n *\tDetermine whether the layoutAttribute is a size attribute\n *\n *\t@return\tYES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight\n */\n- (BOOL)isSizeAttribute;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASViewAttribute.m",
    "content": "//\n//  MASViewAttribute.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewAttribute.h\"\n\n@implementation MASViewAttribute\n\n- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    self = [self initWithView:view item:view layoutAttribute:layoutAttribute];\n    return self;\n}\n\n- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    self = [super init];\n    if (!self) return nil;\n    \n    _view = view;\n    _item = item;\n    _layoutAttribute = layoutAttribute;\n    \n    return self;\n}\n\n- (BOOL)isSizeAttribute {\n    return self.layoutAttribute == NSLayoutAttributeWidth\n        || self.layoutAttribute == NSLayoutAttributeHeight;\n}\n\n- (BOOL)isEqual:(MASViewAttribute *)viewAttribute {\n    if ([viewAttribute isKindOfClass:self.class]) {\n        return self.view == viewAttribute.view\n            && self.layoutAttribute == viewAttribute.layoutAttribute;\n    }\n    return [super isEqual:viewAttribute];\n}\n\n- (NSUInteger)hash {\n    return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute;\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASViewConstraint.h",
    "content": "//\n//  MASViewConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewAttribute.h\"\n#import \"MASConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"MASUtilities.h\"\n\n/**\n *  A single constraint.\n *  Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view\n */\n@interface MASViewConstraint : MASConstraint <NSCopying>\n\n/**\n *\tFirst item/view and first attribute of the NSLayoutConstraint\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute;\n\n/**\n *\tSecond item/view and second attribute of the NSLayoutConstraint\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute;\n\n/**\n *\tinitialises the MASViewConstraint with the first part of the equation\n *\n *\t@param\tfirstViewAttribute\tview.mas_left, view.mas_width etc.\n *\n *\t@return\ta new view constraint\n */\n- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute;\n\n/**\n *  Returns all MASViewConstraints installed with this view as a first item.\n *\n *  @param  view  A view to retrieve constraints for.\n *\n *  @return An array of MASViewConstraints.\n */\n+ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/MASViewConstraint.m",
    "content": "//\n//  MASViewConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewConstraint.h\"\n#import \"MASConstraint+Private.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"View+MASAdditions.h\"\n#import <objc/runtime.h>\n\n@interface MAS_VIEW (MASConstraints)\n\n@property (nonatomic, readonly) NSMutableSet *mas_installedConstraints;\n\n@end\n\n@implementation MAS_VIEW (MASConstraints)\n\nstatic char kInstalledConstraintsKey;\n\n- (NSMutableSet *)mas_installedConstraints {\n    NSMutableSet *constraints = objc_getAssociatedObject(self, &kInstalledConstraintsKey);\n    if (!constraints) {\n        constraints = [NSMutableSet set];\n        objc_setAssociatedObject(self, &kInstalledConstraintsKey, constraints, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    return constraints;\n}\n\n@end\n\n\n@interface MASViewConstraint ()\n\n@property (nonatomic, strong, readwrite) MASViewAttribute *secondViewAttribute;\n@property (nonatomic, weak) MAS_VIEW *installedView;\n@property (nonatomic, weak) MASLayoutConstraint *layoutConstraint;\n@property (nonatomic, assign) NSLayoutRelation layoutRelation;\n@property (nonatomic, assign) MASLayoutPriority layoutPriority;\n@property (nonatomic, assign) CGFloat layoutMultiplier;\n@property (nonatomic, assign) CGFloat layoutConstant;\n@property (nonatomic, assign) BOOL hasLayoutRelation;\n@property (nonatomic, strong) id mas_key;\n@property (nonatomic, assign) BOOL useAnimator;\n\n@end\n\n@implementation MASViewConstraint\n\n- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute {\n    self = [super init];\n    if (!self) return nil;\n    \n    _firstViewAttribute = firstViewAttribute;\n    self.layoutPriority = MASLayoutPriorityRequired;\n    self.layoutMultiplier = 1;\n    \n    return self;\n}\n\n#pragma mark - NSCoping\n\n- (id)copyWithZone:(NSZone __unused *)zone {\n    MASViewConstraint *constraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:self.firstViewAttribute];\n    constraint.layoutConstant = self.layoutConstant;\n    constraint.layoutRelation = self.layoutRelation;\n    constraint.layoutPriority = self.layoutPriority;\n    constraint.layoutMultiplier = self.layoutMultiplier;\n    constraint.delegate = self.delegate;\n    return constraint;\n}\n\n#pragma mark - Public\n\n+ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view {\n    return [view.mas_installedConstraints allObjects];\n}\n\n#pragma mark - Private\n\n- (void)setLayoutConstant:(CGFloat)layoutConstant {\n    _layoutConstant = layoutConstant;\n\n#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)\n    if (self.useAnimator) {\n        [self.layoutConstraint.animator setConstant:layoutConstant];\n    } else {\n        self.layoutConstraint.constant = layoutConstant;\n    }\n#else\n    self.layoutConstraint.constant = layoutConstant;\n#endif\n}\n\n- (void)setLayoutRelation:(NSLayoutRelation)layoutRelation {\n    _layoutRelation = layoutRelation;\n    self.hasLayoutRelation = YES;\n}\n\n- (BOOL)supportsActiveProperty {\n    return [self.layoutConstraint respondsToSelector:@selector(isActive)];\n}\n\n- (BOOL)isActive {\n    BOOL active = YES;\n    if ([self supportsActiveProperty]) {\n        active = [self.layoutConstraint isActive];\n    }\n\n    return active;\n}\n\n- (BOOL)hasBeenInstalled {\n    return (self.layoutConstraint != nil) && [self isActive];\n}\n\n- (void)setSecondViewAttribute:(id)secondViewAttribute {\n    if ([secondViewAttribute isKindOfClass:NSValue.class]) {\n        [self setLayoutConstantWithValue:secondViewAttribute];\n    } else if ([secondViewAttribute isKindOfClass:MAS_VIEW.class]) {\n        _secondViewAttribute = [[MASViewAttribute alloc] initWithView:secondViewAttribute layoutAttribute:self.firstViewAttribute.layoutAttribute];\n    } else if ([secondViewAttribute isKindOfClass:MASViewAttribute.class]) {\n        _secondViewAttribute = secondViewAttribute;\n    } else {\n        NSAssert(NO, @\"attempting to add unsupported attribute: %@\", secondViewAttribute);\n    }\n}\n\n#pragma mark - NSLayoutConstraint multiplier proxies\n\n- (MASConstraint * (^)(CGFloat))multipliedBy {\n    return ^id(CGFloat multiplier) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint multiplier after it has been installed\");\n        \n        self.layoutMultiplier = multiplier;\n        return self;\n    };\n}\n\n\n- (MASConstraint * (^)(CGFloat))dividedBy {\n    return ^id(CGFloat divider) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint multiplier after it has been installed\");\n\n        self.layoutMultiplier = 1.0/divider;\n        return self;\n    };\n}\n\n#pragma mark - MASLayoutPriority proxy\n\n- (MASConstraint * (^)(MASLayoutPriority))priority {\n    return ^id(MASLayoutPriority priority) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint priority after it has been installed\");\n        \n        self.layoutPriority = priority;\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutRelation proxy\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation {\n    return ^id(id attribute, NSLayoutRelation relation) {\n        if ([attribute isKindOfClass:NSArray.class]) {\n            NSAssert(!self.hasLayoutRelation, @\"Redefinition of constraint relation\");\n            NSMutableArray *children = NSMutableArray.new;\n            for (id attr in attribute) {\n                MASViewConstraint *viewConstraint = [self copy];\n                viewConstraint.layoutRelation = relation;\n                viewConstraint.secondViewAttribute = attr;\n                [children addObject:viewConstraint];\n            }\n            MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n            compositeConstraint.delegate = self.delegate;\n            [self.delegate constraint:self shouldBeReplacedWithConstraint:compositeConstraint];\n            return compositeConstraint;\n        } else {\n            NSAssert(!self.hasLayoutRelation || self.layoutRelation == relation && [attribute isKindOfClass:NSValue.class], @\"Redefinition of constraint relation\");\n            self.layoutRelation = relation;\n            self.secondViewAttribute = attribute;\n            return self;\n        }\n    };\n}\n\n#pragma mark - Semantic properties\n\n- (MASConstraint *)with {\n    return self;\n}\n\n- (MASConstraint *)and {\n    return self;\n}\n\n#pragma mark - attribute chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    NSAssert(!self.hasLayoutRelation, @\"Attributes should be chained before defining the constraint relation\");\n\n    return [self.delegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n}\n\n#pragma mark - Animator proxy\n\n#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)\n\n- (MASConstraint *)animator {\n    self.useAnimator = YES;\n    return self;\n}\n\n#endif\n\n#pragma mark - debug helpers\n\n- (MASConstraint * (^)(id))key {\n    return ^id(id key) {\n        self.mas_key = key;\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant setters\n\n- (void)setInsets:(MASEdgeInsets)insets {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeLeft:\n        case NSLayoutAttributeLeading:\n            self.layoutConstant = insets.left;\n            break;\n        case NSLayoutAttributeTop:\n            self.layoutConstant = insets.top;\n            break;\n        case NSLayoutAttributeBottom:\n            self.layoutConstant = -insets.bottom;\n            break;\n        case NSLayoutAttributeRight:\n        case NSLayoutAttributeTrailing:\n            self.layoutConstant = -insets.right;\n            break;\n        default:\n            break;\n    }\n}\n\n- (void)setInset:(CGFloat)inset {\n    [self setInsets:(MASEdgeInsets){.top = inset, .left = inset, .bottom = inset, .right = inset}];\n}\n\n- (void)setOffset:(CGFloat)offset {\n    self.layoutConstant = offset;\n}\n\n- (void)setSizeOffset:(CGSize)sizeOffset {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeWidth:\n            self.layoutConstant = sizeOffset.width;\n            break;\n        case NSLayoutAttributeHeight:\n            self.layoutConstant = sizeOffset.height;\n            break;\n        default:\n            break;\n    }\n}\n\n- (void)setCenterOffset:(CGPoint)centerOffset {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeCenterX:\n            self.layoutConstant = centerOffset.x;\n            break;\n        case NSLayoutAttributeCenterY:\n            self.layoutConstant = centerOffset.y;\n            break;\n        default:\n            break;\n    }\n}\n\n#pragma mark - MASConstraint\n\n- (void)activate {\n    [self install];\n}\n\n- (void)deactivate {\n    [self uninstall];\n}\n\n- (void)install {\n    if (self.hasBeenInstalled) {\n        return;\n    }\n    \n    if ([self supportsActiveProperty] && self.layoutConstraint) {\n        self.layoutConstraint.active = YES;\n        [self.firstViewAttribute.view.mas_installedConstraints addObject:self];\n        return;\n    }\n    \n    MAS_VIEW *firstLayoutItem = self.firstViewAttribute.item;\n    NSLayoutAttribute firstLayoutAttribute = self.firstViewAttribute.layoutAttribute;\n    MAS_VIEW *secondLayoutItem = self.secondViewAttribute.item;\n    NSLayoutAttribute secondLayoutAttribute = self.secondViewAttribute.layoutAttribute;\n\n    // alignment attributes must have a secondViewAttribute\n    // therefore we assume that is refering to superview\n    // eg make.left.equalTo(@10)\n    if (!self.firstViewAttribute.isSizeAttribute && !self.secondViewAttribute) {\n        secondLayoutItem = self.firstViewAttribute.view.superview;\n        secondLayoutAttribute = firstLayoutAttribute;\n    }\n    \n    MASLayoutConstraint *layoutConstraint\n        = [MASLayoutConstraint constraintWithItem:firstLayoutItem\n                                        attribute:firstLayoutAttribute\n                                        relatedBy:self.layoutRelation\n                                           toItem:secondLayoutItem\n                                        attribute:secondLayoutAttribute\n                                       multiplier:self.layoutMultiplier\n                                         constant:self.layoutConstant];\n    \n    layoutConstraint.priority = self.layoutPriority;\n    layoutConstraint.mas_key = self.mas_key;\n    \n    if (self.secondViewAttribute.view) {\n        MAS_VIEW *closestCommonSuperview = [self.firstViewAttribute.view mas_closestCommonSuperview:self.secondViewAttribute.view];\n        NSAssert(closestCommonSuperview,\n                 @\"couldn't find a common superview for %@ and %@\",\n                 self.firstViewAttribute.view, self.secondViewAttribute.view);\n        self.installedView = closestCommonSuperview;\n    } else if (self.firstViewAttribute.isSizeAttribute) {\n        self.installedView = self.firstViewAttribute.view;\n    } else {\n        self.installedView = self.firstViewAttribute.view.superview;\n    }\n\n\n    MASLayoutConstraint *existingConstraint = nil;\n    if (self.updateExisting) {\n        existingConstraint = [self layoutConstraintSimilarTo:layoutConstraint];\n    }\n    if (existingConstraint) {\n        // just update the constant\n        existingConstraint.constant = layoutConstraint.constant;\n        self.layoutConstraint = existingConstraint;\n    } else {\n        [self.installedView addConstraint:layoutConstraint];\n        self.layoutConstraint = layoutConstraint;\n        [firstLayoutItem.mas_installedConstraints addObject:self];\n    }\n}\n\n- (MASLayoutConstraint *)layoutConstraintSimilarTo:(MASLayoutConstraint *)layoutConstraint {\n    // check if any constraints are the same apart from the only mutable property constant\n\n    // go through constraints in reverse as we do not want to match auto-resizing or interface builder constraints\n    // and they are likely to be added first.\n    for (NSLayoutConstraint *existingConstraint in self.installedView.constraints.reverseObjectEnumerator) {\n        if (![existingConstraint isKindOfClass:MASLayoutConstraint.class]) continue;\n        if (existingConstraint.firstItem != layoutConstraint.firstItem) continue;\n        if (existingConstraint.secondItem != layoutConstraint.secondItem) continue;\n        if (existingConstraint.firstAttribute != layoutConstraint.firstAttribute) continue;\n        if (existingConstraint.secondAttribute != layoutConstraint.secondAttribute) continue;\n        if (existingConstraint.relation != layoutConstraint.relation) continue;\n        if (existingConstraint.multiplier != layoutConstraint.multiplier) continue;\n        if (existingConstraint.priority != layoutConstraint.priority) continue;\n\n        return (id)existingConstraint;\n    }\n    return nil;\n}\n\n- (void)uninstall {\n    if ([self supportsActiveProperty]) {\n        self.layoutConstraint.active = NO;\n        [self.firstViewAttribute.view.mas_installedConstraints removeObject:self];\n        return;\n    }\n    \n    [self.installedView removeConstraint:self.layoutConstraint];\n    self.layoutConstraint = nil;\n    self.installedView = nil;\n    \n    [self.firstViewAttribute.view.mas_installedConstraints removeObject:self];\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/Masonry.h",
    "content": "//\n//  Masonry.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for Masonry.\nFOUNDATION_EXPORT double MasonryVersionNumber;\n\n//! Project version string for Masonry.\nFOUNDATION_EXPORT const unsigned char MasonryVersionString[];\n\n#import \"MASUtilities.h\"\n#import \"View+MASAdditions.h\"\n#import \"View+MASShorthandAdditions.h\"\n#import \"ViewController+MASAdditions.h\"\n#import \"NSArray+MASAdditions.h\"\n#import \"NSArray+MASShorthandAdditions.h\"\n#import \"MASConstraint.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASViewAttribute.h\"\n#import \"MASViewConstraint.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"NSLayoutConstraint+MASDebugAdditions.h\"\n"
  },
  {
    "path": "Pods/Masonry/Masonry/NSArray+MASAdditions.h",
    "content": "//\n//  NSArray+MASAdditions.h\n//\n//\n//  Created by Daniel Hammond on 11/26/13.\n//\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\ntypedef NS_ENUM(NSUInteger, MASAxisType) {\n    MASAxisTypeHorizontal,\n    MASAxisTypeVertical\n};\n\n@interface NSArray (MASAdditions)\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing on each view\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created MASConstraints\n */\n- (NSArray *)mas_makeConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view.\n *  If an existing constraint exists then it will be updated instead.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_updateConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view.\n *  All constraints previously installed for the views will be removed.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_remakeConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n/**\n *  distribute with fixed spacing\n *\n *  @param axisType     which axis to distribute items along\n *  @param fixedSpacing the spacing between each item\n *  @param leadSpacing  the spacing before the first item and the container\n *  @param tailSpacing  the spacing after the last item and the container\n */\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;\n\n/**\n *  distribute with fixed item size\n *\n *  @param axisType        which axis to distribute items along\n *  @param fixedItemLength the fixed length of each item\n *  @param leadSpacing     the spacing before the first item and the container\n *  @param tailSpacing     the spacing after the last item and the container\n */\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/NSArray+MASAdditions.m",
    "content": "//\n//  NSArray+MASAdditions.m\n//  \n//\n//  Created by Daniel Hammond on 11/26/13.\n//\n//\n\n#import \"NSArray+MASAdditions.h\"\n#import \"View+MASAdditions.h\"\n\n@implementation NSArray (MASAdditions)\n\n- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_makeConstraints:block]];\n    }\n    return constraints;\n}\n\n- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_updateConstraints:block]];\n    }\n    return constraints;\n}\n\n- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_remakeConstraints:block]];\n    }\n    return constraints;\n}\n\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing {\n    if (self.count < 2) {\n        NSAssert(self.count>1,@\"views to distribute need to bigger than one\");\n        return;\n    }\n    \n    MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews];\n    if (axisType == MASAxisTypeHorizontal) {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    make.width.equalTo(prev);\n                    make.left.equalTo(prev.mas_right).offset(fixedSpacing);\n                    if (i == self.count - 1) {//last one\n                        make.right.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                }\n                else {//first one\n                    make.left.equalTo(tempSuperView).offset(leadSpacing);\n                }\n                \n            }];\n            prev = v;\n        }\n    }\n    else {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    make.height.equalTo(prev);\n                    make.top.equalTo(prev.mas_bottom).offset(fixedSpacing);\n                    if (i == self.count - 1) {//last one\n                        make.bottom.equalTo(tempSuperView).offset(-tailSpacing);\n                    }                    \n                }\n                else {//first one\n                    make.top.equalTo(tempSuperView).offset(leadSpacing);\n                }\n                \n            }];\n            prev = v;\n        }\n    }\n}\n\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing {\n    if (self.count < 2) {\n        NSAssert(self.count>1,@\"views to distribute need to bigger than one\");\n        return;\n    }\n    \n    MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews];\n    if (axisType == MASAxisTypeHorizontal) {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                make.width.equalTo(@(fixedItemLength));\n                if (prev) {\n                    if (i == self.count - 1) {//last one\n                        make.right.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                    else {\n                        CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));\n                        make.right.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset);\n                    }\n                }\n                else {//first one\n                    make.left.equalTo(tempSuperView).offset(leadSpacing);\n                }\n            }];\n            prev = v;\n        }\n    }\n    else {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                make.height.equalTo(@(fixedItemLength));\n                if (prev) {\n                    if (i == self.count - 1) {//last one\n                        make.bottom.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                    else {\n                        CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));\n                        make.bottom.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset);\n                    }\n                }\n                else {//first one\n                    make.top.equalTo(tempSuperView).offset(leadSpacing);\n                }\n            }];\n            prev = v;\n        }\n    }\n}\n\n- (MAS_VIEW *)mas_commonSuperviewOfViews\n{\n    MAS_VIEW *commonSuperview = nil;\n    MAS_VIEW *previousView = nil;\n    for (id object in self) {\n        if ([object isKindOfClass:[MAS_VIEW class]]) {\n            MAS_VIEW *view = (MAS_VIEW *)object;\n            if (previousView) {\n                commonSuperview = [view mas_closestCommonSuperview:commonSuperview];\n            } else {\n                commonSuperview = view;\n            }\n            previousView = view;\n        }\n    }\n    NSAssert(commonSuperview, @\"Can't constrain views that do not share a common superview. Make sure that all the views in this array have been added into the same view hierarchy.\");\n    return commonSuperview;\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h",
    "content": "//\n//  NSArray+MASShorthandAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"NSArray+MASAdditions.h\"\n\n#ifdef MAS_SHORTHAND\n\n/**\n *\tShorthand array additions without the 'mas_' prefixes,\n *  only enabled if MAS_SHORTHAND is defined\n */\n@interface NSArray (MASShorthandAdditions)\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n@end\n\n@implementation NSArray (MASShorthandAdditions)\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_makeConstraints:block];\n}\n\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_updateConstraints:block];\n}\n\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_remakeConstraints:block];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h",
    "content": "//\n//  NSLayoutConstraint+MASDebugAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tmakes debug and log output of NSLayoutConstraints more readable\n */\n@interface NSLayoutConstraint (MASDebugAdditions)\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.m",
    "content": "//\n//  NSLayoutConstraint+MASDebugAdditions.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"NSLayoutConstraint+MASDebugAdditions.h\"\n#import \"MASConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n\n@implementation NSLayoutConstraint (MASDebugAdditions)\n\n#pragma mark - description maps\n\n+ (NSDictionary *)layoutRelationDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n        descriptionMap = @{\n            @(NSLayoutRelationEqual)                : @\"==\",\n            @(NSLayoutRelationGreaterThanOrEqual)   : @\">=\",\n            @(NSLayoutRelationLessThanOrEqual)      : @\"<=\",\n        };\n    });\n    return descriptionMap;\n}\n\n+ (NSDictionary *)layoutAttributeDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n        descriptionMap = @{\n            @(NSLayoutAttributeTop)      : @\"top\",\n            @(NSLayoutAttributeLeft)     : @\"left\",\n            @(NSLayoutAttributeBottom)   : @\"bottom\",\n            @(NSLayoutAttributeRight)    : @\"right\",\n            @(NSLayoutAttributeLeading)  : @\"leading\",\n            @(NSLayoutAttributeTrailing) : @\"trailing\",\n            @(NSLayoutAttributeWidth)    : @\"width\",\n            @(NSLayoutAttributeHeight)   : @\"height\",\n            @(NSLayoutAttributeCenterX)  : @\"centerX\",\n            @(NSLayoutAttributeCenterY)  : @\"centerY\",\n            @(NSLayoutAttributeBaseline) : @\"baseline\",\n            \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n            @(NSLayoutAttributeFirstBaseline) : @\"firstBaseline\",\n            @(NSLayoutAttributeLastBaseline) : @\"lastBaseline\",\n#endif\n            \n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n            @(NSLayoutAttributeLeftMargin)           : @\"leftMargin\",\n            @(NSLayoutAttributeRightMargin)          : @\"rightMargin\",\n            @(NSLayoutAttributeTopMargin)            : @\"topMargin\",\n            @(NSLayoutAttributeBottomMargin)         : @\"bottomMargin\",\n            @(NSLayoutAttributeLeadingMargin)        : @\"leadingMargin\",\n            @(NSLayoutAttributeTrailingMargin)       : @\"trailingMargin\",\n            @(NSLayoutAttributeCenterXWithinMargins) : @\"centerXWithinMargins\",\n            @(NSLayoutAttributeCenterYWithinMargins) : @\"centerYWithinMargins\",\n#endif\n            \n        };\n    \n    });\n    return descriptionMap;\n}\n\n\n+ (NSDictionary *)layoutPriorityDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n#if TARGET_OS_IPHONE || TARGET_OS_TV\n        descriptionMap = @{\n            @(MASLayoutPriorityDefaultHigh)      : @\"high\",\n            @(MASLayoutPriorityDefaultLow)       : @\"low\",\n            @(MASLayoutPriorityDefaultMedium)    : @\"medium\",\n            @(MASLayoutPriorityRequired)         : @\"required\",\n            @(MASLayoutPriorityFittingSizeLevel) : @\"fitting size\",\n        };\n#elif TARGET_OS_MAC\n        descriptionMap = @{\n            @(MASLayoutPriorityDefaultHigh)                 : @\"high\",\n            @(MASLayoutPriorityDragThatCanResizeWindow)     : @\"drag can resize window\",\n            @(MASLayoutPriorityDefaultMedium)               : @\"medium\",\n            @(MASLayoutPriorityWindowSizeStayPut)           : @\"window size stay put\",\n            @(MASLayoutPriorityDragThatCannotResizeWindow)  : @\"drag cannot resize window\",\n            @(MASLayoutPriorityDefaultLow)                  : @\"low\",\n            @(MASLayoutPriorityFittingSizeCompression)      : @\"fitting size\",\n            @(MASLayoutPriorityRequired)                    : @\"required\",\n        };\n#endif\n    });\n    return descriptionMap;\n}\n\n#pragma mark - description override\n\n+ (NSString *)descriptionForObject:(id)obj {\n    if ([obj respondsToSelector:@selector(mas_key)] && [obj mas_key]) {\n        return [NSString stringWithFormat:@\"%@:%@\", [obj class], [obj mas_key]];\n    }\n    return [NSString stringWithFormat:@\"%@:%p\", [obj class], obj];\n}\n\n- (NSString *)description {\n    NSMutableString *description = [[NSMutableString alloc] initWithString:@\"<\"];\n\n    [description appendString:[self.class descriptionForObject:self]];\n\n    [description appendFormat:@\" %@\", [self.class descriptionForObject:self.firstItem]];\n    if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\".%@\", self.class.layoutAttributeDescriptionsByValue[@(self.firstAttribute)]];\n    }\n\n    [description appendFormat:@\" %@\", self.class.layoutRelationDescriptionsByValue[@(self.relation)]];\n\n    if (self.secondItem) {\n        [description appendFormat:@\" %@\", [self.class descriptionForObject:self.secondItem]];\n    }\n    if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\".%@\", self.class.layoutAttributeDescriptionsByValue[@(self.secondAttribute)]];\n    }\n    \n    if (self.multiplier != 1) {\n        [description appendFormat:@\" * %g\", self.multiplier];\n    }\n    \n    if (self.secondAttribute == NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\" %g\", self.constant];\n    } else {\n        if (self.constant) {\n            [description appendFormat:@\" %@ %g\", (self.constant < 0 ? @\"-\" : @\"+\"), ABS(self.constant)];\n        }\n    }\n\n    if (self.priority != MASLayoutPriorityRequired) {\n        [description appendFormat:@\" ^%@\", self.class.layoutPriorityDescriptionsByValue[@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]];\n    }\n\n    [description appendString:@\">\"];\n    return description;\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/View+MASAdditions.h",
    "content": "//\n//  UIView+MASAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\n/**\n *\tProvides constraint maker block\n *  and convience methods for creating MASViewAttribute which are view + NSLayoutAttribute pairs\n */\n@interface MAS_VIEW (MASAdditions)\n\n/**\n *\tfollowing properties return a new MASViewAttribute with current view and appropriate NSLayoutAttribute\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_left;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_top;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_right;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leading;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_width;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_height;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *(^mas_attribute)(NSLayoutAttribute attr);\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_firstBaseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_lastBaseline;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leadingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerYWithinMargins;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuide API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideTop API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideBottom API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideLeft API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideRight API_AVAILABLE(ios(11.0),tvos(11.0));\n\n#endif\n\n/**\n *\ta key to associate with this view\n */\n@property (nonatomic, strong) id mas_key;\n\n/**\n *\tFinds the closest common superview between this view and another view\n *\n *\t@param\tview\tother view\n *\n *\t@return\treturns nil if common superview could not be found\n */\n- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created MASConstraints\n */\n- (NSArray *)mas_makeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing.\n *  If an existing constraint exists then it will be updated instead.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_updateConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing.\n *  All constraints previously installed for the view will be removed.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_remakeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/View+MASAdditions.m",
    "content": "//\n//  UIView+MASAdditions.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"View+MASAdditions.h\"\n#import <objc/runtime.h>\n\n@implementation MAS_VIEW (MASAdditions)\n\n- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    constraintMaker.updateExisting = YES;\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    constraintMaker.removeExisting = YES;\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n#pragma mark - NSLayoutAttribute properties\n\n- (MASViewAttribute *)mas_left {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASViewAttribute *)mas_top {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASViewAttribute *)mas_right {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASViewAttribute *)mas_bottom {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASViewAttribute *)mas_leading {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASViewAttribute *)mas_trailing {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASViewAttribute *)mas_width {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASViewAttribute *)mas_height {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASViewAttribute *)mas_centerX {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASViewAttribute *)mas_centerY {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASViewAttribute *)mas_baseline {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBaseline];\n}\n\n- (MASViewAttribute *(^)(NSLayoutAttribute))mas_attribute\n{\n    return ^(NSLayoutAttribute attr) {\n        return [[MASViewAttribute alloc] initWithView:self layoutAttribute:attr];\n    };\n}\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n- (MASViewAttribute *)mas_firstBaseline {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeFirstBaseline];\n}\n- (MASViewAttribute *)mas_lastBaseline {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLastBaseline];\n}\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n- (MASViewAttribute *)mas_leftMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASViewAttribute *)mas_rightMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASViewAttribute *)mas_topMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASViewAttribute *)mas_bottomMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASViewAttribute *)mas_leadingMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASViewAttribute *)mas_trailingMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASViewAttribute *)mas_centerXWithinMargins {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASViewAttribute *)mas_centerYWithinMargins {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000)\n\n- (MASViewAttribute *)mas_safeAreaLayoutGuide {\n    return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n- (MASViewAttribute *)mas_safeAreaLayoutGuideTop {\n    return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_safeAreaLayoutGuideBottom {\n    return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n- (MASViewAttribute *)mas_safeAreaLayoutGuideLeft {\n    return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeLeft];\n}\n- (MASViewAttribute *)mas_safeAreaLayoutGuideRight {\n    return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeRight];\n}\n\n#endif\n\n#pragma mark - associated properties\n\n- (id)mas_key {\n    return objc_getAssociatedObject(self, @selector(mas_key));\n}\n\n- (void)setMas_key:(id)key {\n    objc_setAssociatedObject(self, @selector(mas_key), key, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark - heirachy\n\n- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view {\n    MAS_VIEW *closestCommonSuperview = nil;\n\n    MAS_VIEW *secondViewSuperview = view;\n    while (!closestCommonSuperview && secondViewSuperview) {\n        MAS_VIEW *firstViewSuperview = self;\n        while (!closestCommonSuperview && firstViewSuperview) {\n            if (secondViewSuperview == firstViewSuperview) {\n                closestCommonSuperview = secondViewSuperview;\n            }\n            firstViewSuperview = firstViewSuperview.superview;\n        }\n        secondViewSuperview = secondViewSuperview.superview;\n    }\n    return closestCommonSuperview;\n}\n\n@end\n"
  },
  {
    "path": "Pods/Masonry/Masonry/View+MASShorthandAdditions.h",
    "content": "//\n//  UIView+MASShorthandAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"View+MASAdditions.h\"\n\n#ifdef MAS_SHORTHAND\n\n/**\n *\tShorthand view additions without the 'mas_' prefixes,\n *  only enabled if MAS_SHORTHAND is defined\n */\n@interface MAS_VIEW (MASShorthandAdditions)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *left;\n@property (nonatomic, strong, readonly) MASViewAttribute *top;\n@property (nonatomic, strong, readonly) MASViewAttribute *right;\n@property (nonatomic, strong, readonly) MASViewAttribute *bottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *leading;\n@property (nonatomic, strong, readonly) MASViewAttribute *trailing;\n@property (nonatomic, strong, readonly) MASViewAttribute *width;\n@property (nonatomic, strong, readonly) MASViewAttribute *height;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerX;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerY;\n@property (nonatomic, strong, readonly) MASViewAttribute *baseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *(^attribute)(NSLayoutAttribute attr);\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *firstBaseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *lastBaseline;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *leftMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *rightMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *topMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *bottomMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *leadingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *trailingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerYWithinMargins;\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideTop API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideBottom API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideLeft API_AVAILABLE(ios(11.0),tvos(11.0));\n@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideRight API_AVAILABLE(ios(11.0),tvos(11.0));\n\n#endif\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n@end\n\n#define MAS_ATTR_FORWARD(attr)  \\\n- (MASViewAttribute *)attr {    \\\n    return [self mas_##attr];   \\\n}\n\n@implementation MAS_VIEW (MASShorthandAdditions)\n\nMAS_ATTR_FORWARD(top);\nMAS_ATTR_FORWARD(left);\nMAS_ATTR_FORWARD(bottom);\nMAS_ATTR_FORWARD(right);\nMAS_ATTR_FORWARD(leading);\nMAS_ATTR_FORWARD(trailing);\nMAS_ATTR_FORWARD(width);\nMAS_ATTR_FORWARD(height);\nMAS_ATTR_FORWARD(centerX);\nMAS_ATTR_FORWARD(centerY);\nMAS_ATTR_FORWARD(baseline);\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n\nMAS_ATTR_FORWARD(firstBaseline);\nMAS_ATTR_FORWARD(lastBaseline);\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)\n\nMAS_ATTR_FORWARD(leftMargin);\nMAS_ATTR_FORWARD(rightMargin);\nMAS_ATTR_FORWARD(topMargin);\nMAS_ATTR_FORWARD(bottomMargin);\nMAS_ATTR_FORWARD(leadingMargin);\nMAS_ATTR_FORWARD(trailingMargin);\nMAS_ATTR_FORWARD(centerXWithinMargins);\nMAS_ATTR_FORWARD(centerYWithinMargins);\n\n#endif\n\n#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000)\n\nMAS_ATTR_FORWARD(safeAreaLayoutGuideTop);\nMAS_ATTR_FORWARD(safeAreaLayoutGuideBottom);\nMAS_ATTR_FORWARD(safeAreaLayoutGuideLeft);\nMAS_ATTR_FORWARD(safeAreaLayoutGuideRight);\n\n#endif\n\n- (MASViewAttribute *(^)(NSLayoutAttribute))attribute {\n    return [self mas_attribute];\n}\n\n- (NSArray *)makeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block {\n    return [self mas_makeConstraints:block];\n}\n\n- (NSArray *)updateConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block {\n    return [self mas_updateConstraints:block];\n}\n\n- (NSArray *)remakeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block {\n    return [self mas_remakeConstraints:block];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/Masonry/Masonry/ViewController+MASAdditions.h",
    "content": "//\n//  UIViewController+MASAdditions.h\n//  Masonry\n//\n//  Created by Craig Siemens on 2015-06-23.\n//\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\n#ifdef MAS_VIEW_CONTROLLER\n\n@interface MAS_VIEW_CONTROLLER (MASAdditions)\n\n/**\n *\tfollowing properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom;\n\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/Masonry/Masonry/ViewController+MASAdditions.m",
    "content": "//\n//  UIViewController+MASAdditions.m\n//  Masonry\n//\n//  Created by Craig Siemens on 2015-06-23.\n//\n//\n\n#import \"ViewController+MASAdditions.h\"\n\n#ifdef MAS_VIEW_CONTROLLER\n\n@implementation MAS_VIEW_CONTROLLER (MASAdditions)\n\n- (MASViewAttribute *)mas_topLayoutGuide {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n- (MASViewAttribute *)mas_topLayoutGuideTop {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_topLayoutGuideBottom {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASViewAttribute *)mas_bottomLayoutGuide {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_bottomLayoutGuideTop {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_bottomLayoutGuideBottom {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n\n\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/Masonry/README.md",
    "content": "# Masonry [![Build Status](https://travis-ci.org/SnapKit/Masonry.svg?branch=master)](https://travis-ci.org/SnapKit/Masonry) [![Coverage Status](https://img.shields.io/coveralls/SnapKit/Masonry.svg?style=flat-square)](https://coveralls.io/r/SnapKit/Masonry) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) ![Pod Version](https://img.shields.io/cocoapods/v/Masonry.svg?style=flat)\n\n**Masonry is still actively maintained, we are committed to fixing bugs and merging good quality PRs from the wider community. However if you're using Swift in your project, we recommend using [SnapKit](https://github.com/SnapKit/SnapKit) as it provides better type safety with a simpler API.**\n\nMasonry is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Masonry has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable.\nMasonry supports iOS and Mac OS X.\n\nFor examples take a look at the **Masonry iOS Examples** project in the Masonry workspace. You will need to run `pod install` after downloading.\n\n## What's wrong with NSLayoutConstraints?\n\nUnder the hood Auto Layout is a powerful and flexible way of organising and laying out your views. However creating constraints from code is verbose and not very descriptive.\nImagine a simple example in which you want to have a view fill its superview but inset by 10 pixels on every side\n```obj-c\nUIView *superview = self.view;\n\nUIView *view1 = [[UIView alloc] init];\nview1.translatesAutoresizingMaskIntoConstraints = NO;\nview1.backgroundColor = [UIColor greenColor];\n[superview addSubview:view1];\n\nUIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10);\n\n[superview addConstraints:@[\n\n    //view1 constraints\n    [NSLayoutConstraint constraintWithItem:view1\n                                 attribute:NSLayoutAttributeTop\n                                 relatedBy:NSLayoutRelationEqual\n                                    toItem:superview\n                                 attribute:NSLayoutAttributeTop\n                                multiplier:1.0\n                                  constant:padding.top],\n\n    [NSLayoutConstraint constraintWithItem:view1\n                                 attribute:NSLayoutAttributeLeft\n                                 relatedBy:NSLayoutRelationEqual\n                                    toItem:superview\n                                 attribute:NSLayoutAttributeLeft\n                                multiplier:1.0\n                                  constant:padding.left],\n\n    [NSLayoutConstraint constraintWithItem:view1\n                                 attribute:NSLayoutAttributeBottom\n                                 relatedBy:NSLayoutRelationEqual\n                                    toItem:superview\n                                 attribute:NSLayoutAttributeBottom\n                                multiplier:1.0\n                                  constant:-padding.bottom],\n\n    [NSLayoutConstraint constraintWithItem:view1\n                                 attribute:NSLayoutAttributeRight\n                                 relatedBy:NSLayoutRelationEqual\n                                    toItem:superview\n                                 attribute:NSLayoutAttributeRight\n                                multiplier:1\n                                  constant:-padding.right],\n\n ]];\n```\nEven with such a simple example the code needed is quite verbose and quickly becomes unreadable when you have more than 2 or 3 views.\nAnother option is to use Visual Format Language (VFL), which is a bit less long winded.\nHowever the ASCII type syntax has its own pitfalls and its also a bit harder to animate as `NSLayoutConstraint constraintsWithVisualFormat:` returns an array.\n\n## Prepare to meet your Maker!\n\nHeres the same constraints created using MASConstraintMaker\n\n```obj-c\nUIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10);\n\n[view1 mas_makeConstraints:^(MASConstraintMaker *make) {\n    make.top.equalTo(superview.mas_top).with.offset(padding.top); //with is an optional semantic filler\n    make.left.equalTo(superview.mas_left).with.offset(padding.left);\n    make.bottom.equalTo(superview.mas_bottom).with.offset(-padding.bottom);\n    make.right.equalTo(superview.mas_right).with.offset(-padding.right);\n}];\n```\nOr even shorter\n\n```obj-c\n[view1 mas_makeConstraints:^(MASConstraintMaker *make) {\n    make.edges.equalTo(superview).with.insets(padding);\n}];\n```\n\nAlso note in the first example we had to add the constraints to the superview `[superview addConstraints:...`.\nMasonry however will automagically add constraints to the appropriate view.\n\nMasonry will also call `view1.translatesAutoresizingMaskIntoConstraints = NO;` for you.\n\n## Not all things are created equal\n\n> `.equalTo` equivalent to **NSLayoutRelationEqual**\n\n> `.lessThanOrEqualTo` equivalent to **NSLayoutRelationLessThanOrEqual**\n\n> `.greaterThanOrEqualTo` equivalent to **NSLayoutRelationGreaterThanOrEqual**\n\nThese three equality constraints accept one argument which can be any of the following:\n\n#### 1. MASViewAttribute\n\n```obj-c\nmake.centerX.lessThanOrEqualTo(view2.mas_left);\n```\n\nMASViewAttribute           |  NSLayoutAttribute\n-------------------------  |  --------------------------\nview.mas_left              |  NSLayoutAttributeLeft\nview.mas_right             |  NSLayoutAttributeRight\nview.mas_top               |  NSLayoutAttributeTop\nview.mas_bottom            |  NSLayoutAttributeBottom\nview.mas_leading           |  NSLayoutAttributeLeading\nview.mas_trailing          |  NSLayoutAttributeTrailing\nview.mas_width             |  NSLayoutAttributeWidth\nview.mas_height            |  NSLayoutAttributeHeight\nview.mas_centerX           |  NSLayoutAttributeCenterX\nview.mas_centerY           |  NSLayoutAttributeCenterY\nview.mas_baseline          |  NSLayoutAttributeBaseline\n\n#### 2. UIView/NSView\n\nif you want view.left to be greater than or equal to label.left :\n```obj-c\n//these two constraints are exactly the same\nmake.left.greaterThanOrEqualTo(label);\nmake.left.greaterThanOrEqualTo(label.mas_left);\n```\n\n#### 3. NSNumber\n\nAuto Layout allows width and height to be set to constant values.\nif you want to set view to have a minimum and maximum width you could pass a number to the equality blocks:\n```obj-c\n//width >= 200 && width <= 400\nmake.width.greaterThanOrEqualTo(@200);\nmake.width.lessThanOrEqualTo(@400)\n```\n\nHowever Auto Layout does not allow alignment attributes such as left, right, centerY etc to be set to constant values.\nSo if you pass a NSNumber for these attributes Masonry will turn these into constraints relative to the view&rsquo;s superview ie:\n```obj-c\n//creates view.left = view.superview.left + 10\nmake.left.lessThanOrEqualTo(@10)\n```\n\nInstead of using NSNumber, you can use primitives and structs to build your constraints, like so:\n```obj-c\nmake.top.mas_equalTo(42);\nmake.height.mas_equalTo(20);\nmake.size.mas_equalTo(CGSizeMake(50, 100));\nmake.edges.mas_equalTo(UIEdgeInsetsMake(10, 0, 10, 0));\nmake.left.mas_equalTo(view).mas_offset(UIEdgeInsetsMake(10, 0, 10, 0));\n```\n\nBy default, macros which support [autoboxing](https://en.wikipedia.org/wiki/Autoboxing#Autoboxing) are prefixed with `mas_`. Unprefixed versions are available by defining `MAS_SHORTHAND_GLOBALS` before importing Masonry.\n\n#### 4. NSArray\n\nAn array of a mixture of any of the previous types\n```obj-c\nmake.height.equalTo(@[view1.mas_height, view2.mas_height]);\nmake.height.equalTo(@[view1, view2]);\nmake.left.equalTo(@[view1, @100, view3.right]);\n````\n\n## Learn to prioritize\n\n> `.priority` allows you to specify an exact priority\n\n> `.priorityHigh` equivalent to **UILayoutPriorityDefaultHigh**\n\n> `.priorityMedium` is half way between high and low\n\n> `.priorityLow` equivalent to **UILayoutPriorityDefaultLow**\n\nPriorities are can be tacked on to the end of a constraint chain like so:\n```obj-c\nmake.left.greaterThanOrEqualTo(label.mas_left).with.priorityLow();\n\nmake.top.equalTo(label.mas_top).with.priority(600);\n```\n\n## Composition, composition, composition\n\nMasonry also gives you a few convenience methods which create multiple constraints at the same time. These are called MASCompositeConstraints\n\n#### edges\n\n```obj-c\n// make top, left, bottom, right equal view2\nmake.edges.equalTo(view2);\n\n// make top = superview.top + 5, left = superview.left + 10,\n//      bottom = superview.bottom - 15, right = superview.right - 20\nmake.edges.equalTo(superview).insets(UIEdgeInsetsMake(5, 10, 15, 20))\n```\n\n#### size\n\n```obj-c\n// make width and height greater than or equal to titleLabel\nmake.size.greaterThanOrEqualTo(titleLabel)\n\n// make width = superview.width + 100, height = superview.height - 50\nmake.size.equalTo(superview).sizeOffset(CGSizeMake(100, -50))\n```\n\n#### center\n```obj-c\n// make centerX and centerY = button1\nmake.center.equalTo(button1)\n\n// make centerX = superview.centerX - 5, centerY = superview.centerY + 10\nmake.center.equalTo(superview).centerOffset(CGPointMake(-5, 10))\n```\n\nYou can chain view attributes for increased readability:\n\n```obj-c\n// All edges but the top should equal those of the superview\nmake.left.right.and.bottom.equalTo(superview);\nmake.top.equalTo(otherView);\n```\n\n## Hold on for dear life\n\nSometimes you need modify existing constraints in order to animate or remove/replace constraints.\nIn Masonry there are a few different approaches to updating constraints.\n\n#### 1. References\nYou can hold on to a reference of a particular constraint by assigning the result of a constraint make expression to a local variable or a class property.\nYou could also reference multiple constraints by storing them away in an array.\n\n```obj-c\n// in public/private interface\n@property (nonatomic, strong) MASConstraint *topConstraint;\n\n...\n\n// when making constraints\n[view1 mas_makeConstraints:^(MASConstraintMaker *make) {\n    self.topConstraint = make.top.equalTo(superview.mas_top).with.offset(padding.top);\n    make.left.equalTo(superview.mas_left).with.offset(padding.left);\n}];\n\n...\n// then later you can call\n[self.topConstraint uninstall];\n```\n\n#### 2. mas_updateConstraints\nAlternatively if you are only updating the constant value of the constraint you can use the convience method `mas_updateConstraints` instead of `mas_makeConstraints`\n\n```obj-c\n// this is Apple's recommended place for adding/updating constraints\n// this method can get called multiple times in response to setNeedsUpdateConstraints\n// which can be called by UIKit internally or in your code if you need to trigger an update to your constraints\n- (void)updateConstraints {\n    [self.growingButton mas_updateConstraints:^(MASConstraintMaker *make) {\n        make.center.equalTo(self);\n        make.width.equalTo(@(self.buttonSize.width)).priorityLow();\n        make.height.equalTo(@(self.buttonSize.height)).priorityLow();\n        make.width.lessThanOrEqualTo(self);\n        make.height.lessThanOrEqualTo(self);\n    }];\n\n    //according to apple super should be called at end of method\n    [super updateConstraints];\n}\n```\n\n### 3. mas_remakeConstraints\n`mas_updateConstraints` is useful for updating a set of constraints, but doing anything beyond updating constant values can get exhausting. That's where `mas_remakeConstraints` comes in.\n\n`mas_remakeConstraints` is similar to `mas_updateConstraints`, but instead of updating constant values, it will remove all of its constraints before installing them again. This lets you provide different constraints without having to keep around references to ones which you want to remove.\n\n```obj-c\n- (void)changeButtonPosition {\n    [self.button mas_remakeConstraints:^(MASConstraintMaker *make) {\n        make.size.equalTo(self.buttonSize);\n\n        if (topLeft) {\n        \tmake.top.and.left.offset(10);\n        } else {\n        \tmake.bottom.and.right.offset(-10);\n        }\n    }];\n}\n```\n\nYou can find more detailed examples of all three approaches in the **Masonry iOS Examples** project.\n\n## When the ^&*!@ hits the fan!\n\nLaying out your views doesn't always goto plan. So when things literally go pear shaped, you don't want to be looking at console output like this:\n\n```obj-c\nUnable to simultaneously satisfy constraints.....blah blah blah....\n(\n    \"<NSLayoutConstraint:0x7189ac0 V:[UILabel:0x7186980(>=5000)]>\",\n    \"<NSAutoresizingMaskLayoutConstraint:0x839ea20 h=--& v=--& V:[MASExampleDebuggingView:0x7186560(416)]>\",\n    \"<NSLayoutConstraint:0x7189c70 UILabel:0x7186980.bottom == MASExampleDebuggingView:0x7186560.bottom - 10>\",\n    \"<NSLayoutConstraint:0x7189560 V:|-(1)-[UILabel:0x7186980]   (Names: '|':MASExampleDebuggingView:0x7186560 )>\"\n)\n\nWill attempt to recover by breaking constraint\n<NSLayoutConstraint:0x7189ac0 V:[UILabel:0x7186980(>=5000)]>\n```\n\nMasonry adds a category to NSLayoutConstraint which overrides the default implementation of `- (NSString *)description`.\nNow you can give meaningful names to views and constraints, and also easily pick out the constraints created by Masonry.\n\nwhich means your console output can now look like this:\n\n```obj-c\nUnable to simultaneously satisfy constraints......blah blah blah....\n(\n    \"<NSAutoresizingMaskLayoutConstraint:0x8887740 MASExampleDebuggingView:superview.height == 416>\",\n    \"<MASLayoutConstraint:ConstantConstraint UILabel:messageLabel.height >= 5000>\",\n    \"<MASLayoutConstraint:BottomConstraint UILabel:messageLabel.bottom == MASExampleDebuggingView:superview.bottom - 10>\",\n    \"<MASLayoutConstraint:ConflictingConstraint[0] UILabel:messageLabel.top == MASExampleDebuggingView:superview.top + 1>\"\n)\n\nWill attempt to recover by breaking constraint\n<MASLayoutConstraint:ConstantConstraint UILabel:messageLabel.height >= 5000>\n```\n\nFor an example of how to set this up take a look at the **Masonry iOS Examples** project in the Masonry workspace.\n\n## Where should I create my constraints?\n\n```objc\n@implementation DIYCustomView\n\n- (id)init {\n    self = [super init];\n    if (!self) return nil;\n\n    // --- Create your views here ---\n    self.button = [[UIButton alloc] init];\n\n    return self;\n}\n\n// tell UIKit that you are using AutoLayout\n+ (BOOL)requiresConstraintBasedLayout {\n    return YES;\n}\n\n// this is Apple's recommended place for adding/updating constraints\n- (void)updateConstraints {\n\n    // --- remake/update constraints here\n    [self.button remakeConstraints:^(MASConstraintMaker *make) {\n        make.width.equalTo(@(self.buttonSize.width));\n        make.height.equalTo(@(self.buttonSize.height));\n    }];\n    \n    //according to apple super should be called at end of method\n    [super updateConstraints];\n}\n\n- (void)didTapButton:(UIButton *)button {\n    // --- Do your changes ie change variables that affect your layout etc ---\n    self.buttonSize = CGSize(200, 200);\n\n    // tell constraints they need updating\n    [self setNeedsUpdateConstraints];\n}\n\n@end\n```\n\n## Installation\nUse the [orsome](http://www.youtube.com/watch?v=YaIZF8uUTtk) [CocoaPods](http://github.com/CocoaPods/CocoaPods).\n\nIn your Podfile\n>`pod 'Masonry'`\n\nIf you want to use masonry without all those pesky 'mas_' prefixes. Add #define MAS_SHORTHAND to your prefix.pch before importing Masonry\n>`#define MAS_SHORTHAND`\n\nGet busy Masoning\n>`#import \"Masonry.h\"`\n\n## Code Snippets\n\nCopy the included code snippets to ``~/Library/Developer/Xcode/UserData/CodeSnippets`` to write your masonry blocks at lightning speed!\n\n`mas_make` -> ` [<#view#> mas_makeConstraints:^(MASConstraintMaker *make) {\n     <#code#>\n }];`\n\n`mas_update` -> ` [<#view#> mas_updateConstraints:^(MASConstraintMaker *make) {\n     <#code#>\n }];`\n\n`mas_remake` -> ` [<#view#> mas_remakeConstraints:^(MASConstraintMaker *make) {\n     <#code#>\n }];`\n\n## Features\n* Not limited to subset of Auto Layout. Anything NSLayoutConstraint can do, Masonry can do too!\n* Great debug support, give your views and constraints meaningful names.\n* Constraints read like sentences.\n* No crazy macro magic. Masonry won't pollute the global namespace with macros.\n* Not string or dictionary based and hence you get compile time checking.\n\n## TODO\n* Eye candy\n* Mac example project\n* More tests and examples\n\n"
  },
  {
    "path": "Pods/Pods.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t01E09711F001C49F92A97060414E262B /* MASCompositeConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 475326F2A929CD1AFFB74850961F32C0 /* MASCompositeConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t13635B78121B99E5C03C92506A161607 /* MASViewAttribute.m in Sources */ = {isa = PBXBuildFile; fileRef = 82F28AEAAF722BC62BF5B37D6663BBC2 /* MASViewAttribute.m */; };\n\t\t1F3BD3BC28432BB5E2F73501E06E4579 /* MASUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 1321572A3ED9C894C94A131BE29B81B2 /* MASUtilities.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t2DBB74B8B5DDB1F621433DD12BF35102 /* MASViewConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = C7C02266037F030E22468AC86802DB57 /* MASViewConstraint.m */; };\n\t\t3E8E6916C563B9CB12AA417275FC6EB3 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = C762C4F3A304C10AF7EBEA6AAA8508A0 /* NSLayoutConstraint+MASDebugAdditions.m */; };\n\t\t490CA524521F7D444EA58FA915D7E99C /* NSArray+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = B179F4D3D34A3CE25A698B8D9AC9D6C2 /* NSArray+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t49B903D576E09560C52AA92FDCC31A68 /* Masonry.h in Headers */ = {isa = PBXBuildFile; fileRef = EC0384F145CF471A951BA8E9486AD626 /* Masonry.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t4CBE1B46550A3FB90FDD1CB9CBA7B7FE /* MASConstraint+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 22E2395DA2EBCF6241A0DA0E1859FF45 /* MASConstraint+Private.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t61CCEA01CBE8EFFA5515E7A0D8635AAE /* MASCompositeConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = D5EC6EDDDD3E503C5B2E967D3FEECFEB /* MASCompositeConstraint.m */; };\n\t\t6209E20926D79222E59F58B962BFAA1E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */; };\n\t\t6249770A7D163B0F3001D5A76C5FA01C /* MASConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 3162AC8E29FA7F3BF0D8641F7F4D9B60 /* MASConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t68F98758BA84B8EC3472A8C6FD646D16 /* Masonry-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B5A231E76AF7DC6CB887B5B2C522A7A /* Masonry-dummy.m */; };\n\t\t7BDDE51AF16FA53A09506EDB91E1C3C2 /* NSArray+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 8229525E7067F22D3977D2628DF5F2C3 /* NSArray+MASAdditions.m */; };\n\t\t86EE1CB5473A4A07081D8DE3A2C45924 /* View+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8E7E17DB5590A8C4D9625D67E6FBD243 /* View+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t89450A58FD91E5B227171FC75160E4EA /* MASConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F937BDEB8DF93A08D20C5355C0FDB5C /* MASConstraint.m */; };\n\t\t955BE39896CA35F2A585DC3309E5FDA5 /* MASLayoutConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 807FFD255E8235D5B42FE078299B5F1B /* MASLayoutConstraint.m */; };\n\t\t978FF1E2B6A7D56E4098FB443E58F029 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; };\n\t\t983CB852CBBFBC04C2A6BA407E34F59B /* View+MASShorthandAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A9F610CB90E57B81F8F7DCA2176E0FD /* View+MASShorthandAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t9934AEA2C891C201D8ED5746FF42FE1B /* NSLayoutConstraint+MASDebugAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = E158FC65C5404E098F16E26F478DA504 /* NSLayoutConstraint+MASDebugAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tA1FA046FDFC42676D17FEC387B10D24A /* View+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 2FCC2A09AC3DCD0E4A3D268DAABC5135 /* View+MASAdditions.m */; };\n\t\tA6436E3CFFCBFE591E2D2A68ED90CAC6 /* MASLayoutConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = B48867DE203BCF3BB3DFCAB8FDC7516B /* MASLayoutConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tA83991D7C1373DF66020C2FDFC5D7564 /* MASViewConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 043FB94CF93050E20D8E4C071ACFA5D2 /* MASViewConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tBB3FB934543C9FC80AAE4D08D714BC74 /* Pods-DynamicClipImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 406BCDB7827D0F3E513BF4620DFCBD2B /* Pods-DynamicClipImage-dummy.m */; };\n\t\tC88F85D3200060BD98FC13EA58121706 /* ViewController+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = FA891F8E85C079B4FB101DDD5BC7A477 /* ViewController+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tD7CE05A743B7ACD50796191FA442814C /* ViewController+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 25CED739CF35B6D0A1D95AE17D712A7F /* ViewController+MASAdditions.m */; };\n\t\tDF7F88B58B564EDF169EC0C9CF8E5124 /* MASConstraintMaker.m in Sources */ = {isa = PBXBuildFile; fileRef = F8AB44751192F0AA8DA5F75A06138D15 /* MASConstraintMaker.m */; };\n\t\tE072DA57403C4BFF9B10467BE05604C5 /* NSArray+MASShorthandAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = FBE23E70FF64ACC81816A368E171B903 /* NSArray+MASShorthandAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE1E771349813022263F549BDF33CB4BB /* MASViewAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = 915A6FF0E04F5A5C0ACDE0E32BD2F193 /* MASViewAttribute.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tEC48DE078CA5E55922CCE02354D475CD /* MASConstraintMaker.h in Headers */ = {isa = PBXBuildFile; fileRef = 780A86CEB0A0131C88BE12414D500734 /* MASConstraintMaker.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tF0B56A7D38A399A2F67F9920C9526A66 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tE7993F56D99A7101D58E7077E2BF37F0 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 9DC8D9E02903E93BD0B2FEC9D846EA20;\n\t\t\tremoteInfo = Masonry;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t043906F651F0D42668E926D679D531C7 /* Pods-DynamicClipImage-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-DynamicClipImage-resources.sh\"; sourceTree = \"<group>\"; };\n\t\t043FB94CF93050E20D8E4C071ACFA5D2 /* MASViewConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASViewConstraint.h; path = Masonry/MASViewConstraint.h; sourceTree = \"<group>\"; };\n\t\t1321572A3ED9C894C94A131BE29B81B2 /* MASUtilities.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASUtilities.h; path = Masonry/MASUtilities.h; sourceTree = \"<group>\"; };\n\t\t22E2395DA2EBCF6241A0DA0E1859FF45 /* MASConstraint+Private.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"MASConstraint+Private.h\"; path = \"Masonry/MASConstraint+Private.h\"; sourceTree = \"<group>\"; };\n\t\t25CED739CF35B6D0A1D95AE17D712A7F /* ViewController+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"ViewController+MASAdditions.m\"; path = \"Masonry/ViewController+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t2FCC2A09AC3DCD0E4A3D268DAABC5135 /* View+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"View+MASAdditions.m\"; path = \"Masonry/View+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t3162AC8E29FA7F3BF0D8641F7F4D9B60 /* MASConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASConstraint.h; path = Masonry/MASConstraint.h; sourceTree = \"<group>\"; };\n\t\t3F0ED884A32AFCEB8A8A26A8C1761192 /* Pods-DynamicClipImage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-DynamicClipImage.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t406BCDB7827D0F3E513BF4620DFCBD2B /* Pods-DynamicClipImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Pods-DynamicClipImage-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t475326F2A929CD1AFFB74850961F32C0 /* MASCompositeConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASCompositeConstraint.h; path = Masonry/MASCompositeConstraint.h; sourceTree = \"<group>\"; };\n\t\t780A86CEB0A0131C88BE12414D500734 /* MASConstraintMaker.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASConstraintMaker.h; path = Masonry/MASConstraintMaker.h; sourceTree = \"<group>\"; };\n\t\t7882AB8492CA4F59F730C76CC3BBF57A /* Masonry.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Masonry.xcconfig; sourceTree = \"<group>\"; };\n\t\t7B5A231E76AF7DC6CB887B5B2C522A7A /* Masonry-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Masonry-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t807FFD255E8235D5B42FE078299B5F1B /* MASLayoutConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASLayoutConstraint.m; path = Masonry/MASLayoutConstraint.m; sourceTree = \"<group>\"; };\n\t\t81946C89D20F83AB1E5F9F6B9A71AE6A /* Pods-DynamicClipImage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-DynamicClipImage.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t8229525E7067F22D3977D2628DF5F2C3 /* NSArray+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSArray+MASAdditions.m\"; path = \"Masonry/NSArray+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t82F28AEAAF722BC62BF5B37D6663BBC2 /* MASViewAttribute.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASViewAttribute.m; path = Masonry/MASViewAttribute.m; sourceTree = \"<group>\"; };\n\t\t8A9F610CB90E57B81F8F7DCA2176E0FD /* View+MASShorthandAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"View+MASShorthandAdditions.h\"; path = \"Masonry/View+MASShorthandAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t8E7E17DB5590A8C4D9625D67E6FBD243 /* View+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"View+MASAdditions.h\"; path = \"Masonry/View+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t915A6FF0E04F5A5C0ACDE0E32BD2F193 /* MASViewAttribute.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASViewAttribute.h; path = Masonry/MASViewAttribute.h; sourceTree = \"<group>\"; };\n\t\t93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };\n\t\t9F937BDEB8DF93A08D20C5355C0FDB5C /* MASConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASConstraint.m; path = Masonry/MASConstraint.m; sourceTree = \"<group>\"; };\n\t\tA2F75C96947B2651F82FC18F66C43B49 /* Masonry-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"Masonry-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\tB179F4D3D34A3CE25A698B8D9AC9D6C2 /* NSArray+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSArray+MASAdditions.h\"; path = \"Masonry/NSArray+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\tB48867DE203BCF3BB3DFCAB8FDC7516B /* MASLayoutConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASLayoutConstraint.h; path = Masonry/MASLayoutConstraint.h; sourceTree = \"<group>\"; };\n\t\tB5413EB86B5219447EABAA7213D5C167 /* Pods-DynamicClipImage-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = \"Pods-DynamicClipImage-acknowledgements.markdown\"; sourceTree = \"<group>\"; };\n\t\tB63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };\n\t\tB91B1A4E1D766AC0E3277E750E816991 /* Pods-DynamicClipImage-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-DynamicClipImage-frameworks.sh\"; sourceTree = \"<group>\"; };\n\t\tBC901346DA0B815AA567ADCC1A699343 /* libPods-DynamicClipImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = \"libPods-DynamicClipImage.a\"; path = \"libPods-DynamicClipImage.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tC12FE06FC4A7C772F962BE8E4689A529 /* Pods-DynamicClipImage-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-DynamicClipImage-acknowledgements.plist\"; sourceTree = \"<group>\"; };\n\t\tC762C4F3A304C10AF7EBEA6AAA8508A0 /* NSLayoutConstraint+MASDebugAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSLayoutConstraint+MASDebugAdditions.m\"; path = \"Masonry/NSLayoutConstraint+MASDebugAdditions.m\"; sourceTree = \"<group>\"; };\n\t\tC7C02266037F030E22468AC86802DB57 /* MASViewConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASViewConstraint.m; path = Masonry/MASViewConstraint.m; sourceTree = \"<group>\"; };\n\t\tD5EC6EDDDD3E503C5B2E967D3FEECFEB /* MASCompositeConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASCompositeConstraint.m; path = Masonry/MASCompositeConstraint.m; sourceTree = \"<group>\"; };\n\t\tD88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };\n\t\tDCDFC36D693CE778F8A35EE5281B0E59 /* libMasonry.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libMasonry.a; path = libMasonry.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE158FC65C5404E098F16E26F478DA504 /* NSLayoutConstraint+MASDebugAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSLayoutConstraint+MASDebugAdditions.h\"; path = \"Masonry/NSLayoutConstraint+MASDebugAdditions.h\"; sourceTree = \"<group>\"; };\n\t\tEC0384F145CF471A951BA8E9486AD626 /* Masonry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Masonry.h; path = Masonry/Masonry.h; sourceTree = \"<group>\"; };\n\t\tF8AB44751192F0AA8DA5F75A06138D15 /* MASConstraintMaker.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASConstraintMaker.m; path = Masonry/MASConstraintMaker.m; sourceTree = \"<group>\"; };\n\t\tFA891F8E85C079B4FB101DDD5BC7A477 /* ViewController+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"ViewController+MASAdditions.h\"; path = \"Masonry/ViewController+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\tFBE23E70FF64ACC81816A368E171B903 /* NSArray+MASShorthandAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSArray+MASShorthandAdditions.h\"; path = \"Masonry/NSArray+MASShorthandAdditions.h\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t6FD8312A1AEB348F49A81C438DB25115 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tF0B56A7D38A399A2F67F9920C9526A66 /* Foundation.framework in Frameworks */,\n\t\t\t\t6209E20926D79222E59F58B962BFAA1E /* UIKit.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tC0D30DB855CE31BE0377F82659625D66 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t978FF1E2B6A7D56E4098FB443E58F029 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t236BDB27D1777C7B826EA71358AC7742 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDCDFC36D693CE778F8A35EE5281B0E59 /* libMasonry.a */,\n\t\t\t\tBC901346DA0B815AA567ADCC1A699343 /* libPods-DynamicClipImage.a */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t35794DDC3FB381A629B3299780C9964B /* Pods-DynamicClipImage */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB5413EB86B5219447EABAA7213D5C167 /* Pods-DynamicClipImage-acknowledgements.markdown */,\n\t\t\t\tC12FE06FC4A7C772F962BE8E4689A529 /* Pods-DynamicClipImage-acknowledgements.plist */,\n\t\t\t\t406BCDB7827D0F3E513BF4620DFCBD2B /* Pods-DynamicClipImage-dummy.m */,\n\t\t\t\tB91B1A4E1D766AC0E3277E750E816991 /* Pods-DynamicClipImage-frameworks.sh */,\n\t\t\t\t043906F651F0D42668E926D679D531C7 /* Pods-DynamicClipImage-resources.sh */,\n\t\t\t\t3F0ED884A32AFCEB8A8A26A8C1761192 /* Pods-DynamicClipImage.debug.xcconfig */,\n\t\t\t\t81946C89D20F83AB1E5F9F6B9A71AE6A /* Pods-DynamicClipImage.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Pods-DynamicClipImage\";\n\t\t\tpath = \"Target Support Files/Pods-DynamicClipImage\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t3B9FAC5BAEA75CAB3E20372C4D27D7EE /* Masonry */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t475326F2A929CD1AFFB74850961F32C0 /* MASCompositeConstraint.h */,\n\t\t\t\tD5EC6EDDDD3E503C5B2E967D3FEECFEB /* MASCompositeConstraint.m */,\n\t\t\t\t3162AC8E29FA7F3BF0D8641F7F4D9B60 /* MASConstraint.h */,\n\t\t\t\t9F937BDEB8DF93A08D20C5355C0FDB5C /* MASConstraint.m */,\n\t\t\t\t22E2395DA2EBCF6241A0DA0E1859FF45 /* MASConstraint+Private.h */,\n\t\t\t\t780A86CEB0A0131C88BE12414D500734 /* MASConstraintMaker.h */,\n\t\t\t\tF8AB44751192F0AA8DA5F75A06138D15 /* MASConstraintMaker.m */,\n\t\t\t\tB48867DE203BCF3BB3DFCAB8FDC7516B /* MASLayoutConstraint.h */,\n\t\t\t\t807FFD255E8235D5B42FE078299B5F1B /* MASLayoutConstraint.m */,\n\t\t\t\tEC0384F145CF471A951BA8E9486AD626 /* Masonry.h */,\n\t\t\t\t1321572A3ED9C894C94A131BE29B81B2 /* MASUtilities.h */,\n\t\t\t\t915A6FF0E04F5A5C0ACDE0E32BD2F193 /* MASViewAttribute.h */,\n\t\t\t\t82F28AEAAF722BC62BF5B37D6663BBC2 /* MASViewAttribute.m */,\n\t\t\t\t043FB94CF93050E20D8E4C071ACFA5D2 /* MASViewConstraint.h */,\n\t\t\t\tC7C02266037F030E22468AC86802DB57 /* MASViewConstraint.m */,\n\t\t\t\tB179F4D3D34A3CE25A698B8D9AC9D6C2 /* NSArray+MASAdditions.h */,\n\t\t\t\t8229525E7067F22D3977D2628DF5F2C3 /* NSArray+MASAdditions.m */,\n\t\t\t\tFBE23E70FF64ACC81816A368E171B903 /* NSArray+MASShorthandAdditions.h */,\n\t\t\t\tE158FC65C5404E098F16E26F478DA504 /* NSLayoutConstraint+MASDebugAdditions.h */,\n\t\t\t\tC762C4F3A304C10AF7EBEA6AAA8508A0 /* NSLayoutConstraint+MASDebugAdditions.m */,\n\t\t\t\t8E7E17DB5590A8C4D9625D67E6FBD243 /* View+MASAdditions.h */,\n\t\t\t\t2FCC2A09AC3DCD0E4A3D268DAABC5135 /* View+MASAdditions.m */,\n\t\t\t\t8A9F610CB90E57B81F8F7DCA2176E0FD /* View+MASShorthandAdditions.h */,\n\t\t\t\tFA891F8E85C079B4FB101DDD5BC7A477 /* ViewController+MASAdditions.h */,\n\t\t\t\t25CED739CF35B6D0A1D95AE17D712A7F /* ViewController+MASAdditions.m */,\n\t\t\t\t4854BD850DB1ADEB02DE483F0C44E016 /* Support Files */,\n\t\t\t);\n\t\t\tname = Masonry;\n\t\t\tpath = Masonry;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t438B396F6B4147076630CAEFE34282C1 /* iOS */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438B396F6B4147076630CAEFE34282C1 /* iOS */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tD88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */,\n\t\t\t\tB63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */,\n\t\t\t);\n\t\t\tname = iOS;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t4854BD850DB1ADEB02DE483F0C44E016 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7882AB8492CA4F59F730C76CC3BBF57A /* Masonry.xcconfig */,\n\t\t\t\t7B5A231E76AF7DC6CB887B5B2C522A7A /* Masonry-dummy.m */,\n\t\t\t\tA2F75C96947B2651F82FC18F66C43B49 /* Masonry-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/Masonry\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7DB346D0F39D3F0E887471402A8071AB = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */,\n\t\t\t\t433CD3331B6C3787F473C941B61FC68F /* Frameworks */,\n\t\t\t\tE9B49E9D4F6BC02AA78DCF86BCED2145 /* Pods */,\n\t\t\t\t236BDB27D1777C7B826EA71358AC7742 /* Products */,\n\t\t\t\tE21F8FB7842A3EE0A6AB69FCD72F6A4A /* Targets Support Files */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21F8FB7842A3EE0A6AB69FCD72F6A4A /* Targets Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t35794DDC3FB381A629B3299780C9964B /* Pods-DynamicClipImage */,\n\t\t\t);\n\t\t\tname = \"Targets Support Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE9B49E9D4F6BC02AA78DCF86BCED2145 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3B9FAC5BAEA75CAB3E20372C4D27D7EE /* Masonry */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXHeadersBuildPhase section */\n\t\tBDF73468622762862D2FB76ED4AC0D8E /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t01E09711F001C49F92A97060414E262B /* MASCompositeConstraint.h in Headers */,\n\t\t\t\t4CBE1B46550A3FB90FDD1CB9CBA7B7FE /* MASConstraint+Private.h in Headers */,\n\t\t\t\t6249770A7D163B0F3001D5A76C5FA01C /* MASConstraint.h in Headers */,\n\t\t\t\tEC48DE078CA5E55922CCE02354D475CD /* MASConstraintMaker.h in Headers */,\n\t\t\t\tA6436E3CFFCBFE591E2D2A68ED90CAC6 /* MASLayoutConstraint.h in Headers */,\n\t\t\t\t49B903D576E09560C52AA92FDCC31A68 /* Masonry.h in Headers */,\n\t\t\t\t1F3BD3BC28432BB5E2F73501E06E4579 /* MASUtilities.h in Headers */,\n\t\t\t\tE1E771349813022263F549BDF33CB4BB /* MASViewAttribute.h in Headers */,\n\t\t\t\tA83991D7C1373DF66020C2FDFC5D7564 /* MASViewConstraint.h in Headers */,\n\t\t\t\t490CA524521F7D444EA58FA915D7E99C /* NSArray+MASAdditions.h in Headers */,\n\t\t\t\tE072DA57403C4BFF9B10467BE05604C5 /* NSArray+MASShorthandAdditions.h in Headers */,\n\t\t\t\t9934AEA2C891C201D8ED5746FF42FE1B /* NSLayoutConstraint+MASDebugAdditions.h in Headers */,\n\t\t\t\t86EE1CB5473A4A07081D8DE3A2C45924 /* View+MASAdditions.h in Headers */,\n\t\t\t\t983CB852CBBFBC04C2A6BA407E34F59B /* View+MASShorthandAdditions.h in Headers */,\n\t\t\t\tC88F85D3200060BD98FC13EA58121706 /* ViewController+MASAdditions.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXHeadersBuildPhase section */\n\n/* Begin PBXNativeTarget section */\n\t\t081BA36BD74004ACE1EAB34EDDBD7304 /* Pods-DynamicClipImage */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 51B2BA62196559D5CCE9204CDECE3F60 /* Build configuration list for PBXNativeTarget \"Pods-DynamicClipImage\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t1A9BF37AA81CD4DDE2504354D3D7EEC4 /* Sources */,\n\t\t\t\tC0D30DB855CE31BE0377F82659625D66 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t1A538D4B4EB55FF58DF7E4FC7C86D106 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = \"Pods-DynamicClipImage\";\n\t\t\tproductName = \"Pods-DynamicClipImage\";\n\t\t\tproductReference = BC901346DA0B815AA567ADCC1A699343 /* libPods-DynamicClipImage.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t9DC8D9E02903E93BD0B2FEC9D846EA20 /* Masonry */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 34CAE1CB89EDBF2E53735CC5D4E5E69F /* Build configuration list for PBXNativeTarget \"Masonry\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tC4BE2DC1E815E7367562323223772531 /* Sources */,\n\t\t\t\t6FD8312A1AEB348F49A81C438DB25115 /* Frameworks */,\n\t\t\t\tBDF73468622762862D2FB76ED4AC0D8E /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = Masonry;\n\t\t\tproductName = Masonry;\n\t\t\tproductReference = DCDFC36D693CE778F8A35EE5281B0E59 /* libMasonry.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tD41D8CD98F00B204E9800998ECF8427E /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0830;\n\t\t\t\tLastUpgradeCheck = 0700;\n\t\t\t};\n\t\t\tbuildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject \"Pods\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t);\n\t\t\tmainGroup = 7DB346D0F39D3F0E887471402A8071AB;\n\t\t\tproductRefGroup = 236BDB27D1777C7B826EA71358AC7742 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t9DC8D9E02903E93BD0B2FEC9D846EA20 /* Masonry */,\n\t\t\t\t081BA36BD74004ACE1EAB34EDDBD7304 /* Pods-DynamicClipImage */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t1A9BF37AA81CD4DDE2504354D3D7EEC4 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tBB3FB934543C9FC80AAE4D08D714BC74 /* Pods-DynamicClipImage-dummy.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tC4BE2DC1E815E7367562323223772531 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t61CCEA01CBE8EFFA5515E7A0D8635AAE /* MASCompositeConstraint.m in Sources */,\n\t\t\t\t89450A58FD91E5B227171FC75160E4EA /* MASConstraint.m in Sources */,\n\t\t\t\tDF7F88B58B564EDF169EC0C9CF8E5124 /* MASConstraintMaker.m in Sources */,\n\t\t\t\t955BE39896CA35F2A585DC3309E5FDA5 /* MASLayoutConstraint.m in Sources */,\n\t\t\t\t68F98758BA84B8EC3472A8C6FD646D16 /* Masonry-dummy.m in Sources */,\n\t\t\t\t13635B78121B99E5C03C92506A161607 /* MASViewAttribute.m in Sources */,\n\t\t\t\t2DBB74B8B5DDB1F621433DD12BF35102 /* MASViewConstraint.m in Sources */,\n\t\t\t\t7BDDE51AF16FA53A09506EDB91E1C3C2 /* NSArray+MASAdditions.m in Sources */,\n\t\t\t\t3E8E6916C563B9CB12AA417275FC6EB3 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */,\n\t\t\t\tA1FA046FDFC42676D17FEC387B10D24A /* View+MASAdditions.m in Sources */,\n\t\t\t\tD7CE05A743B7ACD50796191FA442814C /* ViewController+MASAdditions.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t1A538D4B4EB55FF58DF7E4FC7C86D106 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = Masonry;\n\t\t\ttarget = 9DC8D9E02903E93BD0B2FEC9D846EA20 /* Masonry */;\n\t\t\ttargetProxy = E7993F56D99A7101D58E7077E2BF37F0 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin XCBuildConfiguration section */\n\t\t33F8F7AAAA85E50D89ADDD29179D4D1C /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGNING_REQUIRED = NO;\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_RELEASE=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t398DC6EE240497F9BE0D2F0D83EE96CA /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 3F0ED884A32AFCEB8A8A26A8C1761192 /* Pods-DynamicClipImage.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t3C7603FCA3FD3DD4760B85324A928D53 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGNING_REQUIRED = NO;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_DEBUG=1\",\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t5A6ACE61C4D128598EA7472C87982601 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7882AB8492CA4F59F730C76CC3BBF57A /* Masonry.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/Masonry/Masonry-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t6CA42F62CE0652819ED46936FE31E065 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7882AB8492CA4F59F730C76CC3BBF57A /* Masonry.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/Masonry/Masonry-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t779CF383BE5B53E764FB1A9D34757DDF /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 81946C89D20F83AB1E5F9F6B9A71AE6A /* Pods-DynamicClipImage.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject \"Pods\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t3C7603FCA3FD3DD4760B85324A928D53 /* Debug */,\n\t\t\t\t33F8F7AAAA85E50D89ADDD29179D4D1C /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t34CAE1CB89EDBF2E53735CC5D4E5E69F /* Build configuration list for PBXNativeTarget \"Masonry\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t5A6ACE61C4D128598EA7472C87982601 /* Debug */,\n\t\t\t\t6CA42F62CE0652819ED46936FE31E065 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t51B2BA62196559D5CCE9204CDECE3F60 /* Build configuration list for PBXNativeTarget \"Pods-DynamicClipImage\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t398DC6EE240497F9BE0D2F0D83EE96CA /* Debug */,\n\t\t\t\t779CF383BE5B53E764FB1A9D34757DDF /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n}\n"
  },
  {
    "path": "Pods/Target Support Files/Masonry/Masonry-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Masonry : NSObject\n@end\n@implementation PodsDummy_Masonry\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/Masonry/Masonry-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern \"C\"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/Masonry/Masonry.xcconfig",
    "content": "CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/Masonry\nGCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/Masonry\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/Masonry\"\nOTHER_LDFLAGS = -framework \"Foundation\" -framework \"UIKit\"\nPODS_BUILD_DIR = $BUILD_DIR\nPODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_ROOT = ${SRCROOT}\nPODS_TARGET_SRCROOT = ${PODS_ROOT}/Masonry\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-acknowledgements.markdown",
    "content": "# Acknowledgements\nThis application makes use of the following third party libraries:\n\n## Masonry\n\nCopyright (c) 2011-2012 Masonry Team - https://github.com/Masonry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\nGenerated by CocoaPods - https://cocoapods.org\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-acknowledgements.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreferenceSpecifiers</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>This application makes use of the following third party libraries:</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Acknowledgements</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.</string>\n\t\t\t<key>License</key>\n\t\t\t<string>MIT</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Masonry</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Generated by CocoaPods - https://cocoapods.org</string>\n\t\t\t<key>Title</key>\n\t\t\t<string></string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t</array>\n\t<key>StringsTable</key>\n\t<string>Acknowledgements</string>\n\t<key>Title</key>\n\t<string>Acknowledgements</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_DynamicClipImage : NSObject\n@end\n@implementation PodsDummy_Pods_DynamicClipImage\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-frameworks.sh",
    "content": "#!/bin/sh\nset -e\n\necho \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\nSWIFT_STDLIB_PATH=\"${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"\n\ninstall_framework()\n{\n  if [ -r \"${BUILT_PRODUCTS_DIR}/$1\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$1\"\n  elif [ -r \"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\"\n  elif [ -r \"$1\" ]; then\n    local source=\"$1\"\n  fi\n\n  local destination=\"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\n  if [ -L \"${source}\" ]; then\n      echo \"Symlinked...\"\n      source=\"$(readlink \"${source}\")\"\n  fi\n\n  # use filter instead of exclude so missing patterns dont' throw errors\n  echo \"rsync -av --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${destination}\\\"\"\n  rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"\n\n  local basename\n  basename=\"$(basename -s .framework \"$1\")\"\n  binary=\"${destination}/${basename}.framework/${basename}\"\n  if ! [ -r \"$binary\" ]; then\n    binary=\"${destination}/${basename}\"\n  fi\n\n  # Strip invalid architectures so \"fat\" simulator / device frameworks work on device\n  if [[ \"$(file \"$binary\")\" == *\"dynamically linked shared library\"* ]]; then\n    strip_invalid_archs \"$binary\"\n  fi\n\n  # Resign the code if required by the build settings to avoid unstable apps\n  code_sign_if_enabled \"${destination}/$(basename \"$1\")\"\n\n  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.\n  if [ \"${XCODE_VERSION_MAJOR}\" -lt 7 ]; then\n    local swift_runtime_libs\n    swift_runtime_libs=$(xcrun otool -LX \"$binary\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u  && exit ${PIPESTATUS[0]})\n    for lib in $swift_runtime_libs; do\n      echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\n      rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\n      code_sign_if_enabled \"${destination}/${lib}\"\n    done\n  fi\n}\n\n# Signs a framework with the provided identity\ncode_sign_if_enabled() {\n  if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n    # Use the current code_sign_identitiy\n    echo \"Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\n    local code_sign_cmd=\"/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'\"\n\n    if [ \"${COCOAPODS_PARALLEL_CODE_SIGN}\" == \"true\" ]; then\n      code_sign_cmd=\"$code_sign_cmd &\"\n    fi\n    echo \"$code_sign_cmd\"\n    eval \"$code_sign_cmd\"\n  fi\n}\n\n# Strip invalid architectures\nstrip_invalid_archs() {\n  binary=\"$1\"\n  # Get architectures for current file\n  archs=\"$(lipo -info \"$binary\" | rev | cut -d ':' -f1 | rev)\"\n  stripped=\"\"\n  for arch in $archs; do\n    if ! [[ \"${VALID_ARCHS}\" == *\"$arch\"* ]]; then\n      # Strip non-valid architectures in-place\n      lipo -remove \"$arch\" -output \"$binary\" \"$binary\" || exit 1\n      stripped=\"$stripped $arch\"\n    fi\n  done\n  if [[ \"$stripped\" ]]; then\n    echo \"Stripped $binary of architectures:$stripped\"\n  fi\n}\n\nif [ \"${COCOAPODS_PARALLEL_CODE_SIGN}\" == \"true\" ]; then\n  wait\nfi\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage-resources.sh",
    "content": "#!/bin/sh\nset -e\n\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n\nRESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt\n> \"$RESOURCES_TO_COPY\"\n\nXCASSET_FILES=()\n\ncase \"${TARGETED_DEVICE_FAMILY}\" in\n  1,2)\n    TARGET_DEVICE_ARGS=\"--target-device ipad --target-device iphone\"\n    ;;\n  1)\n    TARGET_DEVICE_ARGS=\"--target-device iphone\"\n    ;;\n  2)\n    TARGET_DEVICE_ARGS=\"--target-device ipad\"\n    ;;\n  3)\n    TARGET_DEVICE_ARGS=\"--target-device tv\"\n    ;;\n  4)\n    TARGET_DEVICE_ARGS=\"--target-device watch\"\n    ;;\n  *)\n    TARGET_DEVICE_ARGS=\"--target-device mac\"\n    ;;\nesac\n\ninstall_resource()\n{\n  if [[ \"$1\" = /* ]] ; then\n    RESOURCE_PATH=\"$1\"\n  else\n    RESOURCE_PATH=\"${PODS_ROOT}/$1\"\n  fi\n  if [[ ! -e \"$RESOURCE_PATH\" ]] ; then\n    cat << EOM\nerror: Resource \"$RESOURCE_PATH\" not found. Run 'pod install' to update the copy resources script.\nEOM\n    exit 1\n  fi\n  case $RESOURCE_PATH in\n    *.storyboard)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\" ${TARGET_DEVICE_ARGS}\n      ;;\n    *.xib)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\" ${TARGET_DEVICE_ARGS}\n      ;;\n    *.framework)\n      echo \"mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      mkdir -p \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      echo \"rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      rsync -av \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      ;;\n    *.xcdatamodel)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\"`.mom\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodel`.mom\"\n      ;;\n    *.xcdatamodeld)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\"\n      ;;\n    *.xcmappingmodel)\n      echo \"xcrun mapc \\\"$RESOURCE_PATH\\\" \\\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\\\"\"\n      xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\"\n      ;;\n    *.xcassets)\n      ABSOLUTE_XCASSET_FILE=\"$RESOURCE_PATH\"\n      XCASSET_FILES+=(\"$ABSOLUTE_XCASSET_FILE\")\n      ;;\n    *)\n      echo \"$RESOURCE_PATH\"\n      echo \"$RESOURCE_PATH\" >> \"$RESOURCES_TO_COPY\"\n      ;;\n  esac\n}\n\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nrsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nif [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then\n  mkdir -p \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\nrm -f \"$RESOURCES_TO_COPY\"\n\nif [[ -n \"${WRAPPER_EXTENSION}\" ]] && [ \"`xcrun --find actool`\" ] && [ -n \"$XCASSET_FILES\" ]\nthen\n  # Find all other xcassets (this unfortunately includes those of path pods and other targets).\n  OTHER_XCASSETS=$(find \"$PWD\" -iname \"*.xcassets\" -type d)\n  while read line; do\n    if [[ $line != \"${PODS_ROOT}*\" ]]; then\n      XCASSET_FILES+=(\"$line\")\n    fi\n  done <<<\"$OTHER_XCASSETS\"\n\n  printf \"%s\\0\" \"${XCASSET_FILES[@]}\" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform \"${PLATFORM_NAME}\" --minimum-deployment-target \"${!DEPLOYMENT_TARGET_SETTING_NAME}\" ${TARGET_DEVICE_ARGS} --compress-pngs --compile \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage.debug.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/Masonry\"\nLIBRARY_SEARCH_PATHS = $(inherited) \"$PODS_CONFIGURATION_BUILD_DIR/Masonry\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/Masonry\"\nOTHER_LDFLAGS = $(inherited) -ObjC -l\"Masonry\" -framework \"Foundation\" -framework \"UIKit\"\nPODS_BUILD_DIR = $BUILD_DIR\nPODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_PODFILE_DIR_PATH = ${SRCROOT}/.\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-DynamicClipImage/Pods-DynamicClipImage.release.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/Masonry\"\nLIBRARY_SEARCH_PATHS = $(inherited) \"$PODS_CONFIGURATION_BUILD_DIR/Masonry\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/Masonry\"\nOTHER_LDFLAGS = $(inherited) -ObjC -l\"Masonry\" -framework \"Foundation\" -framework \"UIKit\"\nPODS_BUILD_DIR = $BUILD_DIR\nPODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_PODFILE_DIR_PATH = ${SRCROOT}/.\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "README.md",
    "content": "# iOS实现动态区域裁剪图片\n\n裁剪图片功能在很多上传图片的场景里都需要用到，一方面应用服务器可能对图片的尺寸大小有限制，因而希望上传的图片都是符合规定的，另一方面，用户可能希望只上传图片中的部分内容，突出图片中关键的信息。而为了满足用户多种多样的裁剪需求，就需要裁剪图片时能支持由用户动态地改变裁剪范围、裁剪尺寸等。\n\n首先看一下效果图\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/demo.gif?raw=true\" width=270 height=480>\n\n[源代码仓库](https://github.com/Yasic/DynamicClipImage)\n\n动态裁剪图片的基本过程大致可以分为以下几步\n\n* 显示图片与裁剪区域\n* 支持移动和缩放图片\n* 支持手势改变裁剪区域\n* 进行图片裁剪并获得裁剪后的图片\n\n## 显示图片与裁剪区域\n\n### 显示图片\n\n在裁剪图片之前，首先我们要在页面上显示待裁剪的图片，如下图所示\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/image-20171129.png?raw=false\" height=500>\n\n这一步比较简单，配置一个 UIImageView 来放置图片即可。但是要注意一点，UIImageView 有多种 contentMode，最常见有三种\n\n* UIViewContentModeScaleToFill\n* UIViewContentModeScaleAspectFit\n* UIViewContentModeScaleAspectFill\n\n三者区别可以看下面的比较\n\n* UIViewContentModeScaleToFill\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/ScaleToFill.png?raw=false\" height=500>\n\n* UIViewContentModeScaleAspectFit\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/image-20171129.png?raw=false\" height=500>\n\n* UIViewContentModeScaleAspectFill\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/ScaleAspectFill.png?raw=false\" height=500>\n\n可以看出，ScaleToFill 会改变图片的长宽比例来铺满整个 UIImageView，ScaleAspectFill 则会保持图片比例来铺满，从而会有部分图片内容超出 UIImageView 区域的情况，而 ScaleAspectFit 则会保证图片比例不变，同时图片内容都显示在 UIImageView 中，即使无法铺满 UIImageView。\n\n因此不同显示模式会影响到我们最终显示到屏幕上的图片的样子，而在裁剪过程中最理想的放置图片的模式则是，图片的短边刚好铺满裁剪区域的短边，而长边至少不会小于裁剪区域的长边，这就要求我们要考虑裁剪区域的长宽来放置我们的图片。\n\n### 裁剪区域\n\n接下来我们要放置我们的裁剪区域，它的样子如下所示\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/ClipAreaShow.png?raw=true\" height=500>\n\n裁剪区域本身就是在 UIImageView 上放上一层 UIView，再在 UIView 上绘制出一个白边框的方格 Layer。\n\n首先自定义一个 CAShapeLayer\n\n```objectivec\n#import <QuartzCore/QuartzCore.h>\n\n@interface YasicClipAreaLayer : CAShapeLayer\n\n@property(assign, nonatomic) NSInteger cropAreaLeft;\n@property(assign, nonatomic) NSInteger cropAreaTop;\n@property(assign, nonatomic) NSInteger cropAreaRight;\n@property(assign, nonatomic) NSInteger cropAreaBottom;\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft CropAreaTop:(NSInteger)cropAreaTop CropAreaRight:(NSInteger)cropAreaRight CropAreaBottom:(NSInteger)cropAreaBottom;\n\n\n@end\n\n@implementation YasicClipAreaLayer\n\n- (instancetype)init\n{\n    self = [super init];\n    if (self) {\n        _cropAreaLeft = 50;\n        _cropAreaTop = 50;\n        _cropAreaRight = SCREEN_WIDTH - self.cropAreaLeft;\n        _cropAreaBottom = 400;\n    }\n    return self;\n}\n\n- (void)drawInContext:(CGContextRef)ctx\n{\n    UIGraphicsPushContext(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaLeft, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(2, 0), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaTop);\n    CGContextSetShadow(ctx, CGSizeMake(0, 2), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaRight, self.cropAreaTop);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(-2, 0), 2.0);\n    CGContextStrokePath(ctx);\n    \n    CGContextSetStrokeColorWithColor(ctx, [UIColor whiteColor].CGColor);\n    CGContextSetLineWidth(ctx, lineWidth);\n    CGContextMoveToPoint(ctx, self.cropAreaLeft, self.cropAreaBottom);\n    CGContextAddLineToPoint(ctx, self.cropAreaRight, self.cropAreaBottom);\n    CGContextSetShadow(ctx, CGSizeMake(0, -2), 2.0);\n    CGContextStrokePath(ctx);\n    \n    UIGraphicsPopContext();\n}\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft\n{\n    _cropAreaLeft = cropAreaLeft;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaTop:(NSInteger)cropAreaTop\n{\n    _cropAreaTop = cropAreaTop;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaRight:(NSInteger)cropAreaRight\n{\n    _cropAreaRight = cropAreaRight;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaBottom:(NSInteger)cropAreaBottom\n{\n    _cropAreaBottom = cropAreaBottom;\n    [self setNeedsDisplay];\n}\n\n- (void)setCropAreaLeft:(NSInteger)cropAreaLeft CropAreaTop:(NSInteger)cropAreaTop CropAreaRight:(NSInteger)cropAreaRight CropAreaBottom:(NSInteger)cropAreaBottom\n{\n    _cropAreaLeft = cropAreaLeft;\n    _cropAreaRight = cropAreaRight;\n    _cropAreaTop = cropAreaTop;\n    _cropAreaBottom = cropAreaBottom;\n    \n    [self setNeedsDisplay];\n}\n\n@end\n```\n\n这里 layer 有几个属性 cropAreaLeft、cropAreaRight、cropAreaTop、cropAreaBottom，从命名上可以看出这几个属性定义了这个 layer 上绘制的白边框裁剪区域的坐标信息。还暴露了一个方法用于配置这四个属性。\n\n然后在 CAShapeLayer 内部，重点在于复写 drawInContext 方法，这个方法负责直接在图层上绘图，复写的方法主要做的事情是根据上面四个属性 cropAreaLeft、cropAreaRight、cropAreaTop、cropAreaBottom 绘制出封闭的四条线，这样就能表示裁剪区域的边界了。\n\n要注意的是 drawInContext 方法不能手动显示调用，必须通过调用 setNeedsDisplay 或者 setNeedsDisplayInRect 让系统自动调该方法。\n\n在裁剪页面里，我们放置了一个 cropView，然后将自定义的 CAShaplayer 加入到这个 view 上\n\n```objectivec\n    self.cropView.layer.sublayers = nil;\n    YasicClipAreaLayer * layer = [[YasicClipAreaLayer alloc] init];\n    \n    CGRect cropframe = CGRectMake(self.cropAreaX, self.cropAreaY, self.cropAreaWidth, self.cropAreaHeight);\n    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:self.cropView.frame cornerRadius:0];\n    UIBezierPath * cropPath = [UIBezierPath bezierPathWithRect:cropframe];\n    [path appendPath:cropPath];\n    layer.path = path.CGPath;\n    \n    layer.fillRule = kCAFillRuleEvenOdd;\n    layer.fillColor = [[UIColor blackColor] CGColor];\n    layer.opacity = 0.5;\n    \n    layer.frame = self.cropView.bounds;\n    [layer setCropAreaLeft:self.cropAreaX CropAreaTop:self.cropAreaY CropAreaRight:self.cropAreaX + self.cropAreaWidth CropAreaBottom:self.cropAreaY + self.cropAreaHeight];\n    [self.cropView.layer addSublayer:layer];\n    [self.view bringSubviewToFront:self.cropView];\n```\n\n这里主要是为了用自定义的 CAShapelayer 产生出空心遮罩的效果，从而出现中心的裁剪区域高亮而四周非裁剪区域有蒙层的效果，示意图如下\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/cliplayer.png?raw=true\" width=500>\n\n所以首先确定了 cashapelayer 的大小为 cropview 的大小，生成一个对应的 UIBezierPath，然后根据裁剪区域的大小（由 self.cropAreaX, self.cropAreaY, self.cropAreaWidth, self.cropAreaHeight 确定）生成空心遮罩的内圈 UIBezierPath，\n\n```objectivec\nCGRect cropframe = CGRectMake(self.cropAreaX, self.cropAreaY, self.cropAreaWidth, self.cropAreaHeight);\n    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:self.cropView.frame cornerRadius:0];\n    UIBezierPath * cropPath = [UIBezierPath bezierPathWithRect:cropframe];\n    [path appendPath:cropPath];\n    layer.path = path.CGPath;\n```\n\n然后将这个 path 配置给 CAShapeLayer，并将 CAShapeLayer 的 fillRule 配置为 kCAFillRuleEvenOdd\n\n```objectivec\n    layer.fillRule = kCAFillRuleEvenOdd;\n    layer.fillColor = [[UIColor blackColor] CGColor];\n    layer.opacity = 0.5;\n    layer.frame = self.cropView.bounds;\n```\n\n其中 fillRule 属性表示使用哪一种算法去判断画布上的某区域是否属于该图形“内部”，内部区域将被填充颜色，主要有两种方式\n\n* kCAFillRuleNonZero，这种算法判断规则是，如果从某一点射出任意方向射线，与对应 Layer 交点为 0 则不在 Layer 内，大于 0 则在 画布内\n\n<img src=\"http://upload-images.jianshu.io/upload_images/833634-f1b5b4a0052db40e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240\" width=500>\n\n* kCAFillRuleEvenOdd 如果从某一点射出任意射线，与对应 Layer 交点为偶数则在画布内，否则不在画布内\n\n<img src=\"http://upload-images.jianshu.io/upload_images/833634-f522192d09f24ff0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240\" width=500>\n\n再给 CAShapeLayer 设置蒙层颜色为透明度 0.5 的黑色，就可以实现空心蒙层效果了。\n\n最后就是设置 layer 的四个属性并绘制内边框的白色边线。\n\n```objectivec\n    [layer setCropAreaLeft:self.cropAreaX CropAreaTop:self.cropAreaY CropAreaRight:self.cropAreaX + self.cropAreaWidth CropAreaBottom:self.cropAreaY + self.cropAreaHeight];\n    [self.cropView.layer addSublayer:layer];\n    [self.view bringSubviewToFront:self.cropView];\n```\n\n### 合理放置图片\n\n到这一步我们正确显示了图片，也正确显示出了裁剪区域，但是我们没有将二者的约束关系建立起来，因此可能会出现下面这样的情况\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/wrongimageshow.png?raw=true\" height=500>\n\n可以看到这里由于这张图片的 width 远大于 height，因此会在裁剪区域内出现黑色区域，这对用户来说是一种不好的体验，同时也会影响到我们后面的裁剪步骤，究其原因是因为我们没有针对裁剪区域的宽高来放置 UIImageView，我们希望最理想的效果是，能在裁剪区域内实现类似 UIViewContentModeScaleAspectFill 的效果，也就是图片保持比例地铺满裁剪区域，并允许部分内容超出裁剪区域，这就要求\n\n* 当图片宽与裁剪区域宽之比大于图片高与裁剪区域高之比时，将图片高铺满裁剪区域高，图片宽成比例放大\n* 当图片高与裁剪区域高之比大于图片宽与裁剪区域宽之比时，将图片宽铺满裁剪区域宽，图片高成比例方法\n\n这里我们用到 Masonry 来做这些布局操作\n\n```objectivec\n    CGFloat tempWidth = 0.0;\n    CGFloat tempHeight = 0.0;\n    \n    if (self.targetImage.size.width/self.cropAreaWidth <= self.targetImage.size.height/self.cropAreaHeight) {\n        tempWidth = self.cropAreaWidth;\n        tempHeight = (tempWidth/self.targetImage.size.width) * self.targetImage.size.height;\n    } else if (self.targetImage.size.width/self.cropAreaWidth > self.targetImage.size.height/self.cropAreaHeight) {\n        tempHeight = self.cropAreaHeight;\n        tempWidth = (tempHeight/self.targetImage.size.height) * self.targetImage.size.width;\n    }\n    \n    [self.bigImageView mas_updateConstraints:^(MASConstraintMaker *make) {\n        make.left.mas_equalTo(self.cropAreaX - (tempWidth - self.cropAreaWidth)/2);\n        make.top.mas_equalTo(self.cropAreaY - (tempHeight - self.cropAreaHeight)/2);\n        make.width.mas_equalTo(tempWidth);\n        make.height.mas_equalTo(tempHeight);\n    }];\n```\n\n可以看到，我们进行了两步判断，从而获得合适的宽高值，然后将图片进行布局，在自动布局时将图片中心与裁剪区域中心重合，最后我们会得到下面的效果图\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/normalimageshow.png?raw=true\" height=500>\n\n## 支持移动和缩放图片\n\n正如上面所讲，由于图片在裁剪区域内是以类似 UIViewContentModeScaleAspectFill 的方式放置的，很可能出现部分内容溢出裁剪区域，因此我们要让图片能支持动态移动和缩放，从而使用户能灵活地裁剪图片的内容。\n\n具体实现上，我们其实是在 cropview 上加上手势，间接操作图片的尺寸和位置，这样有助于后面我们实现动态改变裁剪区域的实现。\n\n### 缩放功能\n\n这里实现缩放的原理实际是对放置图片的 UIImageView 的 frame 进行修改，首先我们要记录下最初的 UIImageView 的 frame\n\n```objectivec\nself.originalFrame = CGRectMake(self.cropAreaX - (tempWidth - self.cropAreaWidth)/2, self.cropAreaY - (tempHeight - self.cropAreaHeight)/2, tempWidth, tempHeight);\n```\n\n然后为 cropView 添加手势\n\n```objectivec\n    // 捏合手势\n    UIPinchGestureRecognizer *pinGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handleCenterPinGesture:)];\n    [self.view addGestureRecognizer:pinGesture];\n```\n\n然后是手势处理函数\n\n```objectivec\n-(void)handleCenterPinGesture:(UIPinchGestureRecognizer *)pinGesture\n{\n    CGFloat scaleRation = 3;\n    UIView * view = self.bigImageView;\n    \n    // 缩放开始与缩放中\n    if (pinGesture.state == UIGestureRecognizerStateBegan || pinGesture.state == UIGestureRecognizerStateChanged) {\n        // 移动缩放中心到手指中心\n        CGPoint pinchCenter = [pinGesture locationInView:view.superview];\n        CGFloat distanceX = view.frame.origin.x - pinchCenter.x;\n        CGFloat distanceY = view.frame.origin.y - pinchCenter.y;\n        CGFloat scaledDistanceX = distanceX * pinGesture.scale;\n        CGFloat scaledDistanceY = distanceY * pinGesture.scale;\n        CGRect newFrame = CGRectMake(view.frame.origin.x + scaledDistanceX - distanceX, view.frame.origin.y + scaledDistanceY - distanceY, view.frame.size.width * pinGesture.scale, view.frame.size.height * pinGesture.scale);\n        view.frame = newFrame;\n        pinGesture.scale = 1;\n    }\n    \n    // 缩放结束\n    if (pinGesture.state == UIGestureRecognizerStateEnded) {\n        CGFloat ration =  view.frame.size.width / self.originalFrame.size.width;\n        \n        // 缩放过大\n        if (ration > 5) {\n            CGRect newFrame = CGRectMake(0, 0, self.originalFrame.size.width * scaleRation, self.originalFrame.size.height * scaleRation);\n            view.frame = newFrame;\n        }\n        \n        // 缩放过小\n        if (ration < 0.25) {\n            view.frame = self.originalFrame;\n        }\n        // 对图片进行位置修正\n        CGRect resetPosition = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, view.frame.size.height);\n        \n        if (resetPosition.origin.x >= self.cropAreaX) {\n            resetPosition.origin.x = self.cropAreaX;\n        }\n        if (resetPosition.origin.y >= self.cropAreaY) {\n            resetPosition.origin.y = self.cropAreaY;\n        }\n        if (resetPosition.size.width + resetPosition.origin.x < self.cropAreaX + self.cropAreaWidth) {\n            CGFloat movedLeftX = fabs(resetPosition.size.width + resetPosition.origin.x - (self.cropAreaX + self.cropAreaWidth));\n            resetPosition.origin.x += movedLeftX;\n        }\n        if (resetPosition.size.height + resetPosition.origin.y < self.cropAreaY + self.cropAreaHeight) {\n            CGFloat moveUpY = fabs(resetPosition.size.height + resetPosition.origin.y - (self.cropAreaY + self.cropAreaHeight));\n            resetPosition.origin.y += moveUpY;\n        }\n        view.frame = resetPosition;\n        \n        // 对图片缩放进行比例修正，防止过小\n        if (self.cropAreaX < self.bigImageView.frame.origin.x\n            || ((self.cropAreaX + self.cropAreaWidth) > self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width)\n            || self.cropAreaY < self.bigImageView.frame.origin.y\n            || ((self.cropAreaY + self.cropAreaHeight) > self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height)) {\n            view.frame = self.originalFrame;\n        }\n    }\n}\n```\n\n在手势处理时，要注意，为了能跟随用户捏合手势的中心进行缩放，我们要在手势过程中移动缩放中心到手指中心，这里我们判断了 pinGesture 的 state 来确定手势开始、进行中和结束阶段。\n\n```objectivec\n    if (pinGesture.state == UIGestureRecognizerStateBegan || pinGesture.state == UIGestureRecognizerStateChanged) {\n        // 移动缩放中心到手指中心\n        CGPoint pinchCenter = [pinGesture locationInView:view.superview];\n        CGFloat distanceX = view.frame.origin.x - pinchCenter.x;\n        CGFloat distanceY = view.frame.origin.y - pinchCenter.y;\n        CGFloat scaledDistanceX = distanceX * pinGesture.scale;\n        CGFloat scaledDistanceY = distanceY * pinGesture.scale;\n        CGRect newFrame = CGRectMake(view.frame.origin.x + scaledDistanceX - distanceX, view.frame.origin.y + scaledDistanceY - distanceY, view.frame.size.width * pinGesture.scale, view.frame.size.height * pinGesture.scale);\n        view.frame = newFrame;\n        pinGesture.scale = 1;\n    }\n```\n\npinchCenter 就是捏合手势的中心，我们获取到当前图片 view 的 frame，然后计算当前 view 与手势中心的 x、y 坐标差，再根据手势缩放值 scale，创建出新的 frame\n\n```objectivec\n        CGRect newFrame = CGRectMake(view.frame.origin.x + scaledDistanceX - distanceX, view.frame.origin.y + scaledDistanceY - distanceY, view.frame.size.width * pinGesture.scale, view.frame.size.height * pinGesture.scale);\n```\n\n这个 frame 的中心坐标就在缩放手势的中心，将新的 frame 赋值给图片 view，从而实现依据手势中心进行缩放的效果。\n\n而在手势结束阶段，我们要对图片缩放进行边界保护，既不能放大过大，也不能缩小过小。\n\n```objectivec\nCGFloat ration =  view.frame.size.width / self.originalFrame.size.width;\n        \n        // 缩放过大\n        if (ration > 5) {\n            CGRect newFrame = CGRectMake(0, 0, self.originalFrame.size.width * scaleRation, self.originalFrame.size.height * scaleRation);\n            view.frame = newFrame;\n        }\n        \n        // 缩放过小\n        if (ration < 0.25) {\n            view.frame = self.originalFrame;\n        }\n```\n\n同时缩放后如果图片与裁剪区域出现了空白区域，还要对图片的位置进行修正以保证图片始终是覆盖全裁剪区域的。\n\n```objectivec\n// 对图片进行位置修正\n        CGRect resetPosition = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, view.frame.size.height);\n        \n        if (resetPosition.origin.x >= self.cropAreaX) {\n            resetPosition.origin.x = self.cropAreaX;\n        }\n        if (resetPosition.origin.y >= self.cropAreaY) {\n            resetPosition.origin.y = self.cropAreaY;\n        }\n        if (resetPosition.size.width + resetPosition.origin.x < self.cropAreaX + self.cropAreaWidth) {\n            CGFloat movedLeftX = fabs(resetPosition.size.width + resetPosition.origin.x - (self.cropAreaX + self.cropAreaWidth));\n            resetPosition.origin.x += movedLeftX;\n        }\n        if (resetPosition.size.height + resetPosition.origin.y < self.cropAreaY + self.cropAreaHeight) {\n            CGFloat moveUpY = fabs(resetPosition.size.height + resetPosition.origin.y - (self.cropAreaY + self.cropAreaHeight));\n            resetPosition.origin.y += moveUpY;\n        }\n        view.frame = resetPosition;\n```\n\n这里我们通过生成当前图片的 CGRect，与裁剪区域的边界进行如下比较\n\n* 图片左边线大于裁剪区域左边线时图片移动到裁剪区域 x 值\n* 图片上边线大于裁剪区域上边线时图片移动到裁剪区域 y 值\n* 图片右边线小于裁剪区域右边线时图片右贴裁剪区域右边线\n* 图片下边线小于裁剪区域右边线时图片下贴裁剪区域下边线\n\n进行这番操作后，可能会出现由于图片过小无法铺满裁剪区域的情况，如下图所示\n\n<img src=\"https://github.com/Yasic/DynamicClipImage/blob/master/Screenshot/uncorrectscale.png?raw=true\" height=500>\n\n因此还需要再次对图片尺寸进行修正\n\n```objectivec\n        // 对图片缩放进行比例修正，防止过小\n        if (self.cropAreaX < self.bigImageView.frame.origin.x\n            || ((self.cropAreaX + self.cropAreaWidth) > self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width)\n            || self.cropAreaY < self.bigImageView.frame.origin.y\n            || ((self.cropAreaY + self.cropAreaHeight) > self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height)) {\n            view.frame = self.originalFrame;\n        }\n```\n\n这样就实现了缩放功能。\n\n### 移动功能\n\n相比于缩放，移动功能实现就简单了，只需要在 cropview 上添加 UIPanGestureRecognizer，然后在回调方法里拿到需要移动的距离，修改 UIImageView 的 center 就可以了。\n\n```objectivec\n    CGPoint translation = [panGesture translationInView:view.superview];\n    [view setCenter:CGPointMake(view.center.x + translation.x, view.center.y + translation.y)];\n                [panGesture setTranslation:CGPointZero inView:view.superview];\n```\n\n但是同样为了保证移动后的图片不会与裁剪区域出现空白甚至是超出裁剪区域，这里更新了图片位置后，在手势结束时还要对图片进行位置修正\n\n```objectivec\n                CGRect currentFrame = view.frame;\n                \n                if (currentFrame.origin.x >= self.cropAreaX) {\n                    currentFrame.origin.x = self.cropAreaX;\n                    \n                }\n                if (currentFrame.origin.y >= self.cropAreaY) {\n                    currentFrame.origin.y = self.cropAreaY;\n                }\n                if (currentFrame.size.width + currentFrame.origin.x < self.cropAreaX + self.cropAreaWidth) {\n                    CGFloat movedLeftX = fabs(currentFrame.size.width + currentFrame.origin.x - (self.cropAreaX + self.cropAreaWidth));\n                    currentFrame.origin.x += movedLeftX;\n                }\n                if (currentFrame.size.height + currentFrame.origin.y < self.cropAreaY + self.cropAreaHeight) {\n                    CGFloat moveUpY = fabs(currentFrame.size.height + currentFrame.origin.y - (self.cropAreaY + self.cropAreaHeight));\n                    currentFrame.origin.y += moveUpY;\n                }\n                [UIView animateWithDuration:0.3 animations:^{\n                    \n                    [view setFrame:currentFrame];\n                }];\n```\n\n可以看到，这里做的位置检查与缩放时做的检查是一样的，只是由于不会改变图片尺寸所以这里不需要进行尺寸修正。\n\n## 支持手势改变裁剪区域\n\n接下来就是动态裁剪图片的核心内容了，其实原理也很简单，只要在上面的移动手势处理函数中，进行一些判断，决定是移动图片位置还是改变裁剪区域，也就是自定义的 CAShapeLayer 的绘制方框的尺寸就可以了。\n\n首先我们定义一个枚举，用来表示当前应当操作的是图片还是裁剪区域的边线\n\n```objectivec\ntypedef NS_ENUM(NSInteger, ACTIVEGESTUREVIEW) {\n    CROPVIEWLEFT,\n    CROPVIEWRIGHT,\n    CROPVIEWTOP,\n    CROPVIEWBOTTOM,\n    BIGIMAGEVIEW\n};\n```\n\n它们分别表示触发对象为裁剪区域左边线、右边线、上边线、下边线以及 UIImageView\n\n然后我们定义一个枚举属性\n\n```objectivec\n@property(assign, nonatomic) ACTIVEGESTUREVIEW activeGestureView;\n```\n\n判断操作对象的标准是当前的手势所触发的位置是在边线上还是在非边线上，因此我们需要知道手势触发时的坐标，要知道这一点就需要我们继承一个 UIPanGestureRecognizer 并覆写一些方法\n\n```objectivec\n@interface YasicPanGestureRecognizer : UIPanGestureRecognizer\n\n@property(assign, nonatomic) CGPoint beginPoint;\n@property(assign, nonatomic) CGPoint movePoint;\n\n-(instancetype)initWithTarget:(id)target action:(SEL)action inview:(UIView*)view;\n\n@end\n\n@interface YasicPanGestureRecognizer()\n\n@property(strong, nonatomic) UIView *targetView;\n\n@end\n\n@implementation YasicPanGestureRecognizer\n\n-(instancetype)initWithTarget:(id)target action:(SEL)action inview:(UIView*)view{\n    \n    self = [super initWithTarget:target action:action];\n    if(self) {\n        self.targetView = view;\n    }\n    return self;\n}\n\n- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent*)event{\n    \n    [super touchesBegan:touches withEvent:event];\n    UITouch *touch = [touches anyObject];\n    self.beginPoint = [touch locationInView:self.targetView];\n}\n\n- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event\n{\n    [super touchesMoved:touches withEvent:event];\n    UITouch *touch = [touches anyObject];\n    self.movePoint = [touch locationInView:self.targetView];\n}\n\n@end\n```\n\n可以看到，我们首先传入了一个 view，用于将手势触发的位置转换为 view 中的坐标值。在 ```- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent*)event{``` 方法中我们得到了手势开始时的触发点 beginPoint，在 ```- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event``` 方法中我们获得了手势进行时的触发点 movePoint。\n\n自定义完 UIPanGestureRecognizer 后我们将其加到 cropview 上并把 cropview 作为参数传给 UIPanGestureRecognizer\n\n```objectivec\n    // 拖动手势\n    YasicPanGestureRecognizer *panGesture = [[YasicPanGestureRecognizer alloc] initWithTarget:self action:@selector(handleDynamicPanGesture:) inview:self.cropView];\n    [self.cropView addGestureRecognizer:panGesture];\n```\n\n接下来就是处理手势的函数，这里我们可以将整个过程分为三个步骤，开始时 -> 进行时 -> 结束时。\n\n* 手势开始时\n\n在这里我们要根据手势的 beginPoint 判断触发对象是边线还是 UIImageView\n\n```objectivec\n// 开始滑动时判断滑动对象是 ImageView 还是 Layer 上的 Line\n    if (panGesture.state == UIGestureRecognizerStateBegan) {\n        if (beginPoint.x >= self.cropAreaX - judgeWidth && beginPoint.x <= self.cropAreaX + judgeWidth && beginPoint.y >= self.cropAreaY && beginPoint.y <= self.cropAreaY + self.cropAreaHeight && self.cropAreaWidth >= 50) {\n            self.activeGestureView = CROPVIEWLEFT;\n        } else if (beginPoint.x >= self.cropAreaX + self.cropAreaWidth - judgeWidth && beginPoint.x <= self.cropAreaX + self.cropAreaWidth + judgeWidth && beginPoint.y >= self.cropAreaY && beginPoint.y <= self.cropAreaY + self.cropAreaHeight &&  self.cropAreaWidth >= 50) {\n            self.activeGestureView = CROPVIEWRIGHT;\n        } else if (beginPoint.y >= self.cropAreaY - judgeWidth && beginPoint.y <= self.cropAreaY + judgeWidth && beginPoint.x >= self.cropAreaX && beginPoint.x <= self.cropAreaX + self.cropAreaWidth && self.cropAreaHeight >= 50) {\n            self.activeGestureView = CROPVIEWTOP;\n        } else if (beginPoint.y >= self.cropAreaY + self.cropAreaHeight - judgeWidth && beginPoint.y <= self.cropAreaY + self.cropAreaHeight + judgeWidth && beginPoint.x >= self.cropAreaX && beginPoint.x <= self.cropAreaX + self.cropAreaWidth && self.cropAreaHeight >= 50) {\n            self.activeGestureView = CROPVIEWBOTTOM;\n        } else {\n            self.activeGestureView = BIGIMAGEVIEW;\n            [view setCenter:CGPointMake(view.center.x + translation.x, view.center.y + translation.y)];\n            [panGesture setTranslation:CGPointZero inView:view.superview];\n        }\n    }\n```\n\n* 手势进行时\n\n在这里，如果触发对象是边线，则计算边线需要移动的距离和方向，以及对于边界条件的限制以防止边线之间交叉错位的情况，具体来说就是获得坐标差值，更新 cropAreaX、cropAreaWidth 等值，然后更新 CAShapeLayer 上的空心蒙层。\n\n如果触发对象是 UIImageView 则只需要将其位置进行改变即可。\n\n```objectivec\n// 滑动过程中进行位置改变\n    if (panGesture.state == UIGestureRecognizerStateChanged) {\n        CGFloat diff = 0;\n        switch (self.activeGestureView) {\n            case CROPVIEWLEFT: {\n                diff = movePoint.x - self.cropAreaX;\n                if (diff >= 0 && self.cropAreaWidth > 50) {\n                    self.cropAreaWidth -= diff;\n                    self.cropAreaX += diff;\n                } else if (diff < 0 && self.cropAreaX > self.bigImageView.frame.origin.x && self.cropAreaX >= 15) {\n                    self.cropAreaWidth -= diff;\n                    self.cropAreaX += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWRIGHT: {\n                diff = movePoint.x - self.cropAreaX - self.cropAreaWidth;\n                if (diff >= 0 && (self.cropAreaX + self.cropAreaWidth) < MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15)){\n                    self.cropAreaWidth += diff;\n                } else if (diff < 0 && self.cropAreaWidth >= 50) {\n                    self.cropAreaWidth += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWTOP: {\n                diff = movePoint.y - self.cropAreaY;\n                if (diff >= 0 && self.cropAreaHeight > 50) {\n                    self.cropAreaHeight -= diff;\n                    self.cropAreaY += diff;\n                } else if (diff < 0 && self.cropAreaY > self.bigImageView.frame.origin.y && self.cropAreaY >= 15) {\n                    self.cropAreaHeight -= diff;\n                    self.cropAreaY += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWBOTTOM: {\n                diff = movePoint.y - self.cropAreaY - self.cropAreaHeight;\n                if (diff >= 0 && (self.cropAreaY + self.cropAreaHeight) < MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15)){\n                    self.cropAreaHeight += diff;\n                } else if (diff < 0 && self.cropAreaHeight >= 50) {\n                    self.cropAreaHeight += diff;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case BIGIMAGEVIEW: {\n                [view setCenter:CGPointMake(view.center.x + translation.x, view.center.y + translation.y)];\n                [panGesture setTranslation:CGPointZero inView:view.superview];\n                break;\n            }\n            default:\n                break;\n        }\n    }\n```\n\n* 手势结束时\n\n手势结束时，我们需要对位置进行修正。如果是裁剪区域边线，则要判断左右、上下边线之间的距离是否过短，边线是否超出 UIImageView 的范围等。如果左右边线距离过短则设置最小裁剪宽度，如果上线边线距离过短则设置最小裁剪高度，如果左边线超出了 UIImageView 左边线则需要紧贴 UIImageView 的左边线，并更新裁剪区域宽度，以此类推。然后更新 CAShapeLayer 上的空心蒙层即可。\n\n如果是 UIImageView 则跟上一节一样要保证图片不会与裁剪区域出现空白。\n\n```objectivec\n    // 滑动结束后进行位置修正\n    if (panGesture.state == UIGestureRecognizerStateEnded) {\n        switch (self.activeGestureView) {\n            case CROPVIEWLEFT: {\n                if (self.cropAreaWidth < 50) {\n                    self.cropAreaX -= 50 - self.cropAreaWidth;\n                    self.cropAreaWidth = 50;\n                }\n                if (self.cropAreaX < MAX(self.bigImageView.frame.origin.x, 15)) {\n                    CGFloat temp = self.cropAreaX + self.cropAreaWidth;\n                    self.cropAreaX = MAX(self.bigImageView.frame.origin.x, 15);\n                    self.cropAreaWidth = temp - self.cropAreaX;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWRIGHT: {\n                if (self.cropAreaWidth < 50) {\n                    self.cropAreaWidth = 50;\n                }\n                if (self.cropAreaX + self.cropAreaWidth > MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15)) {\n                    self.cropAreaWidth = MIN(self.bigImageView.frame.origin.x + self.bigImageView.frame.size.width, self.cropView.frame.origin.x + self.cropView.frame.size.width - 15) - self.cropAreaX;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWTOP: {\n                if (self.cropAreaHeight < 50) {\n                    self.cropAreaY -= 50 - self.cropAreaHeight;\n                    self.cropAreaHeight = 50;\n                }\n                if (self.cropAreaY < MAX(self.bigImageView.frame.origin.y, 15)) {\n                    CGFloat temp = self.cropAreaY + self.cropAreaHeight;\n                    self.cropAreaY = MAX(self.bigImageView.frame.origin.y, 15);\n                    self.cropAreaHeight = temp - self.cropAreaY;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case CROPVIEWBOTTOM: {\n                if (self.cropAreaHeight < 50) {\n                    self.cropAreaHeight = 50;\n                }\n                if (self.cropAreaY + self.cropAreaHeight > MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15)) {\n                    self.cropAreaHeight = MIN(self.bigImageView.frame.origin.y + self.bigImageView.frame.size.height, self.cropView.frame.origin.y + self.cropView.frame.size.height - 15) - self.cropAreaY;\n                }\n                [self setUpCropLayer];\n                break;\n            }\n            case BIGIMAGEVIEW: {\n                CGRect currentFrame = view.frame;\n                \n                if (currentFrame.origin.x >= self.cropAreaX) {\n                    currentFrame.origin.x = self.cropAreaX;\n                    \n                }\n                if (currentFrame.origin.y >= self.cropAreaY) {\n                    currentFrame.origin.y = self.cropAreaY;\n                }\n                if (currentFrame.size.width + currentFrame.origin.x < self.cropAreaX + self.cropAreaWidth) {\n                    CGFloat movedLeftX = fabs(currentFrame.size.width + currentFrame.origin.x - (self.cropAreaX + self.cropAreaWidth));\n                    currentFrame.origin.x += movedLeftX;\n                }\n                if (currentFrame.size.height + currentFrame.origin.y < self.cropAreaY + self.cropAreaHeight) {\n                    CGFloat moveUpY = fabs(currentFrame.size.height + currentFrame.origin.y - (self.cropAreaY + self.cropAreaHeight));\n                    currentFrame.origin.y += moveUpY;\n                }\n                [UIView animateWithDuration:0.3 animations:^{\n                    \n                    [view setFrame:currentFrame];\n                }];\n                break;\n            }\n            default:\n                break;\n        }\n    }\n```\n\n## 进行图片裁剪并获得裁剪后的图片\n\n最后一步就是对图片进行裁剪了。首先确定对图片的缩放尺寸 imageScale\n\n```objectivec\n    CGFloat imageScale = MIN(self.bigImageView.frame.size.width/self.targetImage.size.width, self.bigImageView.frame.size.height/self.targetImage.size.height);\n```\n\n然后将 cropView 的裁剪区域对应到 UIImageView 上，再除以缩放值，即可得到对应 UIImage 上需要裁剪的区域\n\n```objectivec\n    CGFloat cropX = (self.cropAreaX - self.bigImageView.frame.origin.x)/imageScale;\n    CGFloat cropY = (self.cropAreaY - self.bigImageView.frame.origin.y)/imageScale;\n    CGFloat cropWidth = self.cropAreaWidth/imageScale;\n    CGFloat cropHeight = self.cropAreaHeight/imageScale;\n    CGRect cropRect = CGRectMake(cropX, cropY, cropWidth, cropHeight);\n```\n\n最后调用 CoreGraphic 的方法，将图片对应区域的数据取出来生成新的图片，就是我们需要的裁剪后的图片了。\n\n```objectivec\n    CGImageRef sourceImageRef = [self.targetImage CGImage];\n    CGImageRef newImageRef = CGImageCreateWithImageInRect(sourceImageRef, cropRect);\n    UIImage *newImage = [UIImage imageWithCGImage:newImageRef];\n```\n\n[GitHub 代码地址](https://github.com/Yasic/DynamicClipImage)\n"
  }
]