From f850b211df8ad3b9e0ad5beb5ca0781d5d2e062f Mon Sep 17 00:00:00 2001 From: Henna Date: Sun, 21 Feb 2016 13:03:56 -0500 Subject: [PATCH 1/4] required stuff done --- HeadsUpper/.DS_Store | Bin 0 -> 6148 bytes .../HeadsUpper.xcodeproj/project.pbxproj | 91 ++ .../contents.xcworkspacedata | 10 + .../Base.lproj/LaunchScreen.storyboard | 6 +- .../HeadsUpper/Base.lproj/Main.storyboard | 122 +- HeadsUpper/HeadsUpper/ViewController.h | 1 + HeadsUpper/HeadsUpper/ViewController.m | 152 ++- .../HeadsUpper/topicsTableViewController.h | 13 + .../HeadsUpper/topicsTableViewController.m | 129 ++ HeadsUpper/Podfile | 3 + HeadsUpper/Podfile.lock | 15 + HeadsUpper/Pods/ChameleonFramework/LICENSE.md | 21 + .../Pod/Classes/Objective-C/Chameleon.h | 31 + .../Classes/Objective-C/ChameleonConstants.h | 21 + .../Classes/Objective-C/ChameleonConstants.m | 15 + .../Pod/Classes/Objective-C/ChameleonEnums.h | 39 + .../Pod/Classes/Objective-C/ChameleonMacros.h | 125 ++ .../Pod/Classes/Objective-C/Chameleon_.h | 66 + .../Pod/Classes/Objective-C/Chameleon_.m | 793 +++++++++++ .../Classes/Objective-C/NSArray+Chameleon.h | 112 ++ .../Classes/Objective-C/NSArray+Chameleon.m | 736 ++++++++++ .../Classes/Objective-C/UIAppearance+Swift.h | 17 + .../Classes/Objective-C/UIAppearance+Swift.m | 32 + .../Classes/Objective-C/UIButton+Chameleon.h | 15 + .../Classes/Objective-C/UIButton+Chameleon.m | 23 + .../Classes/Objective-C/UIColor+Chameleon.h | 685 ++++++++++ .../Classes/Objective-C/UIColor+Chameleon.m | 1027 ++++++++++++++ .../Objective-C/UIColor+ChameleonPrivate.h | 36 + .../Objective-C/UIColor+ChameleonPrivate.m | 251 ++++ .../Objective-C/UIImage+ChameleonPrivate.h | 21 + .../Objective-C/UIImage+ChameleonPrivate.m | 74 + .../Classes/Objective-C/UILabel+Chameleon.h | 15 + .../Classes/Objective-C/UILabel+Chameleon.m | 18 + .../UINavigationController+Chameleon.h | 32 + .../UINavigationController+Chameleon.m | 214 +++ .../Objective-C/UIView+ChameleonPrivate.h | 16 + .../Objective-C/UIView+ChameleonPrivate.m | 46 + .../Objective-C/UIViewController+Chameleon.h | 64 + .../Objective-C/UIViewController+Chameleon.m | 900 +++++++++++++ HeadsUpper/Pods/ChameleonFramework/README.md | 768 +++++++++++ .../Private/ChameleonFramework/Chameleon.h | 1 + .../ChameleonFramework/ChameleonConstants.h | 1 + .../ChameleonFramework/ChameleonEnums.h | 1 + .../ChameleonFramework/ChameleonMacros.h | 1 + .../Private/ChameleonFramework/Chameleon_.h | 1 + .../ChameleonFramework/NSArray+Chameleon.h | 1 + .../ChameleonFramework/UIAppearance+Swift.h | 1 + .../ChameleonFramework/UIButton+Chameleon.h | 1 + .../ChameleonFramework/UIColor+Chameleon.h | 1 + .../UIColor+ChameleonPrivate.h | 1 + .../UIImage+ChameleonPrivate.h | 1 + .../ChameleonFramework/UILabel+Chameleon.h | 1 + .../UINavigationController+Chameleon.h | 1 + .../UIView+ChameleonPrivate.h | 1 + .../UIViewController+Chameleon.h | 1 + .../Headers/Private/SIAlertView/SIAlertView.h | 1 + HeadsUpper/Pods/Manifest.lock | 15 + .../Pods/Pods.xcodeproj/project.pbxproj | 810 +++++++++++ HeadsUpper/Pods/SIAlertView/LICENSE.md | 7 + HeadsUpper/Pods/SIAlertView/README.md | 87 ++ .../SIAlertView.bundle/button-cancel-d.png | Bin 0 -> 1041 bytes .../SIAlertView.bundle/button-cancel-d@2x.png | Bin 0 -> 1245 bytes .../SIAlertView.bundle/button-cancel.png | Bin 0 -> 1030 bytes .../SIAlertView.bundle/button-cancel@2x.png | Bin 0 -> 1179 bytes .../SIAlertView.bundle/button-default-d.png | Bin 0 -> 1045 bytes .../button-default-d@2x.png | Bin 0 -> 1247 bytes .../SIAlertView.bundle/button-default.png | Bin 0 -> 1035 bytes .../SIAlertView.bundle/button-default@2x.png | Bin 0 -> 1178 bytes .../button-destructive-d.png | Bin 0 -> 1057 bytes .../button-destructive-d@2x.png | Bin 0 -> 1237 bytes .../SIAlertView.bundle/button-destructive.png | Bin 0 -> 1033 bytes .../button-destructive@2x.png | Bin 0 -> 1187 bytes .../SIAlertView/SIAlertView/SIAlertView.h | 81 ++ .../SIAlertView/SIAlertView/SIAlertView.m | 1185 +++++++++++++++++ .../ChameleonFramework-dummy.m | 5 + .../ChameleonFramework-prefix.pch | 4 + .../ChameleonFramework-umbrella.h | 36 + .../ChameleonFramework.modulemap | 6 + .../ChameleonFramework.xcconfig | 5 + .../ChameleonFramework/Info.plist | 26 + .../Pods/Target Support Files/Pods/Info.plist | 26 + .../Pods/Pods-acknowledgements.markdown | 38 + .../Pods/Pods-acknowledgements.plist | 72 + .../Target Support Files/Pods/Pods-dummy.m | 5 + .../Pods/Pods-frameworks.sh | 93 ++ .../Pods/Pods-resources.sh | 95 ++ .../Target Support Files/Pods/Pods-umbrella.h | 6 + .../Pods/Pods.debug.xcconfig | 6 + .../Target Support Files/Pods/Pods.modulemap | 6 + .../Pods/Pods.release.xcconfig | 6 + .../SIAlertView/Info.plist | 26 + .../SIAlertView/SIAlertView-dummy.m | 5 + .../SIAlertView/SIAlertView-prefix.pch | 4 + .../SIAlertView/SIAlertView-umbrella.h | 7 + .../SIAlertView/SIAlertView.modulemap | 6 + .../SIAlertView/SIAlertView.xcconfig | 5 + 96 files changed, 9437 insertions(+), 7 deletions(-) create mode 100644 HeadsUpper/.DS_Store create mode 100644 HeadsUpper/HeadsUpper.xcworkspace/contents.xcworkspacedata create mode 100644 HeadsUpper/HeadsUpper/topicsTableViewController.h create mode 100644 HeadsUpper/HeadsUpper/topicsTableViewController.m create mode 100644 HeadsUpper/Podfile create mode 100644 HeadsUpper/Podfile.lock create mode 100755 HeadsUpper/Pods/ChameleonFramework/LICENSE.md create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.m create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h create mode 100755 HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.m create mode 100644 HeadsUpper/Pods/ChameleonFramework/README.md create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonConstants.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonEnums.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonMacros.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon_.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/NSArray+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIAppearance+Swift.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIButton+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+ChameleonPrivate.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIImage+ChameleonPrivate.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UILabel+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UINavigationController+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIView+ChameleonPrivate.h create mode 120000 HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIViewController+Chameleon.h create mode 120000 HeadsUpper/Pods/Headers/Private/SIAlertView/SIAlertView.h create mode 100644 HeadsUpper/Pods/Manifest.lock create mode 100644 HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj create mode 100644 HeadsUpper/Pods/SIAlertView/LICENSE.md create mode 100644 HeadsUpper/Pods/SIAlertView/README.md create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default-d.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default-d@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive-d.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive-d@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive@2x.png create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.h create mode 100644 HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.m create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-dummy.m create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-umbrella.h create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.modulemap create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.xcconfig create mode 100644 HeadsUpper/Pods/Target Support Files/ChameleonFramework/Info.plist create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Info.plist create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods-dummy.m create mode 100755 HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh create mode 100755 HeadsUpper/Pods/Target Support Files/Pods/Pods-resources.sh create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods-umbrella.h create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods.modulemap create mode 100644 HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/Info.plist create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-dummy.m create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-prefix.pch create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-umbrella.h create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.modulemap create mode 100644 HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.xcconfig diff --git a/HeadsUpper/.DS_Store b/HeadsUpper/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..af6890c16e7544c64255908e2cbc91b6511e5acb GIT binary patch literal 6148 zcmeHK!AiqG5S^_(R7B`O#N&Q}(l0QU2;PhLN>VCnNQf3a=IYgZf5emD;E(tPf^T+) zkPsE)K}2WD?Ay%l+s(X%Y=?;4bd^qs#zZuNGY&Se*1Js3FU|`aH1u87gx*4EXlJ%5_x#+!_D$IPFFVx(eumt zAgu7^eX~5Rx%b=sxW#$%ou8Pz`$@jH$g`wNC{aL>gcj|bk6!!oTX`Sy_Wky6=Dz+0 zzn%X)ynr>PfGP0r6~LX%Hrf)j))X)WOo3Vf{yum(W29IKhEE5YPyzsl2nR!-YYFCf z#YnLd#0bm@6)04vC596^;$G)Pij| /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 77AC60D5140B18F5D302311F /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 8D8969531C755D0200D32E8A /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -152,6 +233,7 @@ 8D8969621C755D0200D32E8A /* ViewController.m in Sources */, 8D89695F1C755D0200D32E8A /* AppDelegate.m in Sources */, 8D89695C1C755D0200D32E8A /* main.m in Sources */, + F030B06A1C7A0E1A00407A9D /* topicsTableViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -259,25 +341,33 @@ }; 8D89696F1C755D0200D32E8A /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 4DF2ED69A2638C8BF0823992 /* Pods.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; INFOPLIST_FILE = HeadsUpper/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.mikekavouras.HeadsUpper; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; }; name = Debug; }; 8D8969701C755D0200D32E8A /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 0905DEB147669BEDF7DEAAA1 /* Pods.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; INFOPLIST_FILE = HeadsUpper/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.mikekavouras.HeadsUpper; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; }; name = Release; }; @@ -300,6 +390,7 @@ 8D8969701C755D0200D32E8A /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/HeadsUpper/HeadsUpper.xcworkspace/contents.xcworkspacedata b/HeadsUpper/HeadsUpper.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..9b6faaf --- /dev/null +++ b/HeadsUpper/HeadsUpper.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/HeadsUpper/HeadsUpper/Base.lproj/LaunchScreen.storyboard b/HeadsUpper/HeadsUpper/Base.lproj/LaunchScreen.storyboard index 2e721e1..980ec3c 100644 --- a/HeadsUpper/HeadsUpper/Base.lproj/LaunchScreen.storyboard +++ b/HeadsUpper/HeadsUpper/Base.lproj/LaunchScreen.storyboard @@ -1,7 +1,8 @@ - + - + + @@ -15,7 +16,6 @@ - diff --git a/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard b/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard index f56d2f3..1c7e48f 100644 --- a/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard +++ b/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard @@ -1,13 +1,75 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -15,11 +77,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HeadsUpper/HeadsUpper/ViewController.h b/HeadsUpper/HeadsUpper/ViewController.h index 65d6cf5..bdc6ff4 100644 --- a/HeadsUpper/HeadsUpper/ViewController.h +++ b/HeadsUpper/HeadsUpper/ViewController.h @@ -10,6 +10,7 @@ @interface ViewController : UIViewController +@property (nonatomic) NSArray * answers; @end diff --git a/HeadsUpper/HeadsUpper/ViewController.m b/HeadsUpper/HeadsUpper/ViewController.m index 14ce57a..10b26d6 100644 --- a/HeadsUpper/HeadsUpper/ViewController.m +++ b/HeadsUpper/HeadsUpper/ViewController.m @@ -7,8 +7,20 @@ // #import "ViewController.h" +#import +#import @interface ViewController () +@property (nonatomic) NSInteger timerCount; +@property (nonatomic) NSInteger readyTimerCount; +@property (weak, nonatomic) IBOutlet UILabel *timerLabel; +@property (weak, nonatomic) IBOutlet UILabel *guess; +@property (nonatomic) NSInteger rightCount; +@property (weak, nonatomic) IBOutlet UIView *readyView; +@property (weak, nonatomic) IBOutlet UILabel *readyLabel; + +@property (nonatomic) NSInteger whichAnswerAreWeAt; +@property (nonatomic) NSInteger totalGuesses; @end @@ -16,7 +28,145 @@ @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. + self.whichAnswerAreWeAt = 0; + self.rightCount = 0; + self.totalGuesses = 1; + self.guess.text = self.answers[self.whichAnswerAreWeAt]; + self.readyLabel.text = @"3"; + [self setupReadyTimer]; + self.readyView.backgroundColor = [UIColor colorWithGradientStyle:UIGradientStyleTopToBottom withFrame: self.view.frame andColors:@[[UIColor flatWhiteColorDark], [UIColor flatWhiteColor]]]; + +} + +# pragma mark - gesture methods +- (void) setUpGestureRecognizers { + UISwipeGestureRecognizer *leftSwipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:)]; + leftSwipe.direction= UISwipeGestureRecognizerDirectionLeft; + + UISwipeGestureRecognizer *rightSwipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:)]; + rightSwipe.direction = UISwipeGestureRecognizerDirectionRight; + + + + [self.view addGestureRecognizer:leftSwipe]; + [self.view addGestureRecognizer:rightSwipe]; + +} + +- (void) handleSwipe: (UISwipeGestureRecognizer *) gesture { + switch (gesture.direction) { + case UISwipeGestureRecognizerDirectionRight: + [self animateViewWith:[UIColor flatWatermelonColorDark]]; + self.whichAnswerAreWeAt++; + self.totalGuesses++; + self.guess.text = self.answers[self.whichAnswerAreWeAt]; + + break; + case UISwipeGestureRecognizerDirectionLeft: + [self animateViewWith:[UIColor flatMintColorDark]]; + self.rightCount++; + self.totalGuesses++; + self.whichAnswerAreWeAt++; + self.guess.text = self.answers[self.whichAnswerAreWeAt]; + break; + default: + break; + } +} + +-(void) animateViewWith:(UIColor* )color{ + [UIView animateWithDuration:0.5 + animations:^{ + self.view.backgroundColor = color; + } completion:^(BOOL finished) { + self.view.backgroundColor = [UIColor whiteColor]; + }]; +} + +# pragma mark - timer methods +-(void) setupReadyTimer +{ + self.readyTimerCount = 2; + NSTimer *timer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(handleReadyTimer:) userInfo:nil repeats:YES]; + + [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSRunLoopCommonModes]; + +} + +- (void) handleReadyTimer: (NSTimer * ) timer { + + + self.readyLabel.text = [NSString stringWithFormat: @"%ld", (long)self.readyTimerCount]; + self.readyTimerCount--; + + if (self.readyTimerCount < 0 ) { + self.readyLabel.text = @"Go!"; + [UIView animateWithDuration:1.0 + animations:^{ + self.readyView.transform = CGAffineTransformMakeScale(1.5, 1.5); + } completion:^(BOOL finished) { + self.readyView.hidden = YES; + }]; + + [self setupTimer]; + [timer invalidate]; + //hide ready screen + } + +} + +-(void) setupTimer +{ + self.timerCount = 10; + NSTimer *timer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(handleGameTimer:) userInfo:nil repeats:YES]; + + [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSRunLoopCommonModes]; + //[timer fire]; + [self setUpGestureRecognizers]; +} + +- (void) handleGameTimer: (NSTimer * ) timer { + + + self.timerLabel.text = [NSString stringWithFormat: @"%ld", (long)self.timerCount]; + self.timerCount--; + + if (self.timerCount < 0 ) { + [timer invalidate]; + + //show score + NSString * endGameText = [NSString stringWithFormat:@"you got %ld out of %ld right", (long)self.rightCount, self.totalGuesses]; + SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"Game Over" andMessage:endGameText]; + + [alertView addButtonWithTitle:@"Play Again" + type:SIAlertViewButtonTypeDefault + handler:^(SIAlertView *alert) { + + }]; + +// alertView.willShowHandler = ^(SIAlertView *alertView) { +// NSLog(@"%@, willShowHandler", alertView); +// }; +// alertView.didShowHandler = ^(SIAlertView *alertView) { +// NSLog(@"%@, didShowHandler", alertView); +// }; +// alertView.willDismissHandler = ^(SIAlertView *alertView) { +// NSLog(@"%@, willDismissHandler", alertView); +// }; + alertView.didDismissHandler = ^(SIAlertView *alertView) { + [self dismissViewControllerAnimated:YES completion:nil]; + }; + + alertView.transitionStyle = SIAlertViewTransitionStyleBounce; + + [alertView show]; + + + //end game + + // + } + } - (void)didReceiveMemoryWarning { diff --git a/HeadsUpper/HeadsUpper/topicsTableViewController.h b/HeadsUpper/HeadsUpper/topicsTableViewController.h new file mode 100644 index 0000000..f752249 --- /dev/null +++ b/HeadsUpper/HeadsUpper/topicsTableViewController.h @@ -0,0 +1,13 @@ +// +// topicsTableViewController.h +// HeadsUpper +// +// Created by Henna Ahmed on 2/21/16. +// Copyright © 2016 Michael Kavouras. All rights reserved. +// + +#import + +@interface topicsTableViewController : UITableViewController + +@end diff --git a/HeadsUpper/HeadsUpper/topicsTableViewController.m b/HeadsUpper/HeadsUpper/topicsTableViewController.m new file mode 100644 index 0000000..9366ca9 --- /dev/null +++ b/HeadsUpper/HeadsUpper/topicsTableViewController.m @@ -0,0 +1,129 @@ +// +// topicsTableViewController.m +// HeadsUpper +// +// Created by Henna Ahmed on 2/21/16. +// Copyright © 2016 Michael Kavouras. All rights reserved. +// + +#import "topicsTableViewController.h" +#import "ViewController.h" +#import + + +@interface topicsTableViewController () + +@property (nonatomic) NSDictionary * topics; + +@end + +@implementation topicsTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.title = @"Heads Up"; + [self.navigationController.navigationBar setTitleTextAttributes: + @{NSForegroundColorAttributeName:[UIColor whiteColor]}]; + + + [self.navigationController.navigationBar setBarTintColor:FlatWatermelon]; + self.navigationController.hidesNavigationBarHairline = YES; + + self.topics = @{ + @"Superstars" : @[@"Janet Jackson", @"Leighton Meester", @"Willow Smith", @"Matt Lauer", @"Josh Duhamel", @"Sharon Osbourne", @"Spencer Pratt", @"Demi Moore", @"Whitney Houston", @"Nicole Kidman", @"Miley Cyrus", @"Victoria Beckham", @"LeAnn Rimes", @"Dakota Fanning", @"Dr. Seuss", @"Ryan Phillippe", @"Steve Carell", @"Chris Rock", @"Collin Ferell", @"Drake", @"Rachel McAdams", @"Maya Rudolph"], + @"That's so 90s" : @[@"El Niño", @"Viagra", @"Animaniacs", @"League of their Own", @"Happy Gilmore", @"Nick Carter", @"My Heart Will Go On", @"I Know What You Did Last Summer", @"Can You Feel The Love Tonight", @"The Macarana", @"Light-up Sneakers", @"Boy Meets World", @"Baby Got Back", @"Smells Like Teen Spirit", @"Super Soakers", @"7th Heaven", @"Garth Brooks", @"Floppy Discs", @"Kramer", @"Blink 182", @"Surge"], + @"Hey Mr. DJ" : @[@"\"Girl On Fire\" Alicia Keys", @"\"U Can't Touch This\" MC Hammer", @"\"Hello\" Lionel Richie", @"\"Dark Horse\" Katy Perry", @"\"Someboyd To Love\" Queen", @"\"No Scrubs\" TLC", @"\"Happy\" Pharrell Williams", @"\"Piano Man\" Billy Joel", @"\"Blurred Lines\" Robin Thicke", @"\"Fantasy\" Mariah Carey", @"\"I Will Survive\" Gloria Gaynor", @"\"Come and Get it\" Selena Gomez", @"\"Halo\" Beyonce", @"\"I Believe I Can Fly\" R.Kelly", @"\"The Sign\" Ace of Base", @"\"Diamonds\" Rihanna", @"\"A Thousand Miles\" Vanessa Carlton", @"\"What a Wonderful World\" Louis Armstrong", @"\"We Belong Together\" Mariah Carey", @"\"(I Can't Get No) Satisfaction\""], + @"Icons" : @[@"Colin Farrell", @"Mozart", @"Billy Joel", @"Judy Garland", @"Napoleon Bonaparte", @"Queen Elizabeth II", @"Fred Armisen", @"Henry Ford", @"Jon Lovitz", @"Julia Child", @"Catherine the Great", @"Magic Johnson", @"Uma Thurman", @"Orson Welles", @"Kathy Bates", @"George Orwell", @"Billy Crystal", @"Farrah Fawcett", @"Gary Busey", @"Chris Farley", @"Tom Selleck", @"Alexander the Great"], + @"Animals Gone Wild" : @[@"Chipmunk", @"Dragon", @"Wasp", @"Snake", @"Jellyfish", @"Emu", @"Boar", @"Crocodile", @"Shrimp", @"Lemur", @"Caterpillar", @"Sea Urchain", @"Dolphin ", @"Camel", @"Viper", @"Fox", @"Tuna", @"Baboon", @"Chinchilla", @"Human", @"Crawfish", @"Cricket", @"Frog", @"Tiger", @"Guinea Pig", @"Gnat", @"Killer Whale", @"Coral", @"T-Rex", @"Oyster"] + }; + + //http://api.search.live.net/json.aspx?AppId=YOUR_APPID&Query=xbox%20site:microsoft.com&Sources=Image&Version=2.0&Market=en-us&Adult=Moderate&Image.Count=10&Image.Offset=0 + + +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + + return self.topics.allKeys.count; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"topicCellIdentifier" forIndexPath:indexPath]; + cell.textLabel.text = self.topics.allKeys[indexPath.row]; + cell.textLabel.textColor = [UIColor flatMintColorDark]; + return cell; +} + +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ + NSIndexPath *indexPath = [self.tableView indexPathForCell:sender]; + NSString *key = self.topics.allKeys[indexPath.row]; + + ViewController *vc = segue.destinationViewController; + vc.answers = [self.topics objectForKey:key]; +} + +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath +{ + return 100; +} + + +/* +// Override to support conditional editing of the table view. +- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { + // Return NO if you do not want the specified item to be editable. + return YES; +} +*/ + +/* +// Override to support editing the table view. +- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { + if (editingStyle == UITableViewCellEditingStyleDelete) { + // Delete the row from the data source + [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; + } else if (editingStyle == UITableViewCellEditingStyleInsert) { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } +} +*/ + +/* +// Override to support rearranging the table view. +- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { +} +*/ + +/* +// Override to support conditional rearranging of the table view. +- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { + // Return NO if you do not want the item to be re-orderable. + return YES; +} +*/ + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/HeadsUpper/Podfile b/HeadsUpper/Podfile new file mode 100644 index 0000000..911254f --- /dev/null +++ b/HeadsUpper/Podfile @@ -0,0 +1,3 @@ +use_frameworks! +pod 'ChameleonFramework', '~> 2.1' +pod 'SIAlertView', '~> 1.3' \ No newline at end of file diff --git a/HeadsUpper/Podfile.lock b/HeadsUpper/Podfile.lock new file mode 100644 index 0000000..e488d27 --- /dev/null +++ b/HeadsUpper/Podfile.lock @@ -0,0 +1,15 @@ +PODS: + - ChameleonFramework (2.1.0): + - ChameleonFramework/Default (= 2.1.0) + - ChameleonFramework/Default (2.1.0) + - SIAlertView (1.3) + +DEPENDENCIES: + - ChameleonFramework (~> 2.1) + - SIAlertView (~> 1.3) + +SPEC CHECKSUMS: + ChameleonFramework: d21a3cc247abfe5e37609a283a8238b03575cf64 + SIAlertView: 20c794b55eaf44d888773ea51647cf8907723919 + +COCOAPODS: 0.39.0 diff --git a/HeadsUpper/Pods/ChameleonFramework/LICENSE.md b/HeadsUpper/Pods/ChameleonFramework/LICENSE.md new file mode 100755 index 0000000..7fd117d --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/LICENSE.md @@ -0,0 +1,21 @@ +##The MIT License (MIT) + +> Copyright (c) 2014-2015 Vicc Alexander + +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: + +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. + +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h new file mode 100755 index 0000000..9573d11 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h @@ -0,0 +1,31 @@ +// +// Chameleon.h +// Chameleon +// +// Created by Vicc Alexander on 9/24/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import + +//! Project version number for Chameleon. +FOUNDATION_EXPORT double ChameleonVersionNumber; + +//! Project version string for Chameleon. +FOUNDATION_EXPORT const unsigned char ChameleonVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import "Chameleon_.h" + +#import "UIButton+Chameleon.h" +#import "UILabel+Chameleon.h" +#import "UIColor+ChameleonPrivate.h" +#import "UIImage+ChameleonPrivate.h" +#import "UIView+ChameleonPrivate.h" +#import "UIAppearance+Swift.h" + +#import "NSArray+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UINavigationController+Chameleon.h" +#import "UIViewController+Chameleon.h" diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h new file mode 100755 index 0000000..9c9c345 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h @@ -0,0 +1,21 @@ +// +// Constants.h +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import +#import + +/** + * A contrasting status bar, intended for use on any backgrounds. + * + * @since 2.0 + */ +extern const UIStatusBarStyle UIStatusBarStyleContrast; + +@interface ChameleonConstants : NSObject + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.m new file mode 100755 index 0000000..02cdc7f --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.m @@ -0,0 +1,15 @@ +// +// Constants.m +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "ChameleonConstants.h" + +const UIStatusBarStyle UIStatusBarStyleContrast = 100; + +@implementation ChameleonConstants + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h new file mode 100755 index 0000000..0a9fed3 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h @@ -0,0 +1,39 @@ +// +// ChameleonEnums.h +// Chameleon +// +// Created by Vicc Alexander on 6/8/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#ifndef Chameleon_ChameleonEnums_h +#define Chameleon_ChameleonEnums_h + +/** + * Specifies how text-based UI elements and other content such as switch knobs, should be colored. + * + * @since 2.0 + */ + +typedef NS_ENUM(NSUInteger, UIContentStyle) { + /** + * Automatically chooses and colors text-based elements with the shade that best contrasts its @c backgroundColor. + * + * @since 2.0 + */ + UIContentStyleContrast, + /** + * Colors text-based elements using a light shade. + * + * @since 2.0 + */ + UIContentStyleLight, + /** + * Colors text-based elements using a light shade. + * + * @since 2.0 + */ + UIContentStyleDark +}; + +#endif diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h new file mode 100755 index 0000000..237c579 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h @@ -0,0 +1,125 @@ + +// ChameleonMacros.h + +/* + + The MIT License (MIT) + + Copyright (c) 2014-2015 Vicc Alexander. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + */ + +#import "UIColor+Chameleon.h" + +#pragma mark - Light Shades Shorthand + +#define FlatBlack [UIColor flatBlackColor] +#define FlatBlue [UIColor flatBlueColor] +#define FlatBrown [UIColor flatBrownColor] +#define FlatCoffee [UIColor flatCoffeeColor] +#define FlatForestGreen [UIColor flatForestGreenColor] +#define FlatGray [UIColor flatGrayColor] +#define FlatGreen [UIColor flatGreenColor] +#define FlatLime [UIColor flatLimeColor] +#define FlatMagenta [UIColor flatMagentaColor] +#define FlatMaroon [UIColor flatMaroonColor] +#define FlatMint [UIColor flatMintColor] +#define FlatNavyBlue [UIColor flatNavyBlueColor] +#define FlatOrange [UIColor flatOrangeColor] +#define FlatPink [UIColor flatPinkColor] +#define FlatPlum [UIColor flatPlumColor] +#define FlatPowderBlue [UIColor flatPowderBlueColor] +#define FlatPurple [UIColor flatPurpleColor] +#define FlatRed [UIColor flatRedColor] +#define FlatSand [UIColor flatSandColor] +#define FlatSkyBlue [UIColor flatSkyBlueColor] +#define FlatTeal [UIColor flatTealColor] +#define FlatWatermelon [UIColor flatWatermelonColor] +#define FlatWhite [UIColor flatWhiteColor] +#define FlatYellow [UIColor flatYellowColor] + +// --------------------------------------------------- + +#pragma mark - Dark Shades Shorthand + +#define FlatBlackDark [UIColor flatBlackColorDark] +#define FlatBlueDark [UIColor flatBlueColorDark] +#define FlatBrownDark [UIColor flatBrownColorDark] +#define FlatCoffeeDark [UIColor flatCoffeeColorDark] +#define FlatForestGreenDark [UIColor flatForestGreenColorDark] +#define FlatGrayDark [UIColor flatGrayColorDark] +#define FlatGreenDark [UIColor flatGreenColorDark] +#define FlatLimeDark [UIColor flatLimeColorDark] +#define FlatMagentaDark [UIColor flatMagentaColorDark] +#define FlatMaroonDark [UIColor flatMaroonColorDark] +#define FlatMintDark [UIColor flatMintColorDark] +#define FlatNavyBlueDark [UIColor flatNavyBlueColorDark] +#define FlatOrangeDark [UIColor flatOrangeColorDark] +#define FlatPinkDark [UIColor flatPinkColorDark] +#define FlatPlumDark [UIColor flatPlumColorDark] +#define FlatPowderBlueDark [UIColor flatPowderBlueColorDark] +#define FlatPurpleDark [UIColor flatPurpleColorDark] +#define FlatRedDark [UIColor flatRedColorDark] +#define FlatSandDark [UIColor flatSandColorDark] +#define FlatSkyBlueDark [UIColor flatSkyBlueColorDark] +#define FlatTealDark [UIColor flatTealColorDark] +#define FlatWatermelonDark [UIColor flatWatermelonColorDark] +#define FlatWhiteDark [UIColor flatWhiteColorDark] +#define FlatYellowDark [UIColor flatYellowColorDark] + +// --------------------------------------------------- + +#pragma mark - Special Colors Shorthand + +#define RandomFlatColor [UIColor randomFlatColor] +#define ClearColor [UIColor clearColor] + +// --------------------------------------------------- + +#pragma mark - UIColor Methods Shorthand + +#define AverageColorFromImage(image) [UIColor colorWithAverageColorFromImage:image] +#define AverageColorFromImageWithAlpha(image, alpha) [UIColor colorWithAverageColorFromImage:image withAlpha:alpha] + +#define ComplementaryFlatColor(color) [UIColor colorWithComplementaryFlatColorOf:color] +#define ComplementaryFlatColorWithAlpha(color, alpha) [UIColor colorWithComplementaryFlatColorOf:color withAlpha:alpha] + +#define ContrastColor(backgroundColor, returnFlat) [UIColor colorWithContrastingBlackOrWhiteColorOn:backgroundColor isFlat:returnFlat] +#define ContrastColorWithAlpha(backgroundColor, returnFlat, alpha) [UIColor colorWithContrastingBlackOrWhiteColorOn:backgroundColor isFlat:returnFlat alpha:alpha] + +#define GradientColor(gradientStyle, frame, colors) [UIColor colorWithGradientStyle:gradientStyle withFrame:frame andColors:colors] + +#define HexColor(hexString) [UIColor colorWithHexString:hexString] +#define HexColorWithAlpha(hexString, alpha) [UIColor colorWithHexString:hexString withAlpha:alpha] + +#define RandomFlatColorInArray(colors) [UIColor colorWithRandomColorInArray:colors] +#define RandomFlatColorExcluding(colors) [UIColor colorWithRandomFlatColorExcludingColorsInArray:colors]; +#define RandomFlatColorWithShade(shade) [UIColor colorWithRandomFlatColorOfShadeStyle:shade] +#define RandomFlatColorWithShadeAndAlpha(shade, alpha) [UIColor colorWithRandomFlatColorOfShadeStyle:shade withAlpha:alpha] + +// --------------------------------------------------- + +#pragma mark - NSArray Shorthand + +#define ColorsWithScheme(colorSchemeType, color, isFlatScheme) [NSArray arrayOfColorsWithColorScheme:colorSchemeType usingColor:color withFlatScheme:isFlatScheme] +#define ColorsFromImage(image, isFlatScheme) [NSArray arrayOfColorsFromImage:image withFlatScheme:isFlatScheme] + + diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h new file mode 100755 index 0000000..d492a47 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h @@ -0,0 +1,66 @@ +// +// ChameleonInternal.h +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import +#import + +#import "ChameleonConstants.h" +#import "ChameleonEnums.h" +#import "ChameleonMacros.h" + +#import "NSArray+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UINavigationController+Chameleon.h" +#import "UIViewController+Chameleon.h" + +@interface Chameleon : NSObject + +#pragma mark - Global Theming + +/** + * Set a global theme using a primary color and the specified content style. + * + * @param primaryColor The primary color to theme all controllers with. + * @param contentStyle The contentStyle. + * + * @note By default the secondary color will be a darker shade of the specified primary color. + * + * @since 2.0 + */ ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle; + +/** + * Set a global theme using a primary color, secondary color, and the specified content style. + * + * @param primaryColor The primary color to theme all controllers with. + * @param secondaryColor The secondary color to theme all controllers with. + * @param contentStyle The contentStyle. + * + * @since 2.0 + */ ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + andContentStyle:(UIContentStyle)contentStyle; + +/** + * Set a global theme using a primary color, secondary color, font name, and the specified content style. + * + * @param primaryColor The primary color to theme all controllers with. + * @param secondaryColor The secondary color to theme all controllers with. + * @param fontName The default font for all text-based UI elements. + * @param contentStyle The contentStyle. + * + * @since 2.0 + */ ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + usingFontName:(NSString *)fontName + andContentStyle:(UIContentStyle)contentStyle; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.m new file mode 100755 index 0000000..4aab5a2 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.m @@ -0,0 +1,793 @@ +// +// ChameleonInternal.m +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "Chameleon_.h" +#import "UILabel+Chameleon.h" +#import "UIButton+Chameleon.h" +#import "UIAppearance+Swift.h" + +@implementation Chameleon + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor contentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeNavigationBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; +} + + ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + andContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor contentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor secondaryColor:secondaryColor withContentStyle:contentStyle]; + [[self class] customizeNavigationBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; +} + ++ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + usingFontName:(NSString *)fontName + andContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[UILabel appearance] setSubstituteFontName:fontName]; + [[UIButton appearance] setSubstituteFontName:fontName]; + + [[self class] customizeNavigationBarWithBarColor:primaryColor textColor:ContrastColor(primaryColor, YES) fontName:fontName fontSize:20 buttonColor:ContrastColor(primaryColor, YES)]; + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor fontName:fontName fontSize:18 contentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withFontName:fontName withFontSize:14 withContentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor secondaryColor:secondaryColor withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + + /* + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor fontName:fontName fontSize:18 contentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor fontName:fontName fontSize:17 contentStyle:contentStyle]; + [[self class] customizeLabelWithPrimaryColor:primaryColor fontName:fontName fontSize:18 withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite tintColor:primaryColor fontName:fontName fontSize:11]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + + */ +} + +#pragma mark - UIBarButtonItem + ++ (void)customizeBarButtonItemWithPrimaryColor:(UIColor *)primaryColor + contentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIBarButtonItem appearance] setTintColor:primaryColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + + +} + ++ (void)customizeBarButtonItemWithPrimaryColor:(UIColor *)primaryColor + fontName:(NSString *)fontName + fontSize:(float)fontSize + contentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIBarButtonItem appearance] setTintColor:primaryColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + + + if ([UIFont fontWithName:fontName size:fontSize]) { + [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:@{ NSForegroundColorAttributeName:contentColor, + NSFontAttributeName:[UIFont fontWithName:fontName size:fontSize]} forState:UIControlStateNormal]; + } +} + +#pragma mark - UIButton + ++ (void)customizeButtonWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIButton appearance] setTintColor:contentColor]; + [[UIButton appearance] setBackgroundColor:primaryColor]; + + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setTintColor:primaryColor]; + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearance] setTitleShadowColor:ClearColor forState:UIControlStateNormal]; +} + ++ (void)customizeButtonWithPrimaryColor:(UIColor *)primaryColor + secondaryColor:(UIColor *)secondaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + UIColor *secondaryContentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + secondaryContentColor = ContrastColor(secondaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + secondaryContentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + secondaryContentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + secondaryContentColor = ContrastColor(secondaryColor, NO); + break; + } + } + + [[UIButton appearance] setTintColor:secondaryContentColor]; + [[UIButton appearance] setBackgroundColor:secondaryColor]; + + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setTintColor:primaryColor]; + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearance] setTitleShadowColor:ClearColor forState:UIControlStateNormal]; +} + +#pragma mark - UIImagePickerController + ++ (void)customizeImagePickerControllerWithPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + //Workaround for Swift http://stackoverflow.com/a/28765193 + [[UIButton appearanceWhenContainedWithin:@[[UIView class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UIView class],[UIImagePickerController class]]] setTintColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UINavigationBar class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UINavigationBar class],[UIImagePickerController class]]] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedWithin:@[[UITableViewCell class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UIView class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UIView class],[UIImagePickerController class]]] setTintColor:contentColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class],[UIImagePickerController class]]] setTintColor:contentColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; +} + + +#pragma mark - UILabel + ++ (void)customizeLabelWithPrimaryColor:(UIColor *)primaryColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UILabel appearanceWhenContainedIn:[UINavigationBar class], nil] setTextColor:contentColor]; + [[UILabel appearanceWhenContainedIn:[UIToolbar class], nil] setTextColor:contentColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + + if (font) { + [[UILabel appearance] setFont:[UIFont fontWithName:fontName size:fontSize]]; + [[UILabel appearanceWhenContainedIn:[UITextField class], nil] setFont:[UIFont fontWithName:fontName size:14]]; + [[UILabel appearanceWhenContainedIn:[UIButton class], nil] setFont:[UIFont fontWithName:fontName size:18]]; + } +} + +#pragma mark - UINavigationBar + ++ (void)customizeNavigationBarWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UINavigationBar appearance] setBarTintColor:primaryColor]; + [[UINavigationBar appearance] setTintColor:contentColor]; + [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:contentColor}]; + [[UINavigationBar appearance] setShadowImage:[UIImage new]]; + // [[UINavigationBar appearance] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; +} + ++ (void)customizeNavigationBarWithBarColor:(UIColor *)barColor + textColor:(UIColor *)textColor + buttonColor:(UIColor *)buttonColor { + + [[UINavigationBar appearance] setBarTintColor:barColor]; + [[UINavigationBar appearance] setTintColor:buttonColor]; + [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:textColor}]; + [[UINavigationBar appearance] setShadowImage:[UIImage new]]; + // [[UINavigationBar appearance] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; +} + ++ (void)customizeNavigationBarWithBarColor:(UIColor *)barColor + textColor:(UIColor *)textColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize + buttonColor:(UIColor *)buttonColor { + + [[UINavigationBar appearance] setBarTintColor:barColor]; + [[UINavigationBar appearance] setTintColor:buttonColor]; + [[UINavigationBar appearance] setShadowImage:[UIImage new]]; + // [[UINavigationBar appearance] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; + + if ([UIFont fontWithName:fontName size:fontSize]) { + [[UINavigationBar appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName:textColor, NSFontAttributeName:[UIFont fontWithName:fontName size:fontSize] }]; + } +} + +#pragma mark - UIPageControl + ++ (void)customizePageControlWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIPageControl appearance] setCurrentPageIndicatorTintColor:primaryColor]; + [[UIPageControl appearance] setPageIndicatorTintColor:[primaryColor colorWithAlphaComponent:0.4]]; + [[UIPageControl appearanceWhenContainedIn:[UINavigationBar class], nil] setCurrentPageIndicatorTintColor:contentColor]; + [[UIPageControl appearanceWhenContainedIn:[UINavigationBar class], nil] setPageIndicatorTintColor:[contentColor colorWithAlphaComponent:0.4]]; + [[UIPageControl appearanceWhenContainedIn:[UIToolbar class], nil] setCurrentPageIndicatorTintColor:contentColor]; + [[UIPageControl appearanceWhenContainedIn:[UIToolbar class], nil] setPageIndicatorTintColor:[contentColor colorWithAlphaComponent:0.4]]; +} + +#pragma mark - UIProgressView + ++ (void)customizeProgressViewWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIProgressView appearance] setProgressTintColor:primaryColor]; + [[UIProgressView appearanceWhenContainedIn:[UINavigationBar class], nil] setProgressTintColor:contentColor]; + [[UIProgressView appearanceWhenContainedIn:[UIToolbar class], nil] setProgressTintColor:contentColor]; + [[UIProgressView appearance] setTrackTintColor:[UIColor lightGrayColor]]; + [[UIProgressView appearanceWhenContainedIn:[UINavigationBar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UIProgressView appearanceWhenContainedIn:[UIToolbar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + ++ (void)customizeProgressViewWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UIProgressView appearance] setProgressTintColor:secondaryColor]; + [[UIProgressView appearanceWhenContainedIn:[UINavigationBar class], nil] setProgressTintColor:secondaryColor]; + [[UIProgressView appearanceWhenContainedIn:[UIToolbar class], nil] setProgressTintColor:secondaryColor]; + [[UIProgressView appearance] setTrackTintColor:[UIColor lightGrayColor]]; + [[UIProgressView appearanceWhenContainedIn:[UINavigationBar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UIProgressView appearanceWhenContainedIn:[UIToolbar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + +#pragma mark - UISearchBar + ++ (void)customizeSearchBarWithPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISearchBar appearance] setBarTintColor:primaryColor]; + [[UISearchBar appearance] setBackgroundColor:primaryColor]; + [[UISearchBar appearance] setTintColor:contentColor]; + [[UISearchBar appearance] setBackgroundImage:[UIImage new] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault]; +} + +#pragma mark - UISegmentedControl + ++ (void)customizeSegmentedControlWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISegmentedControl appearance] setTintColor:primaryColor]; + [[UISegmentedControl appearanceWhenContainedIn:[UINavigationBar class], nil] + setTintColor:contentColor]; + [[UISegmentedControl appearanceWhenContainedIn:[UIToolbar class], nil] + setTintColor:contentColor]; +} + ++ (void)customizeSegmentedControlWithPrimaryColor:(UIColor *)primaryColor + withFontName:(NSString *)fontName + withFontSize:(CGFloat)fontSize + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISegmentedControl appearance] setTintColor:primaryColor]; + [[UISegmentedControl appearanceWhenContainedIn:[UINavigationBar class], nil] + setTintColor:contentColor]; + [[UISegmentedControl appearanceWhenContainedIn:[UIToolbar class], nil] + setTintColor:contentColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + if (font) { + [[UISegmentedControl appearance] setTitleTextAttributes:@{NSFontAttributeName:font} + forState:UIControlStateNormal]; + } +} + +#pragma mark - UISlider + ++ (void)customizeSliderWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISlider appearance] setMinimumTrackTintColor:primaryColor]; + [[UISlider appearanceWhenContainedIn:[UINavigationBar class], nil] setMinimumTrackTintColor:contentColor]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setMinimumTrackTintColor:contentColor]; + [[UISlider appearance] setMaximumTrackTintColor:[UIColor lightGrayColor]]; + [[UISlider appearanceWhenContainedIn:[UINavigationBar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + + [[UISlider appearance] setThumbTintColor:primaryColor]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setThumbTintColor:contentColor]; +} + ++ (void)customizeSliderWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UISlider appearance] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[UINavigationBar class], nil] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearance] setMaximumTrackTintColor:[UIColor lightGrayColor]]; + [[UISlider appearanceWhenContainedIn:[UINavigationBar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + + [[UISlider appearance] setThumbTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[UIToolbar class], nil] setThumbTintColor:ContrastColor(primaryColor, NO)]; +} + +#pragma mark - UIStepper + ++ (void)customizeStepperWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIStepper appearance] setTintColor:primaryColor]; + [[UIStepper appearanceWhenContainedIn:[UINavigationBar class], nil] + setTintColor:contentColor]; + [[UIStepper appearanceWhenContainedIn:[UIToolbar class], nil] + setTintColor:contentColor]; +} + +#pragma mark - UISwitch + ++ (void)customizeSwitchWithPrimaryColor:(UIColor *)primaryColor { + + [[UISwitch appearance] setOnTintColor:primaryColor]; + [[UISwitch appearanceWhenContainedIn:[UINavigationBar class], nil] setOnTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISwitch appearanceWhenContainedIn:[UIToolbar class], nil] setOnTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + ++ (void)customizeSwitchWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UISwitch appearance] setOnTintColor:secondaryColor]; + [[UISwitch appearanceWhenContainedIn:[UINavigationBar class], nil] setOnTintColor:secondaryColor]; + [[UISwitch appearanceWhenContainedIn:[UIToolbar class], nil] setOnTintColor:secondaryColor]; +} + +#pragma mark - UITabBar + ++ (void)customizeTabBarWithBarTintColor:(UIColor *)barTintColor + andTintColor:(UIColor *)tintColor { + + [[UITabBar appearance] setBarTintColor:barTintColor]; + [[UITabBar appearance] setTintColor:tintColor]; +} + ++ (void)customizeTabBarWithBarTintColor:(UIColor *)barTintColor + tintColor:(UIColor *)tintColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize { + + [[UITabBar appearance] setBarTintColor:barTintColor]; + [[UITabBar appearance] setTintColor:tintColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + if (font) { + [[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName:font} + forState:UIControlStateNormal]; + } +} + +#pragma mark - UIToolbar + ++ (void)customizeToolbarWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIToolbar appearance] setTintColor:contentColor]; + [[UIToolbar appearance] setBarTintColor:primaryColor]; + [[UIToolbar appearance] setClipsToBounds:YES]; +} + +#pragma GCC diagnostic pop + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h new file mode 100755 index 0000000..b74c664 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h @@ -0,0 +1,112 @@ + +// NSArray+Chameleon.h + +/* + + The MIT License (MIT) + + Copyright (c) 2014-2015 Vicc Alexander. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + */ + +#import +#import + +#pragma mark - Enums + +/** + * Color schemes with which to select colors using a specified color. + * + * @since 1.0 + */ +typedef NS_ENUM(NSInteger, ColorScheme){ + /** + * Analogous color schemes use colors that are next to each other on the color wheel. They usually match well and create serene and comfortable designs. Analogous color schemes are often found in nature and are harmonious and pleasing to the eye. Make sure you have enough contrast when choosing an analogous color scheme. Choose one color to dominate, a second to support. The third color is used (along with black, white or gray) as an accent. + * + * @since 1.0 + */ + ColorSchemeAnalogous, + /** + * Colors that are opposite each other on the color wheel are considered to be complementary colors (example: red and green). The high contrast of complementary colors creates a vibrant look especially when used at full saturation. This color scheme must be managed well so it is not jarring. Complementary colors are tricky to use in large doses, but work well when you want something to stand out. Complementary colors are really bad for text. + * + * @since 1.0 + */ + ColorSchemeTriadic, + /** + * A triadic color scheme uses colors that are evenly spaced around the color wheel. Triadic color harmonies tend to be quite vibrant, even if you use pale or unsaturated versions of your hues. To use a triadic harmony successfully, the colors should be carefully balanced - let one color dominate and use the two others for accent. + * + * @since 1.0 + */ + ColorSchemeComplementary +}; + +@interface NSArray (Chameleon) + +#pragma mark - Generating Color Schemes + +/** + * Generates and creates an array of 5 color objects in the HSB colorspace from the specified color. + * + * @param colorScheme The color scheme with which to select colors using a specified color. + * @param color The specified color which the color scheme is built around. + * @param isFlatScheme Pass YES to return flat color objects. + * + * @return An array of 5 color objects in the HSB colorspace. + * + * @since 2.0 + */ ++ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme + usingColor:(UIColor *)color + withFlatScheme:(BOOL)isFlatScheme; + +/** + * Generates and creates an array of 5 color objects in the HSB colorspace that appear most often in a specified image. + * + * @param image The specified image which the color scheme is built around. + * @param isFlatScheme Pass YES to return flat color objects. + * + * @return An array of 5 color objects in the HSB colorspace. + * + * @since 2.0 + */ ++ (NSArray *)arrayOfColorsFromImage:(UIImage *)image + withFlatScheme:(BOOL)isFlatScheme; + +#pragma mark - Deprecated Methods + +/** + * Generates and creates an array of 5 color objects in the HSB colorspace from the specified color. + * + * @param colorScheme The color scheme with which to select colors using a specified color. + * + * @param color The specified color which the color scheme is built around. + * + * @param isFlatScheme Pass YES to return flat color objects. + * + * @return An array of 5 color objects in the HSB colorspace. + * + * @since 1.1.2 + */ ++ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme + with:(UIColor *)color + flatScheme:(BOOL)isFlatScheme __attribute((deprecated(" Use -arrayOfColorsWithColorScheme:usingColor:withFlatScheme: instead (First deprecated in Chameleon 2.0)."))); + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.m new file mode 100755 index 0000000..1e1dbe0 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.m @@ -0,0 +1,736 @@ + +// NSArray+Chameleon.m + +/* + + The MIT License (MIT) + + Copyright (c) 2014-2015 Vicc Alexander. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + */ + +#import "NSArray+Chameleon.h" +#import "ChameleonMacros.h" +#import "UIColor+ChameleonPrivate.h" +#import "UIImage+ChameleonPrivate.h" + +@interface ChameleonCountedColor : NSObject + +@property (assign) NSUInteger count; +@property (strong) UIColor *color; + +- (id)initWithColor:(UIColor *)color count:(NSUInteger)count; + +@end + +@implementation NSArray (Chameleon) + +#pragma mark - Deprecated 2.0 + ++ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme with:(UIColor *)color flatScheme:(BOOL)isFlatScheme { + + //Extract HSB values from input color + CGFloat h, s, b, a; + [color getHue:&h saturation:&s brightness:&b alpha:&a]; + + //Multiply our values by the max value to convert + h *= 360; + s *= 100; + b *= 100; + + //Choose Between Schemes + switch (colorScheme) { + case ColorSchemeAnalogous: + return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; + case ColorSchemeComplementary: + return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; + case ColorSchemeTriadic: + return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; + default: + NSAssert(0, @"Oops! Unrecognized color scheme provided as random color."); + } +} + +#pragma mark - Chameleon - Public Color Scheme Methods + ++ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme usingColor:(UIColor *)color withFlatScheme:(BOOL)isFlatScheme { + + //Extract HSB values from input color + CGFloat h, s, b, a; + [color getHue:&h saturation:&s brightness:&b alpha:&a]; + + //Multiply our values by the max value to convert + h *= 360; + s *= 100; + b *= 100; + + //Choose Between Schemes + switch (colorScheme) { + case ColorSchemeAnalogous: + if (isFlatScheme) return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; + else return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + case ColorSchemeComplementary: + if (isFlatScheme) return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; + else return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + case ColorSchemeTriadic: + if (isFlatScheme) return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; + else return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + default: + NSAssert(0, @"Oops! Unrecognized color scheme provided as random color."); + } +} + ++ (NSArray *)arrayOfColorsFromImage:(UIImage *)image withFlatScheme:(BOOL)isFlatScheme { + + //Quick return in case we don't have an image + if (!image) { + + //Make sure we return some colors to prevent exception + NSMutableArray *emptyColors = [NSMutableArray array]; + while (emptyColors.count < 5) { + [emptyColors addObject:[UIColor whiteColor]]; + } + + return emptyColors; + } + + //Scale image + UIImage *scaledImage = [UIImage imageWithImage:image scaledToSize:CGSizeMake(image.size.width/8, image.size.height/8)]; + NSMutableArray *finalColors = [NSMutableArray array]; + + //Find colors in image ********************************* + + //Get dimensions of image in pixels + size_t width = CGImageGetWidth(scaledImage.CGImage); + size_t height = CGImageGetHeight(scaledImage.CGImage); + + //Initialize a counted set with the correct capacity + NSCountedSet *imageColors = [[NSCountedSet alloc] initWithCapacity:(width * height)]; + + //Loop through each column + for (NSUInteger x = 0; x < width; x++) { + + //Loop through each row + for (NSUInteger y = 0; y < height; y++) { + + //Get color at a specific point + UIColor *color = [UIColor colorFromImage:scaledImage atPoint:CGPointMake(x, y)]; + + //Add color to our list of all pixel colors + [imageColors addObject:color]; + } + } + + //Setup up an enumerator object + NSEnumerator *enumerator = [imageColors objectEnumerator]; + UIColor *currentColor; + NSMutableArray *sortedColors = [NSMutableArray arrayWithCapacity:imageColors.count]; + NSMutableArray *resultColors = [NSMutableArray array]; + + //Enumerate through each object once + while ((currentColor = [enumerator nextObject]) != nil) { + + //Set a minimum allowed saturation + currentColor = [currentColor colorWithMinimumSaturation:0.15f]; + + //Get color count + NSUInteger colorCount = [imageColors countForObject:currentColor]; + + //Add them to our sortedColors array + [sortedColors addObject:[[ChameleonCountedColor alloc] initWithColor:currentColor count:colorCount]]; + } + + //Sort Colors + [sortedColors sortUsingSelector:@selector(compare:)]; + + //Loop through our sorted colors + for (ChameleonCountedColor *countedColor in sortedColors) { + + //Define our current color + currentColor = countedColor.color; + + //Setup a flag to see if we should continue counting + BOOL continueFlag = NO; + + //Loop through our colors + for (UIColor *otherColor in resultColors) { + + //If our current color differs from our last, break the loop + if (![currentColor isDistinct:otherColor]) { + continueFlag = YES; + break; + } + } + + //Continue + if (continueFlag) { + continue; + } + + //If we can still add more colors, do so + if (resultColors.count < 5) { + + //Check if we should flatten our color + if (isFlatScheme) { + [resultColors addObject:[currentColor flatten]]; + } else { + [resultColors addObject:currentColor]; + } + + } else { + break; + } + + } + + //Get colors from image + [finalColors addObjectsFromArray:[NSArray arrayWithArray:resultColors]]; + + // ***************************************************** + + //Make sure we add white colors in case we're missing colors + while (finalColors.count < 5) { + [finalColors addObject:[UIColor whiteColor]]; + } + + //Return array of colors + return [NSArray arrayWithArray:finalColors]; +} + +- (NSArray *)findColorsOfImage:(UIImage *)image imageColors:(NSCountedSet * __autoreleasing *)colors { + + //Get dimensions of image in pixels + size_t width = CGImageGetWidth(image.CGImage); + size_t height = CGImageGetHeight(image.CGImage); + + //Initialize a counted set with the correct capacity + NSCountedSet *imageColors = [[NSCountedSet alloc] initWithCapacity:(width * height)]; + + //Loop through each column + for (NSUInteger x = 0; x < width; x++) { + + //Loop through each row + for (NSUInteger y = 0; y < height; y++) { + + //Get color at a specific point + UIColor *color = [UIColor colorFromImage:image atPoint:CGPointMake(x, y)]; + + //Add color to our list of all pixel colors + [imageColors addObject:color]; + } + } + + //Assign imageColors to colors + *colors = imageColors; + + //Setup up an enumerator object + NSEnumerator *enumerator = [imageColors objectEnumerator]; + UIColor *currentColor; + NSMutableArray *sortedColors = [NSMutableArray arrayWithCapacity:imageColors.count]; + NSMutableArray *resultColors = [NSMutableArray array]; + + //Enumerate through each object once + while ((currentColor = [enumerator nextObject]) != nil) { + + //Set a minimum allowed saturation + currentColor = [currentColor colorWithMinimumSaturation:0.15f]; + + //Get color count + NSUInteger colorCount = [imageColors countForObject:currentColor]; + + //Add them to our sortedColors array + [sortedColors addObject:[[ChameleonCountedColor alloc] initWithColor:currentColor count:colorCount]]; + } + + //Sort Colors + [sortedColors sortUsingSelector:@selector(compare:)]; + + //Loop through our sorted colors + for (ChameleonCountedColor *countedColor in sortedColors) { + + //Define our current color + currentColor = countedColor.color; + + //Setup a flag to see if we should continue counting + BOOL continueFlag = NO; + + //Loop through our colors + for (UIColor *c in resultColors) { + + //If our current color differs from our last, break the loop + if (![currentColor isDistinct:c]) { + continueFlag = YES; + break; + } + } + + //Continue + if (continueFlag) { + continue; + } + + //If we can still add more colors, do so + if (resultColors.count < self.count) { + + [resultColors addObject:currentColor]; + + } else { + break; + } + + } + + //Return our colors + return [NSArray arrayWithArray:resultColors]; +} + + +#pragma mark - Chameleon - Internal Color Scheme Methods + +//Creates an array with 2 analagous colors on each side of the predefined color ++ (NSArray *)analogousColorSchemeFromHue:(CGFloat)h Saturation:(CGFloat)s Brightness:(CGFloat)b flat:(BOOL)isFlat { + + UIColor *firstColor = [UIColor colorWithHue:([[self class] add:-32 to:h])/360 + saturation:(s+5)/100 + brightness:(b+5)/100 + alpha:1.0]; + + UIColor *secondColor = [UIColor colorWithHue:[[self class] add:-16 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0]; + + UIColor *thirdColor = [UIColor colorWithHue:h/360 + saturation:s/100 + brightness:b/100 + alpha:1.0]; + + UIColor *fourthColor = [UIColor colorWithHue:[[self class] add:16 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0]; + + UIColor *fifthColor = [UIColor colorWithHue:[[self class] add:32 to:h]/360 + saturation:(s+5)/100 + brightness:(b+5)/100 + alpha:1.0]; + + if (isFlat) { + + //Flatten colors + firstColor = [firstColor flatten]; + secondColor = [secondColor flatten]; + thirdColor = [thirdColor flatten]; + fourthColor = [fourthColor flatten]; + fifthColor = [fifthColor flatten]; + + //Make sure returned colors are unique + + //Inner Colors + if ([secondColor isEqual:thirdColor]) { + + secondColor = [[UIColor colorWithHue:[[self class] add:-48 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] flatten]; + } + + if ([thirdColor isEqual:fourthColor]) { + + fourthColor = [[UIColor colorWithHue:[[self class] add:32 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] flatten]; + } + + //Outer Colors + + if ([firstColor isEqual:secondColor]) { + + firstColor = [[UIColor colorWithHue:[[self class] add:-64 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] flatten]; + } + + if ([firstColor isEqual:thirdColor]) { + + firstColor = [[UIColor colorWithHue:[[self class] add:-96 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] darkenByPercentage:0.25]; + } + + if ([fourthColor isEqual:fifthColor]) { + fifthColor = [[UIColor colorWithHue:[[self class] add:64 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] flatten]; + } + + if ([thirdColor isEqual:fifthColor]) { + fifthColor = [[UIColor colorWithHue:[[self class] add:96 to:h]/360 + saturation:(s+5)/100 + brightness:(b+9)/100 + alpha:1.0] flatten]; + } + + } + + return @[firstColor, secondColor, thirdColor, fourthColor, fifthColor]; +} + +// Creates an array of 5 colors, both 90 degrees and 180 degrees away from the predefined colors on both sides ++ (NSArray *)complementaryColorSchemeFromHue:(CGFloat)h Saturation:(CGFloat)s Brightness:(CGFloat)b flat:(BOOL)isFlat { + + UIColor *firstColor = [UIColor colorWithHue:h/360 + saturation:(s+5)/100 + brightness:(b-30)/100 + alpha:1.0]; + + UIColor *secondColor = [UIColor colorWithHue:h/360 + saturation:(s-10)/100 + brightness:(b+9)/100 + alpha:1.0]; + + UIColor *thirdColor = [UIColor colorWithHue:h/360 + saturation:s/100 + brightness:b/100 + alpha:1.0]; + + UIColor *fourthColor = [UIColor colorWithHue:[[self class] add:180 to:h]/360 + saturation:s/100 + brightness:b/100 + alpha:1.0]; + + UIColor *fifthColor = [UIColor colorWithHue:[[self class] add:180 to:h]/360 + saturation:(s+20)/100 + brightness:(b-30)/100 + alpha:1.0]; + + + if (isFlat) { + + //Flatten colors + firstColor = [firstColor flatten]; + secondColor = [secondColor flatten]; + thirdColor = [thirdColor flatten]; + fourthColor = [fourthColor flatten]; + fifthColor = [fifthColor flatten]; + + //Make sure returned colors are unique + + //Inner Colors + if ([secondColor isEqual:thirdColor]) { + secondColor = [[secondColor darkenByPercentage:0.25] flatten]; + } + + if ([thirdColor isEqual:fourthColor]) { + fourthColor = [[fourthColor darkenByPercentage:0.25] flatten]; + } + + if ([firstColor isEqual:thirdColor]) { + firstColor = [[firstColor darkenByPercentage:0.25] flatten]; + } + + if ([fifthColor isEqual:thirdColor]) { + fifthColor = [[fifthColor darkenByPercentage:0.25] flatten]; + } + + //Outer Colors + + if ([firstColor isEqual:secondColor]) { + firstColor = [[firstColor darkenByPercentage:0.25] flatten]; + } + + + if ([fourthColor isEqual:fifthColor]) { + fifthColor = [[fifthColor darkenByPercentage:0.25] flatten]; + } + + } + + return @[firstColor, secondColor, thirdColor, fourthColor, fifthColor]; + +} + +// Creates an array of 5 colors, both 120 degrees and 240 degrees away from the predefined colors on both sides ++ (NSArray *)triadicColorSchemeFromHue:(CGFloat)h Saturation:(CGFloat)s Brightness:(CGFloat)b flat:(BOOL)isFlat { + + UIColor *firstColor = [UIColor colorWithHue:[[self class] add:120 to:h]/360 + saturation:(7*s/6)/100 + brightness:(b-5)/100 + alpha:1.0]; + + UIColor *secondColor = [UIColor colorWithHue:[[self class] add:120 to:h]/360 + saturation:s/100 + brightness:(b+9)/100 + alpha:1.0]; + + UIColor *thirdColor = [UIColor colorWithHue:h/360 + saturation:s/100 + brightness:b/100 + alpha:1.0]; + + UIColor *fourthColor = [UIColor colorWithHue:[[self class] add:240 to:h]/360 + saturation:(7*s/6)/100 + brightness:(b-5)/100 + alpha:1.0]; + + UIColor *fifthColor = [UIColor colorWithHue:[[self class] add:240 to:h]/360 + saturation:s/100 + brightness:(b-30)/100 + alpha:1.0]; + + if (isFlat) { + + //Flatten colors + firstColor = [firstColor flatten]; + secondColor = [secondColor flatten]; + thirdColor = [thirdColor flatten]; + fourthColor = [fourthColor flatten]; + fifthColor = [fifthColor flatten]; + + //Make sure returned colors are unique + + //Inner Colors + if ([secondColor isEqual:thirdColor]) { + secondColor = [[secondColor darkenByPercentage:0.25] flatten]; + } + + if ([thirdColor isEqual:fourthColor]) { + fourthColor = [[fourthColor darkenByPercentage:0.25] flatten]; + } + + if ([firstColor isEqual:thirdColor]) { + firstColor = [[firstColor darkenByPercentage:0.25] flatten]; + } + + if ([fifthColor isEqual:thirdColor]) { + fifthColor = [[fifthColor darkenByPercentage:0.25] flatten]; + } + + //Outer Colors + + if ([firstColor isEqual:secondColor]) { + firstColor = [[firstColor darkenByPercentage:0.25] flatten]; + } + + + if ([fourthColor isEqual:fifthColor]) { + fifthColor = [[fifthColor darkenByPercentage:0.25] flatten]; + } + + } + + return @[firstColor, secondColor, thirdColor, fourthColor, fifthColor]; +} + +#pragma mark - Helper Methods for Color Schemes + ++ (float)add:(float)newValue to:(float)currentValue { + + currentValue += newValue; + + //Check if currentValue exceeds 360 degrees + if (currentValue > 360) { + float offset = currentValue - 360; + return offset; + } + + else if (currentValue < 0) { + return -1 * currentValue; + } + + else { + return currentValue; + } +} + ++ (UIColor *)colorWithFlatVersionOf:(UIColor *)color { + + //Create CGFloats to hold our color values + CGFloat L, A, B, alpha; + + //Get LAB values for our color + [color getLightness:&L valueForA:&A valueForB:&B alpha:&alpha]; + + //Find the nearest flat color + return [self nearestFlatColorForL:L A:A B:B alpha:1.0]; +} + +//Array of all our colors ++ (NSArray *)flatColors { + + return @[FlatBlack, FlatBlackDark, FlatBlue, FlatBlueDark, FlatBrown, FlatBrownDark, FlatCoffee, FlatCoffeeDark, FlatForestGreen, FlatForestGreenDark, FlatGray, FlatGrayDark, FlatGreen, FlatGreenDark, FlatLime, FlatLimeDark, FlatMagenta, FlatMagentaDark, FlatMaroon, FlatMaroonDark, FlatMint, FlatMintDark, FlatNavyBlue, FlatNavyBlueDark, FlatOrange, FlatOrangeDark, FlatPink, FlatPinkDark, FlatPlum, FlatPlumDark, FlatPowderBlue, FlatPowderBlueDark, FlatPurple, FlatPurpleDark, FlatRed, FlatRedDark, FlatSand, FlatSandDark, FlatSkyBlue, FlatSkyBlueDark, FlatTeal, FlatTealDark, FlatWatermelon, FlatWatermelonDark, FlatWhite, FlatWhiteDark, FlatYellow, FlatYellowDark]; +} + +//Calculate the total sum of differences - Euclidian distance +//Chameleon is now using the CIEDE2000 formula to calculate distances between 2 colors. +//More info: http://en.wikipedia.org/wiki/Color_difference ++ (float)totalSumOfDifferencesFroml1:(CGFloat)L1 l2:(CGFloat)L2 a1:(CGFloat)A1 + a2:(CGFloat)A2 b1:(CGFloat)B1 b2:(CGFloat)B2 { + + //Get C Values in LCH from LAB Values + CGFloat C1 = sqrt(pow(A1, 2) + pow(B1, 2)); + CGFloat C2 = sqrt(pow(A2, 2) + pow(B2, 2)); + + //CIE Weights + CGFloat KL = 1; + CGFloat KC = 1; + CGFloat KH = 1; + + //Variables specifically set for CIE:2000 + CGFloat DeltaPrimeL = L2 - L1; + CGFloat MeanL = ((L1 + L2) / 2); + CGFloat MeanC = ((C1 + C2) / 2); + CGFloat A1Prime = A1 + A1 / 2 * (1 - sqrt(pow(MeanC, 7.0) / (pow(MeanC, 7.0) + pow(25.0, 7.0)))); + CGFloat A2Prime = A2 + A2 / 2 * (1 - sqrt(pow(MeanC, 7.0) / (pow(MeanC, 7.0) + pow(25.0, 7.0)))); + CGFloat C1Prime = sqrt(pow(A1Prime, 2) + pow(B1, 2)); + CGFloat C2Prime = sqrt(pow(A2Prime, 2) + pow(B2, 2)); + CGFloat DeltaPrimeC = C1Prime - C2Prime; + CGFloat DeltaC = C1 - C2; + CGFloat MeanCPrime = (C1Prime + C2Prime) / 2; + CGFloat H1Prime = fmodf(atan2(B1, A1Prime), (360.0 * M_PI/180)); + CGFloat H2Prime = fmodf(atan2(B2, A2Prime), (360.0 * M_PI/180)); + + //Run everything through our △H' Function + CGFloat hDeltaPrime = 0; + if (fabs(H1Prime - H2Prime) <= (180.0 * M_PI/180)) { + + hDeltaPrime = H2Prime - H1Prime; + + } else if (H2Prime <= H1Prime) { + + hDeltaPrime = (H2Prime - H1Prime) + ((360.0 * M_PI/180)); + + } else { + + hDeltaPrime = (H2Prime - H1Prime) - ((360.0 * M_PI/180)); + } + + CGFloat deltaHPrime = 2 * (sqrt(C1Prime*C2Prime)) * sin(hDeltaPrime/2); + + //Get Mean H' Value + CGFloat MeanHPrime = 0; + if (fabs(H1Prime-H2Prime) > (180.0 * M_PI/180)) { + + MeanHPrime = (H1Prime + H2Prime + (360.0 * M_PI/180)) / 2; + + } else { + + MeanHPrime = (H1Prime + H2Prime) / 2; + } + + CGFloat T = 1 - 0.17 * cos(MeanHPrime - (30.0 * M_PI/180)) + 0.24 * cos(2 * MeanHPrime)+0.32 * cos(3 * MeanHPrime + (6.0 * M_PI/180)) - 0.20 * cos(4 * MeanHPrime - (63.0 * M_PI/180)); + + CGFloat SL = 1 + (0.015 * pow((MeanL - 50), 2))/sqrt(20 + pow((MeanL - 50), 2)); + CGFloat SC = 1 + 0.045 * MeanCPrime; + CGFloat SH = 1 + 0.015 * MeanCPrime * T; + + CGFloat RT = -2 * sqrt(pow(MeanCPrime, 7) / (pow(MeanCPrime, 7) + pow(25.0, 7))) * sin((60.0 * M_PI/180)* exp(-1 * pow((MeanCPrime - (275.0 * M_PI/180)) / (25.0 * M_PI/180), 2))); + + + //Get total difference + CGFloat TotalDifference = sqrt(pow((DeltaPrimeL / (KL * SL)), 2) + pow((DeltaPrimeC / (KC * SC)), 2) + pow((deltaHPrime / (KH * SH)), 2) + RT * (DeltaC / (KC * SC)) * (deltaHPrime / (KH * SH))); + + return TotalDifference; +} + ++ (UIColor *)nearestFlatColorForL:(CGFloat)l1 A:(CGFloat)a1 B:(CGFloat)b1 alpha:(CGFloat)alpha{ + + //Keep track of our index + int index = 0; + + //Start with a random big number to make sure the first comparison gets saved. + float smallestDistance = 1000000; + float previousDistance = 1000000; + float currentDistance; + + //Our values + CGFloat l2, a2, b2; + + //We're interested in the color with values returning the smallest sum of total differences so we need to cross reference our input color's values with every flat color's values + for (int i=0; i<[[self flatColors] count]; i++ ) { + + //Check that index is not zero + if (i!=0 ) { + //Extract LAB values from colors in array and store it as the previous index + [[self flatColors][i - 1] getLightness:&l2 valueForA:&a2 valueForB:&b2 alpha:nil]; + + previousDistance = [self totalSumOfDifferencesFroml1:l1 l2:l2 + a1:a1 a2:a2 + b1:b1 b2:b2]; + } + + //Extract LAB values from colors in array and store it as the current index + [[self flatColors][i] getLightness:&l2 valueForA:&a2 valueForB:&b2 alpha:nil]; + + currentDistance = [self totalSumOfDifferencesFroml1:l1 l2:l2 + a1:a1 a2:a2 + b1:b1 b2:b2]; + + //We're only interested in the smallest difference + if (currentDistance < previousDistance) { + if (currentDistance < smallestDistance) { + smallestDistance = currentDistance; + index = i; + } + } + } + + + //Collect the RGB Values of the color where the smallest difference was found + CGFloat red, green, blue; + [[self flatColors][index] getRed:&red green:&green blue:&blue alpha:nil]; + + //Return the closest flat color + return rgba(red*255, green*255, blue*255, alpha); +} + +@end + +@implementation ChameleonCountedColor + +- (id)initWithColor:(UIColor *)color count:(NSUInteger)count { + + if ((self = [super init])) { + self.color = color; + self.count = count; + } + + return self; +} + +- (NSComparisonResult)compare:(ChameleonCountedColor *)object { + + if ([object isKindOfClass:[ChameleonCountedColor class]]) { + if (self.count < object.count) + return NSOrderedDescending; + else if (self.count == object.count) + return NSOrderedSame; + } + + return NSOrderedAscending; +} + + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h new file mode 100755 index 0000000..2d43ceb --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h @@ -0,0 +1,17 @@ +// +// UIAppearance+Swift.h +// Chameleon +// +// Created by Vicc Alexander on 11/26/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import + +@interface UIView (UIViewAppearance_Swift) + +// @param containers An array of Class < UIAppearanceContainer > +// http://stackoverflow.com/a/28765193 ++ (instancetype)appearanceWhenContainedWithin:(NSArray *)containers; + +@end \ No newline at end of file diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.m new file mode 100755 index 0000000..d0854a1 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.m @@ -0,0 +1,32 @@ +// +// UIAppearance+Swift.m +// Chameleon +// +// Created by Vicc Alexander on 11/26/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import "UIAppearance+Swift.h" + +@implementation UIView (UIViewAppearance_Swift) + ++ (instancetype)appearanceWhenContainedWithin: (NSArray *)containers { + + NSUInteger count = containers.count; + NSAssert(count <= 10, @"The count of containers greater than 10 is not supported."); + + return [self appearanceWhenContainedIn: + count > 0 ? containers[0] : nil, + count > 1 ? containers[1] : nil, + count > 2 ? containers[2] : nil, + count > 3 ? containers[3] : nil, + count > 4 ? containers[4] : nil, + count > 5 ? containers[5] : nil, + count > 6 ? containers[6] : nil, + count > 7 ? containers[7] : nil, + count > 8 ? containers[8] : nil, + count > 9 ? containers[9] : nil, + nil]; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h new file mode 100755 index 0000000..c0fecea --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h @@ -0,0 +1,15 @@ +// +// UIButton+Chameleon.h +// Chameleon +// +// Created by Vicc Alexander on 9/20/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import + +@interface UIButton (Chameleon) + +- (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.m new file mode 100755 index 0000000..a1e896f --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.m @@ -0,0 +1,23 @@ +// +// UIButton+Chameleon.m +// Chameleon +// +// Created by Vicc Alexander on 9/20/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import "UIButton+Chameleon.h" + +@implementation UIButton (Chameleon) + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +- (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR { + + self.font = [UIFont fontWithName:name size:self.font.pointSize]; +} + +#pragma GCC diagnostic pop + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h new file mode 100755 index 0000000..22d9b7c --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h @@ -0,0 +1,685 @@ + +// UIColor+Chameleon.h + +/* + + The MIT License (MIT) + + Copyright (c) 2014-2015 Vicc Alexander. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + */ + +#import +#import + +#pragma mark - Enums + +/** + * Defines the gradient style and direction of the gradient color. + * + * @since 1.0 + */ +typedef NS_ENUM (NSUInteger, UIGradientStyle) { + /** + * Returns a gradual blend between colors originating at the leftmost point of an object's frame, and ending at the rightmost point of the object's frame. + * + * @since 1.0 + */ + UIGradientStyleLeftToRight, + /** + * Returns a gradual blend between colors originating at the center of an object's frame, and ending at all edges of the object's frame. NOTE: Supports a Maximum of 2 Colors. + * + * @since 1.0 + */ + UIGradientStyleRadial, + /** + * Returns a gradual blend between colors originating at the topmost point of an object's frame, and ending at the bottommost point of the object's frame. + * + * @since 1.0 + */ + UIGradientStyleTopToBottom +}; + +/** + * Defines the shade of a any flat color. + * + * @since 1.0 + */ +typedef NS_ENUM (NSInteger, UIShadeStyle) { + /** + * Returns the light shade version of a flat color. + * + * @since 1.0 + */ + UIShadeStyleLight, + /** + * Returns the dark shade version of a flat color. + * + * @since 1.0 + */ + UIShadeStyleDark +}; + + +@interface UIColor (Chameleon) + +#pragma mark - Instance Variables + +/** + * Stores an object's UIColor image if the UIColor was created using colorWithPatternImage. + * + * @since 1.0 + */ + +@property (nonatomic, strong) UIImage *gradientImage; + +#pragma mark - Quick Shorthand Macros + +// Quick & Easy Shorthand for RGB x HSB Colors +// The reason we don't import our Macro file is to prevent naming conflicts. +#define rgba(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a] +#define rgb(r,g,b) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1.0] +#define hsba(h,s,b,a) [UIColor colorWithHue:h/360.0f saturation:s/100.0f brightness:b/100.0f alpha:a] +#define hsb(h,s,b) [UIColor colorWithHue:h/360.0f saturation:s/100.0f brightness:b/100.0f alpha:1.0] + +#pragma mark - Light Shades + +/** + * Returns a flat color object whose HSB values are 0.0, 0.0, 0.17 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBlackColor; + +/** + * Returns a flat color object whose HSB values are 0.62, 0.50, 0.63 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBlueColor; + +/** + * Returns a flat color object whose HSB values are 0.07, 0.45, 0.37 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBrownColor; + +/** + * Returns a flat color object whose HSB values are 0.07, 0.31, 0.64 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatCoffeeColor; + +/** + * Returns a flat color object whose HSB values are 0.38, 0.45, 0.37 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatForestGreenColor; + +/** + * Returns a flat color object whose HSB values are 0.51, 0.10, 0.65 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatGrayColor; + +/** + * Returns a flat color object whose HSB values are 0.40, 0.77, 0.80 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatGreenColor; + +/** + * Returns a flat color object whose HSB values are 0.21, 0.70, 0.78 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatLimeColor; + +/** + * Returns a flat color object whose HSB values are 0.79, 0.51, 0.71 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMagentaColor; + +/** + * Returns a flat color object whose HSB values are 0.01, 0.65, 0.47 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMaroonColor; + +/** + * Returns a flat color object whose HSB values are 0.47, 0.86, 0.74 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMintColor; + +/** + * Returns a flat color object whose HSB values are 0.58, 0.45, 0.37 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatNavyBlueColor; + +/** + * Returns a flat color object whose HSB values are 0.08, 0.85, 0.90 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatOrangeColor; + +/** + * Returns a flat color object whose HSB values are 0.90, 0.49, 0.96 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPinkColor; + +/** + * Returns a flat color object whose HSB values are 0.83, 0.45, 0.37 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPlumColor; + +/** + * Returns a flat color object whose HSB values are 0.62, 0.24, 0.95 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPowderBlueColor; + +/** + * Returns a flat color object whose HSB values are 0.70, 0.52, 0.77 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPurpleColor; + +/** + * Returns a flat color object whose HSB values are 0.02, 0.74, 0.91 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatRedColor; + +/** + * Returns a flat color object whose HSB values are 0.12, 0.25, 0.94 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatSandColor; + +/** + * Returns a flat color object whose HSB values are 0.57, 0.76, 0.86 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatSkyBlueColor; + +/** + * Returns a flat color object whose HSB values are 0.54, 0.55, 0.51 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatTealColor; + +/** + * Returns a flat color object whose HSB values are 0.99, 0.53, 0.94 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatWatermelonColor; + +/** + * Returns a flat color object whose HSB values are 0.53, 0.02, 0.95 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatWhiteColor; + +/** + * Returns a flat color object whose HSB values are 0.13, 0.99, 1.00 and whose alpha value is 1.0. + * + * @return A flat UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatYellowColor; + +#pragma mark - Dark Shades + +/** + * Returns a flat color object whose HSB values are 0.00, 0.00, 0.15 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBlackColorDark; + +/** + * Returns a flat color object whose HSB values are 0.62, 0.56, 0.51 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBlueColorDark; + +/** + * Returns a flat color object whose HSB values are 0.07, 0.45, 0.31 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatBrownColorDark; + +/** + * Returns a flat color object whose HSB values are 0.07, 0.34, 0.56 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatCoffeeColorDark; + +/** + * Returns a flat color object whose HSB values are 0.38, 0.44, 0.31 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatForestGreenColorDark; + +/** + * Returns a flat color object whose HSB values are 0.51, 0.10, 0.55 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatGrayColorDark; + +/** + * Returns a flat color object whose HSB values are 0.40, 0.78, 0.68 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatGreenColorDark; + +/** + * Returns a flat color object whose HSB values are 0.21, 0.81, 0.69 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatLimeColorDark; + +/** + * Returns a flat color object whose HSB values are 0.78, 0.61, 0.68 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMagentaColorDark; + +/** + * Returns a flat color object whose HSB values are 0.01, 0.68, 0.40 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMaroonColorDark; + +/** + * Returns a flat color object whose HSB values are 0.47, 0.86, 0.63 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatMintColorDark; + +/** + * Returns a flat color object whose HSB values are 0.58, 0.45, 0.31 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatNavyBlueColorDark; + +/** + * Returns a flat color object whose HSB values are 0.07, 1.00, 0.83 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatOrangeColorDark; + +/** + * Returns a flat color object whose HSB values are 0.91, 0.57, 0.83 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPinkColorDark; + +/** + * Returns a flat color object whose HSB values are 0.83, 0.46, 0.31 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPlumColorDark; + +/** + * Returns a flat color object whose HSB values are 0.62, 0.28, 0.84 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPowderBlueColorDark; + +/** + * Returns a flat color object whose HSB values are 0.70, 0.56, 0.64 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatPurpleColorDark; + +/** + * Returns a flat color object whose HSB values are 0.02, 0.78, 0.75 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatRedColorDark; + +/** + * Returns a flat color object whose HSB values are 0.12, 0.30, 0.84 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatSandColorDark; + +/** + * Returns a flat color object whose HSB values are 0.57, 0.78, 0.73 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatSkyBlueColorDark; + +/** + * Returns a flat color object whose HSB values are 0.54, 0.54, 0.45 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatTealColorDark; + +/** + * Returns a flat color object whose HSB values are 0.99, 0.61, 0.85 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatWatermelonColorDark; + +/** + * Returns a flat color object whose HSB values are 0.57, 0.05, 0.78 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatWhiteColorDark; + +/** + * Returns a flat color object whose HSB values are 0.11, 1.00, 1.00 and whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + */ ++ (UIColor *)flatYellowColorDark; + +#pragma mark - Randomizing Colors + +/** + * Returns a randomly generated flat color object whose alpha value is 1.0. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 1.0 + */ + ++ (UIColor *)randomFlatColor; + +/** + * @author Vicc Alexander + * + * Returns a randomly generated flat color object NOT found in the specified array. + * + * @param excludedColors An array specifying which colors NOT to return. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 2.1.0 + */ ++ (UIColor *)colorWithRandomFlatColorExcludingColorsInArray:(NSArray *)colors; + +/** + * @author Vicc Alexander + * + * Returns a randomly generated color object found in the specified array. + * + * @param colors An array specifying which colors to return. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 2.1.0 + */ ++ (UIColor *)colorWithRandomColorInArray:(NSArray *)colors; + +/** + * Returns a randomly generated flat color object with an alpha value of 1.0 in either a light or dark shade. + * + * @param shadeStyle Specifies whether the randomly generated flat color should be a light or dark shade. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 1.0 + */ ++ (UIColor *)colorWithRandomFlatColorOfShadeStyle:(UIShadeStyle)shadeStyle; + +/** + * Returns a randomly generated flat color object in either a light or dark shade. + * + * @param shadeStyle Specifies whether the randomly generated flat color should be a light or dark shade. + * @param alpha The opacity. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 2.0 + */ ++ (UIColor *)colorWithRandomFlatColorOfShadeStyle:(UIShadeStyle)shadeStyle withAlpha:(CGFloat)alpha; + +#pragma mark - Averaging a Color + +/** + * Returns the average color generated by averaging the colors of a specified image. + * + * @param image A specified @c UIImage. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 2.0 + */ ++ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image; + +/** + * Returns the average color generated by averaging the colors of a specified image. + * + * @param image A specified @c UIImage. + * @param alpha The opacity. + * + * @return A flat @c UIColor object in the HSB colorspace. + * + * @since 2.0 + */ ++ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image withAlpha:(CGFloat)alpha; + +#pragma mark - Complementary Colors + +/** + * Creates and returns a complementary flat color object 180 degrees away in the HSB colorspace from the specified color. + * + * @param color The color whose complementary color is being requested. + * + * @return A flat UIColor object in the HSB colorspace. + * + * @since 1.0 + */ + ++ (UIColor *)colorWithComplementaryFlatColorOf:(UIColor *)color; + +/** + * Creates and returns a complementary flat color object 180 degrees away in the HSB colorspace from the specified color. + * + * @param color The color whose complementary color is being requested. + * @param alpha The opacity. + * + * @return A flat UIColor object in the HSB colorspace. + * + * @since 2.0 + */ + ++ (UIColor *)colorWithComplementaryFlatColorOf:(UIColor *)color withAlpha:(CGFloat)alpha; + +#pragma mark - Contrasting Colors + +/** + * Creates and returns either a black or white color object depending on which contrasts more with a specified color. + * + * @param color The specified color of the contrast color that is being requested. + * @param isFlat Pass YES to return flat color objects. + * + * @return A UIColor object in the HSB colorspace. + * + * @since 1.0 + */ + ++ (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat; + +/** + * Creates and returns either a black or white color object depending on which contrasts more with a specified color. + * + * @param color The specified color of the contrast color that is being requested. + * @param isFlat Pass YES to return flat color objects. + * @param alpha The opacity. + * + * @return A UIColor object in the HSB colorspace. + * + * @since 2.0 + */ ++ (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat alpha:(CGFloat)alpha; + +#pragma mark - Gradient Colors + +/** + * Creates and returns a gradient as a color object with an alpha value of 1.0 + * + * @param gradientStyle Specifies the style and direction of the gradual blend between colors. + * @param frame The frame rectangle, which describes the view’s location and size in its superview’s coordinate system. + * @param colors An array of color objects used to create a gradient. + * + * @return A @c UIColor object using colorWithPattern. + * + * @since 2.0 + */ ++ (UIColor *)colorWithGradientStyle:(UIGradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray *)colors; + +#pragma mark - Colors from Hex Strings + +/** + * Creates and returns a @c UIColor object based on the specified hex string. + * + * @param string The hex string. + * + * @return A @c UIColor object in the RGB colorspace. + * + * + * @since 2.0 + */ ++ (UIColor *)colorWithHexString:(NSString *)string; + +/** + * Creates and returns a @c UIColor object based on the specified hex string. + * + * @param string The hex string. + * @param alpha The opacity. + * + * @return A @c UIColor object in the RGB colorspace. + * + * + * @since 2.0 + */ ++ (UIColor *)colorWithHexString:(NSString *)string withAlpha:(CGFloat)alpha; + +#pragma mark - Instance Methods + +/** + * Creates and returns a flat color object closest to the specified color in the LAB colorspace. + * + * @return A flat version of the specified @c UIColor. + * + * @since 2.0 + */ +- (UIColor *)flatten; + +/** + * Creates and returns a darker shade of a specified color in the HSB space. + * + * @param percentage The value with which to darken a specified color. + * + * @return A @c UIColor object in the HSB space. + * + * @since 2.0 + */ +- (UIColor *)darkenByPercentage:(CGFloat)percentage; + +/** + * @author Vicc Alexander + * + * Returns the hex string value for the specified color. + * + * @return An @NSString object. + * + * @since 2.1.0 + */ +- (NSString *)hexValue; + +/** + * Creates and returns a lighter shade of a specified color in the HSB space. + * + * @param percentage The value with which to lighten a specified color. + * + * @return A @c UIColor object in the HSB space. + * + * @since 2.0 + */ +- (UIColor *)lightenByPercentage:(CGFloat)percentage; + +#pragma mark - Deprecated Methods + +/** + * Creates and returns a flat color object closest to the specified color in the LAB colorspace. + * + * @param color The specified color of the flat color that is being requested. + * + * @return A flat UIColor object in the RGB colorspace. + * + * @since 1.0 + */ ++ (UIColor *)colorWithFlatVersionOf:(UIColor *)color __attribute((deprecated(" Use -flatten: instead (First deprecated in Chameleon 2.0)."))); + + +@end + diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.m new file mode 100755 index 0000000..934f760 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.m @@ -0,0 +1,1027 @@ + +// UIColor+Chameleon.m + +/* + + The MIT License (MIT) + + Copyright (c) 2014-2015 Vicc Alexander. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + */ + +#import "UIColor+Chameleon.h" +#import "UIColor+ChameleonPrivate.h" +#import "ChameleonMacros.h" +#import + +@implementation UIColor (Chameleon) + +@dynamic gradientImage; + +#pragma mark - Chameleon - Getter & Setter Methods for Instance Variables + ++ (void)setGradientImage:(UIImage *)gradientImage { + + objc_setAssociatedObject(self, @selector(gradientImage), gradientImage, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + ++ (UIImage *)gradientImage { + + return objc_getAssociatedObject(self, @selector(gradientImage)); +} + +#pragma mark - Chameleon - Light Shades + ++ (UIColor *)flatBlackColor { + return hsb(0, 0, 17); +} + ++ (UIColor *)flatBlueColor { + return hsb(224, 50, 63); +} + ++ (UIColor *)flatBrownColor { + return hsb(24, 45, 37); +} + ++ (UIColor *)flatCoffeeColor { + return hsb(25, 31, 64); +} + ++ (UIColor *)flatForestGreenColor { + return hsb(138, 45, 37); +} + ++ (UIColor *)flatGrayColor { + return hsb(184, 10, 65); +} + ++ (UIColor *)flatGreenColor { + return hsb(145, 77, 80); +} + ++ (UIColor *)flatLimeColor { + return hsb(74, 70, 78); +} + ++ (UIColor *)flatMagentaColor { + return hsb(283, 51, 71); +} + ++ (UIColor *)flatMaroonColor { + return hsb(5, 65, 47); +} + ++ (UIColor *)flatMintColor { + return hsb(168, 86, 74); +} + ++ (UIColor *)flatNavyBlueColor { + return hsb(210, 45, 37); +} + ++ (UIColor *)flatOrangeColor { + return hsb(28, 85, 90); +} + ++ (UIColor *)flatPinkColor { + return hsb(324, 49, 96); +} + ++ (UIColor *)flatPlumColor { + return hsb(300, 45, 37); +} + ++ (UIColor *)flatPowderBlueColor { + return hsb(222, 24, 95); +} + ++ (UIColor *)flatPurpleColor { + return hsb(253, 52, 77); +} + ++ (UIColor *)flatRedColor { + return hsb(6, 74, 91); +} + ++ (UIColor *)flatSandColor { + return hsb(42, 25, 94); +} + ++ (UIColor *)flatSkyBlueColor { + return hsb(204, 76, 86); +} + ++ (UIColor *)flatTealColor { + return hsb(195, 55, 51); +} + ++ (UIColor *)flatWatermelonColor { + return hsb(356, 53, 94); +} + ++ (UIColor *)flatWhiteColor { + return hsb(192, 2, 95); +} + ++ (UIColor *)flatYellowColor { + return hsb(48, 99, 100); +} + +#pragma mark - Chameleon - Dark Shades + ++ (UIColor *)flatBlackColorDark { + return hsb(0, 0, 15); +} + ++ (UIColor *)flatBlueColorDark { + return hsb(224, 56, 51); +} + ++ (UIColor *)flatBrownColorDark { + return hsb(25, 45, 31); +} + ++ (UIColor *)flatCoffeeColorDark { + return hsb(25, 34, 56); +} + ++ (UIColor *)flatForestGreenColorDark { + return hsb(135, 44, 31); +} + ++ (UIColor *)flatGrayColorDark { + return hsb(184, 10, 55); +} + ++ (UIColor *)flatGreenColorDark { + return hsb(145, 78, 68); +} + ++ (UIColor *)flatLimeColorDark { + return hsb(74, 81, 69); +} + ++ (UIColor *)flatMagentaColorDark { + return hsb(282, 61, 68); +} + ++ (UIColor *)flatMaroonColorDark { + return hsb(4, 68, 40); +} + ++ (UIColor *)flatMintColorDark { + return hsb(168, 86, 63); +} + ++ (UIColor *)flatNavyBlueColorDark { + return hsb(210, 45, 31); +} + ++ (UIColor *)flatOrangeColorDark { + return hsb(24, 100, 83); +} + ++ (UIColor *)flatPinkColorDark { + return hsb(327, 57, 83); +} + ++ (UIColor *)flatPlumColorDark { + return hsb(300, 46, 31); +} + ++ (UIColor *)flatPowderBlueColorDark { + return hsb(222, 28, 84); +} + ++ (UIColor *)flatPurpleColorDark { + return hsb(253, 56, 64); +} + ++ (UIColor *)flatRedColorDark { + return hsb(6, 78, 75); +} + ++ (UIColor *)flatSandColorDark { + return hsb(42, 30, 84); +} + ++ (UIColor *)flatSkyBlueColorDark { + return hsb(204, 78, 73); +} + ++ (UIColor *)flatTealColorDark { + return hsb(196, 54, 45); +} + ++ (UIColor *)flatWatermelonColorDark { + return hsb(358, 61, 85); +} + ++ (UIColor *)flatWhiteColorDark { + return hsb(204, 5, 78); +} + ++ (UIColor *)flatYellowColorDark { + return hsb(40, 100, 100); +} + +#pragma mark - Chameleon - "Color With" Methods + ++ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image { + + return [self colorWithAverageColorFromImage:image withAlpha:1.0]; +} + ++ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image withAlpha:(CGFloat)alpha { + + //Work within the RGB colorspoace + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); + unsigned char rgba[4]; + CGContextRef context = CGBitmapContextCreate(rgba, 1, 1, 8, 4, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); + + //Draw our image down to 1x1 pixels + CGContextDrawImage(context, CGRectMake(0, 0, 1, 1), image.CGImage); + CGColorSpaceRelease(colorSpace); + CGContextRelease(context); + + //Check if image alpha is 0 + if (rgba[3] == 0) { + + CGFloat imageAlpha = ((CGFloat)rgba[3])/255.0; + CGFloat multiplier = imageAlpha/255.0; + + UIColor *averageColor = [UIColor colorWithRed:((CGFloat)rgba[0])*multiplier green:((CGFloat)rgba[1])*multiplier blue:((CGFloat)rgba[2])*multiplier alpha:imageAlpha]; + + //Improve color + averageColor = [averageColor colorWithMinimumSaturation:0.15]; + + //Return average color + return averageColor; + } + + else { + + //Get average + UIColor *averageColor = [UIColor colorWithRed:((CGFloat)rgba[0])/255.0 green:((CGFloat)rgba[1])/255.0 blue:((CGFloat)rgba[2])/255.0 alpha:alpha]; + + //Improve color + averageColor = [averageColor colorWithMinimumSaturation:0.15]; + + //Return average color + return averageColor; + } +} + ++ (UIColor *)colorWithComplementaryFlatColorOf:(UIColor *)color { + + return [[self class] colorWithComplementaryFlatColorOf:color withAlpha:1.0]; +} + ++ (UIColor *)colorWithComplementaryFlatColorOf:(UIColor *)color withAlpha:(CGFloat)alpha { + + //Check if input UIColor is a gradient aka a pattern + if (CGColorGetPattern(color.CGColor)) { + + //Let's find the average color of the image and contrast against that. + CGSize size = {1, 1}; + + //Create a 1x1 bitmap context + UIGraphicsBeginImageContext(size); + CGContextRef ctx = UIGraphicsGetCurrentContext(); + + //Set the interpolation quality to medium + CGContextSetInterpolationQuality(ctx, kCGInterpolationMedium); + + //Draw image scaled down to this 1x1 pixel + [[self gradientImage] drawInRect:(CGRect){.size = size} blendMode:kCGBlendModeCopy alpha:1]; + + //Read the RGB values from the context's buffer + uint8_t *data = CGBitmapContextGetData(ctx); + color = [UIColor colorWithRed:data[2] / 255.0f + green:data[1] / 255.0f + blue:data[0] / 255.0f + alpha:1]; + UIGraphicsEndImageContext(); + } + + //Extract & Check to make sure we have an actual color to work with (Clear returns clear) + CGFloat hue, saturation, brightness, alpha1; + [color getHue:&hue saturation:&saturation brightness:&brightness alpha:&alpha1]; + + //Check if color is transparent + if (alpha1 == 0) { + return [UIColor clearColor]; + } + + //Multiply our value by their max values to convert + hue *= 360; + saturation *= 100; + brightness *= 100; + + //Select a color with a hue 180 degrees away on the colorwheel (i.e. for 50 it would be 230). + hue += 180.0f; + if (hue > 360.f) { + hue -= 360.0f; + } + + //Round to the nearest whole number after multiplying + hue = roundf(hue); + saturation = roundf(saturation); + brightness = roundf(brightness); + + //Store complimentary nonflat color + UIColor *complimentaryNonFlatColor = [UIColor colorWithHue:hue/360.0 + saturation:saturation/100.0 + brightness:brightness/100.0 + alpha:alpha]; + + //Retrieve LAB values from our complimentary nonflat color & return nearest flat color + return [self colorWithFlatVersionOf:complimentaryNonFlatColor withAlpha:alpha]; +} + + ++ (UIColor *)colorWithFlatVersionOf:(UIColor *)color { + + //Return flat version with default alpha of 1.0 + return [[self class] colorWithFlatVersionOf:color withAlpha:1.0]; +} + ++ (UIColor *)colorWithFlatVersionFrom:(UIColor *)color { + CGFloat colorAlpha = 0; + [color getLightness:nil valueForA:nil valueForB:nil alpha:&colorAlpha]; + colorAlpha = colorAlpha > 0.0 ? colorAlpha : 1.0; + //Return flat version with default alpha of 1.0 + return [[self class] colorWithFlatVersionOf:color withAlpha:colorAlpha]; +} + ++ (UIColor *)colorWithFlatVersionOf:(UIColor *)color withAlpha:(CGFloat)alpha { + + //Check if input UIColor is a gradient aka a pattern + if (CGColorGetPattern(color.CGColor)) { + + //Let's find the average color of the image and contrast against that. + CGSize size = {1, 1}; + + //Create a 1x1 bitmap context + UIGraphicsBeginImageContext(size); + CGContextRef ctx = UIGraphicsGetCurrentContext(); + + //Set the interpolation quality to medium + CGContextSetInterpolationQuality(ctx, kCGInterpolationMedium); + + //Draw image scaled down to this 1x1 pixel + [[self gradientImage] drawInRect:(CGRect){.size = size} blendMode:kCGBlendModeCopy alpha:1]; + + //Read the RGB values from the context's buffer + uint8_t *data = CGBitmapContextGetData(ctx); + color = [UIColor colorWithRed:data[2] / 255.0f + green:data[1] / 255.0f + blue:data[0] / 255.0f + alpha:1]; + UIGraphicsEndImageContext(); + } + + //Create CGFloats to hold our color values + CGFloat L, A, B, alpha1; + + //Get LAB values for our color + [color getLightness:&L valueForA:&A valueForB:&B alpha:&alpha1]; + + if (![color getLightness:&L valueForA:&A valueForB:&B alpha:&alpha1]) { + return nil; + } + + //Find the nearest flat color + return [self nearestFlatColorForL:L A:A B:B alpha:alpha]; +} + ++ (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat { + + //Return color with default alpha value of 1.0 + return [[self class] colorWithContrastingBlackOrWhiteColorOn:backgroundColor isFlat:flat alpha:1.0]; +} + ++ (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor + isFlat:(BOOL)flat + alpha:(CGFloat)alpha { + + //Check if UIColor is a gradient aka a pattern + if (CGColorGetPattern(backgroundColor.CGColor)) { + + //Let's find the average color of the image and contrast against that. + CGSize size = {1, 1}; + + //Create a 1x1 bitmap context + UIGraphicsBeginImageContext(size); + CGContextRef ctx = UIGraphicsGetCurrentContext(); + + //Set the interpolation quality to medium + CGContextSetInterpolationQuality(ctx, kCGInterpolationMedium); + + //Draw image scaled down to this 1x1 pixel + [[self gradientImage] drawInRect:(CGRect){.size = size} blendMode:kCGBlendModeCopy alpha:1]; + + //Read the RGB values from the context's buffer + uint8_t *data = CGBitmapContextGetData(ctx); + backgroundColor = [UIColor colorWithRed:data[2] / 255.0f + green:data[1] / 255.0f + blue:data[0] / 255.0f + alpha:1]; + UIGraphicsEndImageContext(); + } + + //Calculate Luminance + CGFloat luminance; + CGFloat red = 0.0, green = 0.0, blue = 0.0, alpha1 = 0.0; + [backgroundColor getRed:&red green:&green blue:&blue alpha:&alpha1]; + + //Check if color is transparent + if (alpha == 0) { + return [UIColor clearColor]; + } + + // Relative luminance in colorimetric spaces - http://en.wikipedia.org/wiki/Luminance_(relative) + red *= 0.2126f; green *= 0.7152f; blue *= 0.0722f; + luminance = red + green + blue; + + if (flat == NO) { + return (luminance > 0.6f) ? rgba(0, 0, 0, alpha) : rgba(255, 255, 255, alpha); + } else { + return (luminance > 0.6f) ? hsba(0, 0, 15, alpha) : hsba(192, 2, 95, alpha); + } +} + ++ (UIColor *)colorWithGradientStyle:(UIGradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray *)colors; { + + //Create our background gradient layer + CAGradientLayer *backgroundGradientLayer = [CAGradientLayer layer]; + + //Set the frame to our object's bounds + backgroundGradientLayer.frame = frame; + + //To simplfy formatting, we'll iterate through our colors array and create a mutable array with their CG counterparts + NSMutableArray *cgColors = [[NSMutableArray alloc] init]; + for (UIColor *color in colors) { + [cgColors addObject:(id)[color CGColor]]; + } + + switch (gradientStyle) { + case UIGradientStyleLeftToRight: { + + //Set out gradient's colors + backgroundGradientLayer.colors = cgColors; + + //Specify the direction our gradient will take + [backgroundGradientLayer setStartPoint:CGPointMake(0.0, 0.5)]; + [backgroundGradientLayer setEndPoint:CGPointMake(1.0, 0.5)]; + + //Convert our CALayer to a UIImage object + UIGraphicsBeginImageContextWithOptions(backgroundGradientLayer.bounds.size,NO, [UIScreen mainScreen].scale); + [backgroundGradientLayer renderInContext:UIGraphicsGetCurrentContext()]; + UIImage *backgroundColorImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + + [self setGradientImage:backgroundColorImage]; + return [UIColor colorWithPatternImage:backgroundColorImage]; + } + + case UIGradientStyleRadial: { + UIGraphicsBeginImageContextWithOptions(frame.size,NO, [UIScreen mainScreen].scale); + + //Specific the spread of the gradient (For now this gradient only takes 2 locations) + CGFloat locations[2] = {0.0, 1.0}; + + //Default to the RGB Colorspace + CGColorSpaceRef myColorspace = CGColorSpaceCreateDeviceRGB(); + CFArrayRef arrayRef = (__bridge CFArrayRef)cgColors; + + //Create our Fradient + CGGradientRef myGradient = CGGradientCreateWithColors(myColorspace, arrayRef, locations); + + + // Normalise the 0-1 ranged inputs to the width of the image + CGPoint myCentrePoint = CGPointMake(0.5 * frame.size.width, 0.5 * frame.size.height); + float myRadius = MIN(frame.size.width, frame.size.height) * 1.0; + + // Draw our Gradient + CGContextDrawRadialGradient (UIGraphicsGetCurrentContext(), myGradient, myCentrePoint, + 0, myCentrePoint, myRadius, + kCGGradientDrawsAfterEndLocation); + + // Grab it as an Image + UIImage *backgroundColorImage = UIGraphicsGetImageFromCurrentImageContext(); + + // Clean up + CGColorSpaceRelease(myColorspace); // Necessary? + CGGradientRelease(myGradient); // Necessary? + UIGraphicsEndImageContext(); + + [self setGradientImage:backgroundColorImage]; + return [UIColor colorWithPatternImage:backgroundColorImage]; + } + + case UIGradientStyleTopToBottom: + default: { + + //Set out gradient's colors + backgroundGradientLayer.colors = cgColors; + + //Convert our CALayer to a UIImage object + UIGraphicsBeginImageContextWithOptions(backgroundGradientLayer.bounds.size,NO, [UIScreen mainScreen].scale); + [backgroundGradientLayer renderInContext:UIGraphicsGetCurrentContext()]; + UIImage *backgroundColorImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + + [self setGradientImage:backgroundColorImage]; + return [UIColor colorWithPatternImage:backgroundColorImage]; + } + + } +} + ++ (UIColor *)colorWithHexString:(NSString *)string { + + //Color with string and a defualt alpha value of 1.0 + return [self colorWithHexString:string withAlpha:1.0]; +} + ++ (UIColor *)colorWithHexString:(NSString *)string withAlpha:(CGFloat)alpha { + + //Quick return in case string is empty + if (string.length == 0) { + return nil; + } + + //Check to see if we need to add a hashtag + if('#' != [string characterAtIndex:0]) { + string = [NSString stringWithFormat:@"#%@", string]; + } + + //Make sure we have a working string length + if (string.length != 7 && string.length != 4) { + + #ifdef DEBUG + NSLog(@"Unsupported string format: %@", string); + #endif + + return nil; + } + + //Check for short hex strings + if(string.length == 4) { + + //Convert to full length hex string + string = [NSString stringWithFormat:@"#%@%@%@%@%@%@", + [string substringWithRange:NSMakeRange(1, 1)],[string substringWithRange:NSMakeRange(1, 1)], + [string substringWithRange:NSMakeRange(2, 1)],[string substringWithRange:NSMakeRange(2, 1)], + [string substringWithRange:NSMakeRange(3, 1)],[string substringWithRange:NSMakeRange(3, 1)]]; + } + + NSString *redHex = [NSString stringWithFormat:@"0x%@", [string substringWithRange:NSMakeRange(1, 2)]]; + unsigned red = [[self class] hexValueToUnsigned:redHex]; + + NSString *greenHex = [NSString stringWithFormat:@"0x%@", [string substringWithRange:NSMakeRange(3, 2)]]; + unsigned green = [[self class] hexValueToUnsigned:greenHex]; + + NSString *blueHex = [NSString stringWithFormat:@"0x%@", [string substringWithRange:NSMakeRange(5, 2)]]; + unsigned blue = [[self class] hexValueToUnsigned:blueHex]; + + return [UIColor colorWithRed:(float)red/255 green:(float)green/255 blue:(float)blue/255 alpha:alpha]; +} + ++ (unsigned)hexValueToUnsigned:(NSString *)hexValue { + + //Define default unsigned value + unsigned value = 0; + + //Scan unsigned value + NSScanner *hexValueScanner = [NSScanner scannerWithString:hexValue]; + [hexValueScanner scanHexInt:&value]; + + //Return found value + return value; +} + +#pragma mark - Chameleon - Random Color Methods + ++ (NSInteger)generateRandomNumberWithMax:(NSInteger)max { + + //Choose a random number between 0 and our number of available colors + return arc4random_uniform((UInt32)max); +} + ++ (UIColor *)randomFlatColor { + + //Number of colors to choose from + const uint32_t numberOfPossibleColors = 48; + + //Chose one of those colors at random + NSInteger randomColorChosen = [[self class] generateRandomNumberWithMax:numberOfPossibleColors]; + + //Check if a previous random number exists + if (![[NSUserDefaults standardUserDefaults] integerForKey:@"previousRandomNumber"]) { + + //If no previous number exists, save it as such and find the matching color + [[NSUserDefaults standardUserDefaults] setInteger:randomColorChosen forKey:@"previousRandomNumber"]; + [[NSUserDefaults standardUserDefaults] synchronize]; + + } else { + + //Keep generating a random number until it is different than the one generated last time + while (randomColorChosen == [[NSUserDefaults standardUserDefaults] integerForKey:@"previousRandomNumber"]) { + randomColorChosen = [[self class] generateRandomNumberWithMax:numberOfPossibleColors]; + } + + //Once a new number has been generated then store it as the previous number for next time and proceed + [[NSUserDefaults standardUserDefaults] setInteger:randomColorChosen forKey:@"previousRandomNumber"]; + [[NSUserDefaults standardUserDefaults] synchronize]; + } + + return [self flatColors][randomColorChosen]; +} + ++ (UIColor *)colorWithRandomColorInArray:(NSArray *)colors { + + UIColor *randomColor; + if (colors.count) { + + //Pick a random index + NSInteger randomIndex = arc4random() % colors.count; + + //Return the color at the random index + randomColor = colors[randomIndex]; + + } else { + return nil; + } + + NSAssert([randomColor isKindOfClass:[UIColor class]], @"Hmm... one of your objects in your 'colors' array is not a UIColor object."); + + //Return + return randomColor; +} + ++ (UIColor *)colorWithRandomFlatColorExcludingColorsInArray:(NSArray *)colors { + + //Set random flat color + UIColor *randomColor = [[self class] randomFlatColor]; + + //If the selected color is blacklisted select a new color + while ([colors containsObject:randomColor]) { + randomColor = [[self class] randomFlatColor]; + } + + //Return + return randomColor; +} + ++ (UIColor *)colorWithRandomFlatColorOfShadeStyle:(UIShadeStyle)shadeStyle { + + //Return color with default alpha value of 1.0 + return [[self class] colorWithRandomFlatColorOfShadeStyle:shadeStyle withAlpha:1.0]; +} + ++ (UIColor *)colorWithRandomFlatColorOfShadeStyle:(UIShadeStyle)shadeStyle withAlpha:(CGFloat)alpha { + + //Number of colors to choose from + const NSInteger numberOfPossibleColors = 24; + + //Chose one of those colors at random + NSInteger randomColorChosen = [[self class] generateRandomNumberWithMax:numberOfPossibleColors]; + + //Check if a previous random number exists + if (![[NSUserDefaults standardUserDefaults] integerForKey:@"previousRandomNumber"]) { + + //If no previous number exists, save it as such and find the matching color + [[NSUserDefaults standardUserDefaults] setInteger:randomColorChosen forKey:@"previousRandomNumber"]; + [[NSUserDefaults standardUserDefaults] synchronize]; + + } else { + + //Keep generating a random number until it is different than the one generated last time + while (randomColorChosen == [[NSUserDefaults standardUserDefaults] integerForKey:@"previousRandomNumber"]) { + randomColorChosen = [[self class] generateRandomNumberWithMax:numberOfPossibleColors]; + } + + //Once a new number has been generated then store it as the previous number for next time and proceed + [[NSUserDefaults standardUserDefaults] setInteger:randomColorChosen forKey:@"previousRandomNumber"]; + [[NSUserDefaults standardUserDefaults] synchronize]; + } + + //Assign a random color based on randomColorChosen + UIColor *randomColor; + + //Return a color depending on the specified shade + switch (shadeStyle) { + case UIShadeStyleDark: { + + NSArray *darkColors = @[FlatBlackDark, FlatBlueDark, FlatBrownDark, FlatCoffeeDark, FlatForestGreenDark, FlatGrayDark, FlatGreenDark, FlatLimeDark, FlatMagentaDark, FlatMaroonDark, FlatMintDark, FlatNavyBlueDark, FlatOrangeDark, FlatPinkDark, FlatPlumDark, FlatPowderBlueDark, FlatPurpleDark, FlatRedDark, FlatSandDark, FlatSkyBlueDark, FlatTealDark, FlatWatermelonDark, FlatWhiteDark, FlatYellowDark]; + + randomColor = darkColors[randomColorChosen]; + break; + } + + case UIShadeStyleLight: + default: { + + NSArray *lightColors = @[FlatBlack, FlatBlue, FlatBrown, FlatCoffee, FlatForestGreen, FlatGray, FlatGreen, FlatLime, FlatMagenta, FlatMaroon, FlatMint, FlatNavyBlue, FlatOrange, FlatPink, FlatPlum, FlatPowderBlue, FlatPurple, FlatRed, FlatSand, FlatSkyBlue, FlatTeal, FlatWatermelon, FlatWhite, FlatYellow]; + + randomColor = lightColors[randomColorChosen]; + break; + } + } + + //Return color with correct alpha value + randomColor = [randomColor colorWithAlphaComponent:alpha]; + + return randomColor; +} + +#pragma mark - Chameleon Instance Methods + +- (UIColor *)flatten { + + return [UIColor colorWithFlatVersionFrom:self]; +} + +- (UIColor *)darkenByPercentage:(CGFloat)percentage { + + //Define HSBA values + CGFloat h, s, b, a; + + //Check if HSBA values exist + if ([self getHue:&h saturation:&s brightness:&b alpha:&a]) { + + //Make sure our percentage is greater than 0 + if (percentage > 0) { + b = MIN(b - percentage, 1.0); + } + + //Return darker color + return [UIColor colorWithHue:h saturation:s brightness:b alpha:a]; + } + + return nil; +} + +- (NSString *)hexValue { + + UIColor *currentColor = self; + if (CGColorGetNumberOfComponents(self.CGColor) < 4) { + const CGFloat *components = CGColorGetComponents(self.CGColor); + currentColor = [UIColor colorWithRed:components[0] green:components[0] blue:components[0] alpha:components[1]]; + } + + if (CGColorSpaceGetModel(CGColorGetColorSpace(currentColor.CGColor)) != kCGColorSpaceModelRGB) { + return [NSString stringWithFormat:@"#FFFFFF"]; + } + + return [NSString stringWithFormat:@"#%02X%02X%02X", (int)((CGColorGetComponents(currentColor.CGColor))[0]*255.0), (int)((CGColorGetComponents(currentColor.CGColor))[1]*255.0), (int)((CGColorGetComponents(currentColor.CGColor))[2]*255.0)]; + +} + +- (UIColor *)lightenByPercentage:(CGFloat)percentage { + + //Define HSBA values + CGFloat h, s, b, a; + + //Check if HSBA values exist + if ([self getHue:&h saturation:&s brightness:&b alpha:&a]) { + + //Make sure our percentage is greater than 0 + if (percentage > 0) { + b = MIN(b + percentage, 1.0); + } + + //Return lighter color + return [UIColor colorWithHue:h saturation:s brightness:b alpha:a]; + } + + return nil; +} + +- (BOOL)isEqualToColor:(UIColor *)color { + + //Check if both colors are in the Monochrome / RGB color space + if ([self isMonochromeOrRGB] && [color isMonochromeOrRGB]) { + + //Return comparison + return self.RGBAValue == color.RGBAValue; + } + + //Return comparison + return [self isEqual:color]; +} + +#pragma mark - Chameleon Internal Methods + +//Array of all our colors ++ (NSArray *)flatColors { + + return @[FlatBlack, FlatBlackDark, FlatBlue, FlatBlueDark, FlatBrown, FlatBrownDark, FlatCoffee, FlatCoffeeDark, FlatForestGreen, FlatForestGreenDark, FlatGray, FlatGrayDark, FlatGreen, FlatGreenDark, FlatLime, FlatLimeDark, FlatMagenta, FlatMagentaDark, FlatMaroon, FlatMaroonDark, FlatMint, FlatMintDark, FlatNavyBlue, FlatNavyBlueDark, FlatOrange, FlatOrangeDark, FlatPink, FlatPinkDark, FlatPlum, FlatPlumDark, FlatPowderBlue, FlatPowderBlueDark, FlatPurple, FlatPurpleDark, FlatRed, FlatRedDark, FlatSand, FlatSandDark, FlatSkyBlue, FlatSkyBlueDark, FlatTeal, FlatTealDark, FlatWatermelon, FlatWatermelonDark, FlatWhite, FlatWhiteDark, FlatYellow, FlatYellowDark]; +} + +- (uint32_t)RGBAValue { + + CGFloat rgba[4]; + [self getRGBAComponents:rgba]; + uint8_t red = rgba[0]*255; + uint8_t green = rgba[1]*255; + uint8_t blue = rgba[2]*255; + uint8_t alpha = rgba[3]*255; + + return (red << 24) + (green << 16) + (blue << 8) + alpha; +} + +- (void)getRGBAComponents:(CGFloat[4])rgba { + + CGColorSpaceModel model = CGColorSpaceGetModel(CGColorGetColorSpace(self.CGColor)); + const CGFloat *components = CGColorGetComponents(self.CGColor); + switch (model) { + + case kCGColorSpaceModelMonochrome: { + rgba[0] = components[0]; + rgba[1] = components[0]; + rgba[2] = components[0]; + rgba[3] = components[1]; + break; + } + + case kCGColorSpaceModelRGB: { + rgba[0] = components[0]; + rgba[1] = components[1]; + rgba[2] = components[2]; + rgba[3] = components[3]; + break; + } + + case kCGColorSpaceModelCMYK: + case kCGColorSpaceModelDeviceN: + case kCGColorSpaceModelIndexed: + case kCGColorSpaceModelLab: + case kCGColorSpaceModelPattern: + case kCGColorSpaceModelUnknown: { + + #ifdef DEBUG + NSLog(@"Unsupported color model: %i", model); + #endif + + rgba[0] = 0.0f; + rgba[1] = 0.0f; + rgba[2] = 0.0f; + rgba[3] = 1.0f; + break; + } + } +} + +//Check if color is in the monochrome or rgb color space +- (BOOL)isMonochromeOrRGB { + + CGColorSpaceModel model = CGColorSpaceGetModel(CGColorGetColorSpace(self.CGColor)); + return model == kCGColorSpaceModelMonochrome || model == kCGColorSpaceModelRGB; +} + +//Calculate the total sum of differences - Euclidian distance +//Chameleon is now using the CIEDE2000 formula to calculate distances between 2 colors. +//More info: http://en.wikipedia.org/wiki/Color_difference ++ (float)totalSumOfDifferencesFroml1:(CGFloat)L1 l2:(CGFloat)L2 a1:(CGFloat)A1 + a2:(CGFloat)A2 b1:(CGFloat)B1 b2:(CGFloat)B2 { + + //Get C Values in LCH from LAB Values + CGFloat C1 = sqrt(pow(A1, 2) + pow(B1, 2)); + CGFloat C2 = sqrt(pow(A2, 2) + pow(B2, 2)); + + //CIE Weights + CGFloat KL = 1; + CGFloat KC = 1; + CGFloat KH = 1; + + //Variables specifically set for CIE:2000 + CGFloat DeltaPrimeL = L2 - L1; + CGFloat MeanL = ((L1 + L2) / 2); + CGFloat MeanC = ((C1 + C2) / 2); + CGFloat A1Prime = A1 + A1 / 2 * (1 - sqrt(pow(MeanC, 7.0) / (pow(MeanC, 7.0) + pow(25.0, 7.0)))); + CGFloat A2Prime = A2 + A2 / 2 * (1 - sqrt(pow(MeanC, 7.0) / (pow(MeanC, 7.0) + pow(25.0, 7.0)))); + CGFloat C1Prime = sqrt(pow(A1Prime, 2) + pow(B1, 2)); + CGFloat C2Prime = sqrt(pow(A2Prime, 2) + pow(B2, 2)); + CGFloat DeltaPrimeC = C1Prime - C2Prime; + CGFloat DeltaC = C1 - C2; + CGFloat MeanCPrime = (C1Prime + C2Prime) / 2; + CGFloat H1Prime = fmodf(atan2(B1, A1Prime), (360.0 * M_PI/180)); + CGFloat H2Prime = fmodf(atan2(B2, A2Prime), (360.0 * M_PI/180)); + + //Run everything through our △H' Function + CGFloat hDeltaPrime = 0; + if (fabs(H1Prime - H2Prime) <= (180.0 * M_PI/180)) { + + hDeltaPrime = H2Prime - H1Prime; + + } else if (H2Prime <= H1Prime) { + + hDeltaPrime = (H2Prime - H1Prime) + ((360.0 * M_PI/180)); + + } else { + + hDeltaPrime = (H2Prime - H1Prime) - ((360.0 * M_PI/180)); + } + + CGFloat deltaHPrime = 2 * (sqrt(C1Prime*C2Prime)) * sin(hDeltaPrime/2); + + //Get Mean H' Value + CGFloat MeanHPrime = 0; + if (fabs(H1Prime-H2Prime) > (180.0 * M_PI/180)) { + + MeanHPrime = (H1Prime + H2Prime + (360.0 * M_PI/180)) / 2; + + } else { + + MeanHPrime = (H1Prime + H2Prime) / 2; + } + + CGFloat T = 1 - 0.17 * cos(MeanHPrime - (30.0 * M_PI/180)) + 0.24 * cos(2 * MeanHPrime)+0.32 * cos(3 * MeanHPrime + (6.0 * M_PI/180)) - 0.20 * cos(4 * MeanHPrime - (63.0 * M_PI/180)); + + CGFloat SL = 1 + (0.015 * pow((MeanL - 50), 2))/sqrt(20 + pow((MeanL - 50), 2)); + CGFloat SC = 1 + 0.045 * MeanCPrime; + CGFloat SH = 1 + 0.015 * MeanCPrime * T; + + CGFloat RT = -2 * sqrt(pow(MeanCPrime, 7) / (pow(MeanCPrime, 7) + pow(25.0, 7))) * sin((60.0 * M_PI/180)* exp(-1 * pow((MeanCPrime - (275.0 * M_PI/180)) / (25.0 * M_PI/180), 2))); + + + //Get total difference + CGFloat TotalDifference = sqrt(pow((DeltaPrimeL / (KL * SL)), 2) + pow((DeltaPrimeC / (KC * SC)), 2) + pow((deltaHPrime / (KH * SH)), 2) + RT * (DeltaC / (KC * SC)) * (deltaHPrime / (KH * SH))); + + return TotalDifference; +} + ++ (UIColor *)nearestFlatColorForL:(CGFloat)l1 A:(CGFloat)a1 B:(CGFloat)b1 alpha:(CGFloat)alpha{ + + //Keep track of our index + int index = 0; + + //Start with a random big number to make sure the first comparison gets saved. + float smallestDistance = 1000000; + float previousDistance = 1000000; + float currentDistance; + + //Our values + CGFloat l2, a2, b2; + + //We're interested in the color with values returning the smallest sum of total differences so we need to cross reference our input color's values with every flat color's values + for (int i=0; i<[[self flatColors] count]; i++ ) { + + //Check that index is not zero + if (i!=0 ) { + //Extract LAB values from colors in array and store it as the previous index + [[self flatColors][i - 1] getLightness:&l2 valueForA:&a2 valueForB:&b2 alpha:nil]; + + previousDistance = [self totalSumOfDifferencesFroml1:l1 l2:l2 + a1:a1 a2:a2 + b1:b1 b2:b2]; + } + + //Extract LAB values from colors in array and store it as the current index + [[self flatColors][i] getLightness:&l2 valueForA:&a2 valueForB:&b2 alpha:nil]; + + currentDistance = [self totalSumOfDifferencesFroml1:l1 l2:l2 + a1:a1 a2:a2 + b1:b1 b2:b2]; + + //We're only interested in the smallest difference + if (currentDistance < previousDistance) { + if (currentDistance < smallestDistance) { + smallestDistance = currentDistance; + index = i; + } + } + } + + + //Collect the RGB Values of the color where the smallest difference was found + CGFloat red, green, blue; + [[self flatColors][index] getRed:&red green:&green blue:&blue alpha:nil]; + + //Return the closest flat color + return rgba(red * 255, green * 255, blue * 255, alpha); +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h new file mode 100755 index 0000000..f81e69a --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h @@ -0,0 +1,36 @@ +// +// UIColor+ChameleonPrivate.h +// Chameleon +// +// Created by Vicc Alexander on 6/6/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import +#import + +@interface UIColor (ChameleonPrivate) + +@property (nonatomic, readwrite) NSUInteger count; + +#pragma mark - Class Methods + ++ (UIColor *)colorFromImage:(UIImage *)image atPoint:(CGPoint)point; + +- (UIColor *)colorWithMinimumSaturation:(CGFloat)saturation; + +#pragma mark - Instance Methods + +- (BOOL)isDistinct:(UIColor *)color; + +- (BOOL)getValueForX:(CGFloat *)X + valueForY:(CGFloat *)Y + valueForZ:(CGFloat *)Z + alpha:(CGFloat *)alpha; + +- (BOOL)getLightness:(CGFloat *)L + valueForA:(CGFloat *)A + valueForB:(CGFloat *)B + alpha:(CGFloat *)alpha; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m new file mode 100755 index 0000000..c5c7d47 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m @@ -0,0 +1,251 @@ +// +// UIColor+ChameleonPrivate.m +// Chameleon +// +// Created by Vicc Alexander on 6/6/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "UIColor+ChameleonPrivate.h" + +@implementation UIColor (ChameleonPrivate) + +@dynamic count; + +#pragma mark - Associated Objects Methods + +- (void)setCount:(NSUInteger)count { + objc_setAssociatedObject(self, @selector(count), [NSNumber numberWithUnsignedInteger:count], OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +- (NSUInteger)count { + NSNumber *number = objc_getAssociatedObject(self, @selector(count)); + return [number unsignedIntegerValue]; +} + +#pragma mark - Class Methods + +// Would not have been possible without - http://stackoverflow.com/a/1262893 ++ (UIColor *)colorFromImage:(UIImage *)image atPoint:(CGPoint)point { + + //Encapsulate our image + CGImageRef imageRef = image.CGImage; + NSUInteger width = CGImageGetWidth(imageRef); + NSUInteger height = CGImageGetHeight(imageRef); + + //Specify the colorspace we're in + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); + + //Extract the data we need + unsigned char *rawData = calloc(height * width * 4, sizeof(unsigned char)); + NSUInteger bytesPerPixel = 4; + NSUInteger bytesPerRow = bytesPerPixel * width; + NSUInteger bitsPerComponent = 8; + CGContextRef context = CGBitmapContextCreate(rawData, width, height, bitsPerComponent, bytesPerRow, + colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); + //Release colorspace + CGColorSpaceRelease(colorSpace); + + //Draw and release image + CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); + CGContextRelease(context); + + //rawData now contains the image data in RGBA8888 + NSInteger byteIndex = (bytesPerRow * point.y) + (point.x * bytesPerPixel); + + //Define our RGBA values + CGFloat red = (rawData[byteIndex] * 1.f) / 255.f; + CGFloat green = (rawData[byteIndex + 1] * 1.f) / 255.f; + CGFloat blue = (rawData[byteIndex + 2] * 1.f) / 255.f; + CGFloat alpha = (rawData[byteIndex + 3] * 1.0) / 255.f; + + //Free our rawData + free(rawData); + + //Return color + return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; +} + +- (UIColor *)colorWithMinimumSaturation:(CGFloat)saturation { + if (!self) + return nil; + + CGFloat h, s, b, a; + [self getHue:&h saturation:&s brightness:&b alpha:&a]; + + if (s < saturation) + return [UIColor colorWithHue:h saturation:saturation brightness:b alpha:a]; + + return self; +} + +#pragma mark - Instance Methods + +- (BOOL)isDistinct:(UIColor *)color { + + if (!self || !color) { + return NO; + } + + CGFloat r, g, b, a; + CGFloat rc, gc, bc, ac; + + [self getRed:&r green:&g blue:&b alpha:&a]; + [color getRed:&rc green:&gc blue:&bc alpha:&ac]; + + CGFloat threshold = 0.25f; + + if (fabs(r - rc) > threshold || fabs(g - gc) > threshold || + + fabs(b - bc) > threshold || fabs(a - ac) > threshold) { + + // Check for grays + if (fabs(r - g) < 0.03f && fabs(r - b) < 0.03f) { + + if (fabs(rc - gc) < 0.03f && (fabs(rc - bc) < 0.03f)) { + return NO; + } + + } + + return YES; + } + + return NO; +} + +- (BOOL)getValueForX:(CGFloat *)X valueForY:(CGFloat *)Y valueForZ:(CGFloat *)Z alpha:(CGFloat *)alpha{ + + if ([self respondsToSelector:@selector(getRed:green:blue:alpha:)]) { + + //Get RGB values from the input color + CGFloat red = 0, green = 0, blue = 0, alpha1 = 0; + [self getRed:&red green:&green blue:&blue alpha:&alpha1]; + + //Run our input color's RGB values through the XYZ algorithm to convert them into XYZ values + NSArray *XYZValues = [self arrayOfXYZValuesForR:red G:green B:blue A:alpha1]; + *X = [XYZValues[0] floatValue]; + *Y = [XYZValues[1] floatValue]; + *Z = [XYZValues[2] floatValue]; + *alpha = [XYZValues[3] floatValue]; + + return YES; + } + + return NO; +} + +- (BOOL)getLightness:(CGFloat *)L valueForA:(CGFloat *)A valueForB:(CGFloat *)B alpha:(CGFloat *)alpha { + + if ([self respondsToSelector:@selector(getRed:green:blue:alpha:)]) { + + //Get RGB values from the input color + CGFloat red = 0, green = 0, blue = 0, alpha1 = 0; + [self getRed:&red green:&green blue:&blue alpha:&alpha1]; + + //Run our input color's RGB values through the XYZ algorithm to convert them into XYZ values + NSArray *XYZValues = [self arrayOfXYZValuesForR:red G:green B:blue A:alpha1]; + CGFloat X = [XYZValues[0] floatValue]; + CGFloat Y = [XYZValues[1] floatValue]; + CGFloat Z = [XYZValues[2] floatValue]; + + if (L != nil && A != nil && B != nil) { + //Run our new XYZ values through our LAB algorithm to convert them into LAB values + NSArray *LABValues = [self arrayOfLABValuesForX:X Y:Y Z:Z alpha:alpha1]; + *L = [LABValues[0] floatValue]; + *A = [LABValues[1] floatValue]; + *B = [LABValues[2] floatValue]; + } + + return YES; + } + + return NO; +} + +#pragma mark - Internal Helper Methods + +- (NSArray *)arrayOfXYZValuesForR:(CGFloat)red G:(CGFloat)green B:(CGFloat)blue A:(CGFloat)alpha { + + /* + Let's begin by converting from RGB to sRGB. + We're going to use the Reverse Transformation Equation. + http://en.wikipedia.org/wiki/SRGB + */ + + void (^sRGB)(CGFloat *C); + sRGB = ^(CGFloat *C) { + if (*C > 0.04045) { + *C = pow(((*C + 0.055)/ (1 + 0.055)), 2.40); + } else { + *C /= 12.92; + } + }; + + sRGB(&red); + sRGB(&green); + sRGB(&blue); + + /* + Now we're going to convert to XYZ values, using a matrix multiplication of the linear values + http://upload.wikimedia.org/math/4/3/3/433376fc18cccd887758beffb7e7c625.png + */ + + CGFloat X = (red * 0.4124) + (green * 0.3576) + (blue * 0.1805); + CGFloat Y = (red * 0.2126) + (green * 0.7152) + (blue * 0.0722); + CGFloat Z = (red * 0.0193) + (green * 0.1192) + (blue * 0.9505); + + X *= 100; + Y *= 100; + Z *= 100; + + return @[@(X), @(Y), @(Z), @(alpha)]; +} + +- (NSArray *)arrayOfLABValuesForX:(CGFloat)X Y:(CGFloat)Y Z:(CGFloat)Z alpha:(CGFloat)alpha { + + /* + The corresponding original XYZ values are such that white is D65 with unit luminance (X,Y,Z = 0.9505, 1.0000, 1.0890). + Calculations are also to assume the 2° standard colorimetric observer. + D65: http://en.wikipedia.org/wiki/CIE_Standard_Illuminant_D65 + Standard Colorimetric Observer: http://en.wikipedia.org/wiki/Standard_colorimetric_observer#CIE_standard_observer + + Since we mutiplied our XYZ values by 100 to produce a percentage we should also multiply our unit luminance values by 100. + */ + + X /= (0.9505 * 100); + Y /= (1.0000 * 100); + Z /= (1.0890 * 100); + + /* + Next we need to use the forward transformation function for CIELAB-CIEXYZ conversions + Function: http://upload.wikimedia.org/math/e/5/1/e513d25d50d406bfffb6ed3c854bd8a4.png + */ + + void (^XYZtoLAB)(CGFloat *f); + XYZtoLAB = ^(CGFloat *f) { + if ((*f > pow((6.0/29.0), 3.0)) ) { + *f = pow(*f, 1.0/3.0); + } else { + *f = (1/3)*pow((29.0/6.0), 2.0) * *f + 4/29.0; + } + }; + + XYZtoLAB(&X); + XYZtoLAB(&Y); + XYZtoLAB(&Z); + + /* + Next we get our LAB values using the following equations and the results from the function above + http://upload.wikimedia.org/math/0/0/6/006164b74314e2fdcdc34ac9d0aa6fe4.png + */ + + CGFloat L = (116 * Y) - 16; + CGFloat A = 500 * (X - Y); + CGFloat B = 200 * (Y - Z); + + + return @[@(L), @(A), @(B), @(alpha)]; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h new file mode 100755 index 0000000..91fdc45 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h @@ -0,0 +1,21 @@ +// +// UIImage+ChameleonPrivate.h +// Chameleon +// +// Created by Vicc Alexander on 6/8/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import + +@interface UIImage (ChameleonPrivate) + +#pragma mark - Class Methods + ++ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize; + +#pragma mark - Instance Methods + +- (UIImage *)imageScaledToSize:(CGSize)newSize; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m new file mode 100755 index 0000000..707c64a --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m @@ -0,0 +1,74 @@ +// +// UIImage+ChameleonPrivate.m +// Chameleon +// +// Created by Vicc Alexander on 6/8/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "UIImage+ChameleonPrivate.h" + +@implementation UIImage (ChameleonPrivate) + +// Would not have been possible without - http://stackoverflow.com/a/1262893 ++ (UIColor *)colorFromImage:(UIImage *)image atPoint:(CGPoint)point { + + //Encapsulate our image + CGImageRef imageRef = image.CGImage; + NSUInteger width = CGImageGetWidth(imageRef); + NSUInteger height = CGImageGetHeight(imageRef); + + //Specify the colorspace we're in + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); + + //Extract the data we need + unsigned char *rawData = calloc(height * width * 4, sizeof(unsigned char)); + NSUInteger bytesPerPixel = 4; + NSUInteger bytesPerRow = bytesPerPixel * width; + NSUInteger bitsPerComponent = 8; + CGContextRef context = CGBitmapContextCreate(rawData, width, height, bitsPerComponent, bytesPerRow, + colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); + //Release colorspace + CGColorSpaceRelease(colorSpace); + + //Draw and release image + CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); + CGContextRelease(context); + + //rawData now contains the image data in RGBA8888 + NSInteger byteIndex = (bytesPerRow * point.y) + (point.x * bytesPerPixel); + + //Define our RGBA values + CGFloat red = (rawData[byteIndex] * 1.f) / 255.f; + CGFloat green = (rawData[byteIndex + 1] * 1.f) / 255.f; + CGFloat blue = (rawData[byteIndex + 2] * 1.f) / 255.f; + CGFloat alpha = (rawData[byteIndex + 3] * 1.0) / 255.f; + + //Free our rawData + free(rawData); + + //Return color + return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; +} + ++ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize { + + UIGraphicsBeginImageContextWithOptions(newSize, NO, 1.0); + [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; + UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return newImage; +} + +#pragma mark - Instance Methods + +- (UIImage *)imageScaledToSize:(CGSize)newSize { + + UIGraphicsBeginImageContextWithOptions(newSize, NO, 1.0); + [self drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; + UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return newImage; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h new file mode 100755 index 0000000..6bc8e22 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h @@ -0,0 +1,15 @@ +// +// UILabel+Chameleon.h +// Chameleon +// +// Created by Vicc Alexander on 9/20/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import + +@interface UILabel (Chameleon) + +- (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.m new file mode 100755 index 0000000..bb28af0 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.m @@ -0,0 +1,18 @@ +// +// UILabel+Chameleon.m +// Chameleon +// +// Created by Vicc Alexander on 9/20/15. +// Copyright © 2015 Vicc Alexander. All rights reserved. +// + +#import "UILabel+Chameleon.h" + +@implementation UILabel (Chameleon) + +- (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR { + + self.font = [UIFont fontWithName:name size:self.font.pointSize]; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h new file mode 100755 index 0000000..6913d49 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h @@ -0,0 +1,32 @@ +// +// UINavigationController+Chameleon.h +// ChameleonDemo +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import +#import "ChameleonEnums.h" + +@interface UINavigationController (Chameleon) + +/** + * Sets the status bar style for the specified @c UINavigationController and all its child controllers. + * + * @param statusBarStyle The style of the device's status bar. + * + * @note Chameleon introduces a new @c statusBarStyle called @c UIStatusBarStyleContrast. + * + * @since 2.0 + */ +- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle; + +/** + * Hides the hairline view at the bottom of a navigation bar. The default value is @c NO. + * + * @since 2.0.3 + */ +@property (nonatomic, assign) BOOL hidesNavigationBarHairline; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.m new file mode 100755 index 0000000..1599815 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.m @@ -0,0 +1,214 @@ +// +// UINavigationController+Chameleon.m +// ChameleonDemo +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "UINavigationController+Chameleon.h" +#import + +#import "ChameleonConstants.h" +#import "ChameleonEnums.h" +#import "ChameleonMacros.h" + +#import "NSArray+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UIViewController+Chameleon.h" + +@interface UINavigationController () + +@property (readwrite) BOOL shouldContrast; +@property (readwrite) BOOL shouldUseLightContent; + +@end + +@implementation UINavigationController (Chameleon) + +@dynamic hidesNavigationBarHairline; + +#pragma mark - Swizzling + ++ (void)load { + + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + + Class class = [self class]; + + SEL originalSelector = @selector(viewDidLoad); + SEL swizzledSelector = @selector(chameleon_viewDidLoad); + + Method originalMethod = class_getInstanceMethod(class, originalSelector); + Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector); + + BOOL didAddMethod = + class_addMethod(class, + originalSelector, + method_getImplementation(swizzledMethod), + method_getTypeEncoding(swizzledMethod)); + + if (didAddMethod) { + class_replaceMethod(class, + swizzledSelector, + method_getImplementation(originalMethod), + method_getTypeEncoding(originalMethod)); + + } else { + method_exchangeImplementations(originalMethod, swizzledMethod); + } + }); +} + +- (void)chameleon_viewDidLoad { + + [self chameleon_viewDidLoad]; + + UIView *hairlineImageView = [self findHairlineImageViewUnder:self.navigationBar]; + + if (hairlineImageView) { + + if (self.hidesNavigationBarHairline) { + hairlineImageView.hidden = YES; + + } else { + hairlineImageView.hidden = NO; + } + } +} + +- (UIImageView *)findHairlineImageViewUnder:(UIView *)view { + + if ([view isKindOfClass:UIImageView.class] && view.bounds.size.height <= 1.0) { + return (UIImageView *)view; + } + + for (UIView *subview in view.subviews) { + UIImageView *imageView = [self findHairlineImageViewUnder:subview]; + if (imageView) { + return imageView; + } + } + + return nil; +} + +#pragma mark - Runtime + +- (void)setShouldContrast:(BOOL)contrast { + + NSNumber *number = [NSNumber numberWithBool:contrast]; + objc_setAssociatedObject(self, @selector(shouldContrast), number, OBJC_ASSOCIATION_RETAIN); +} + +- (BOOL)shouldContrast { + + NSNumber *number = objc_getAssociatedObject(self, @selector(shouldContrast)); + return [number boolValue]; +} + +- (void)setShouldUseLightContent:(BOOL)shouldUseLightContent { + + NSNumber *number = [NSNumber numberWithBool:shouldUseLightContent]; + objc_setAssociatedObject(self, @selector(shouldUseLightContent), number, OBJC_ASSOCIATION_RETAIN); +} + +- (BOOL)shouldUseLightContent { + + NSNumber *number = objc_getAssociatedObject(self, @selector(shouldUseLightContent)); + return [number boolValue]; +} + +- (void)setHidesNavigationBarHairline:(BOOL)hidesNavigationBarHairline { + + NSNumber *number = [NSNumber numberWithBool:hidesNavigationBarHairline]; + objc_setAssociatedObject(self, @selector(hidesNavigationBarHairline), number, OBJC_ASSOCIATION_RETAIN); + + //Find Hairline Image + UIView *hairlineImageView = [self findHairlineImageViewUnder:self.navigationBar]; + + //Check if it exists + if (hairlineImageView) { + + //Check if we should hide it or not + if (hidesNavigationBarHairline) { + hairlineImageView.hidden = YES; + + } else { + hairlineImageView.hidden = NO; + } + } +} + +- (BOOL)hidesNavigationBarHairline { + + NSNumber *number = objc_getAssociatedObject(self, @selector(hidesNavigationBarHairline)); + return [number boolValue]; +} + + +#pragma mark - Public Methods + +- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle { + + if (statusBarStyle == UIStatusBarStyleContrast) { + + self.shouldContrast = YES; + + } else { + + if (statusBarStyle == UIStatusBarStyleLightContent) { + + self.shouldUseLightContent = YES; + + } else { + + self.shouldUseLightContent = NO; + } + + } +} + +#pragma mark - Private Methods + +- (UIStatusBarStyle)preferredStatusBarStyle { + + [super preferredStatusBarStyle]; + + if (self.shouldContrast) { + + return [self contrastingStatusBarStyleForColor:self.navigationBar.barTintColor]; + + } else { + + if (self.shouldUseLightContent) { + + return UIStatusBarStyleLightContent; + + } else { + + return UIStatusBarStyleDefault; + } + } +} + +- (UIStatusBarStyle)contrastingStatusBarStyleForColor:(UIColor *)backgroundColor { + + //Calculate Luminance + CGFloat luminance; + CGFloat red, green, blue; + + //Check for clear or uncalculatable color and assume white + if (![backgroundColor getRed:&red green:&green blue:&blue alpha:nil]) { + return UIStatusBarStyleDefault; + } + + //Relative luminance in colorimetric spaces - http://en.wikipedia.org/wiki/Luminance_(relative) + red *= 0.2126f; green *= 0.7152f; blue *= 0.0722f; + luminance = red + green + blue; + + return (luminance > 0.6f) ? UIStatusBarStyleDefault : UIStatusBarStyleLightContent; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h new file mode 100755 index 0000000..cc3b6ce --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h @@ -0,0 +1,16 @@ +// +// UIView+ChameleonPrivate.h +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import + +@interface UIView (ChameleonPrivate) + +- (BOOL)isTopViewInWindow; +- (UIView *)findTopMostViewForPoint:(CGPoint)point; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.m new file mode 100755 index 0000000..bc5203d --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.m @@ -0,0 +1,46 @@ +// +// UIView+ChameleonPrivate.m +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "UIView+ChameleonPrivate.h" + +@implementation UIView (ChameleonPrivate) + +- (BOOL)isTopViewInWindow { + + if (!self.window) { + return NO; + } + + CGPoint centerPointInSelf = CGPointMake(CGRectGetMidX(self.bounds), + CGRectGetMidY(self.bounds)); + + CGPoint centerPointOfSelfInWindow = [self convertPoint:centerPointInSelf + toView:self.window]; + + UIView *view = [self.window findTopMostViewForPoint:centerPointOfSelfInWindow]; + BOOL isTopMost = view == self || [view isDescendantOfView:self]; + + return isTopMost; +} + +- (UIView *)findTopMostViewForPoint:(CGPoint)point { + + for (int i = (int)self.subviews.count - 1; i >= 0; i--) { + + UIView *subview = self.subviews[i]; + + if (!subview.hidden && CGRectContainsPoint(subview.frame, point) && subview.alpha > 0.01) { + CGPoint pointConverted = [self convertPoint:point toView:subview]; + return [subview findTopMostViewForPoint:pointConverted]; + } + } + + return self; +} + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h new file mode 100755 index 0000000..f84b945 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h @@ -0,0 +1,64 @@ +// +// UIViewController+Chameleon.h +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import +#import "ChameleonEnums.h" + +@interface UIViewController (Chameleon) + +/** + * Sets the color theme for the specified view controller using a primary color and the specified content style. + * + * @param primaryColor The primary color. + * @param contentStyle The contentStyle. + * + * @since 2.0 + */ +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle; + +/** + * Sets the color theme for the specified view controller using a primary color, secondary color, and the specified content style. + * + * @param primaryColor The primary color. + * @param secondaryColor The secondary color. + * @param contentStyle The contentStyle. + * + * @since 2.0 + */ +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + andContentStyle:(UIContentStyle)contentStyle; + +/** + * Sets the color theme for the specified view controller using a primary color, secondary color, font name, and the specified content style. + * + * @param primaryColor The primary color. + * @param secondaryColor The secondary color. + * @param fontName The main font to use for all text-based elements. + * @param contentStyle The contentStyle. + * + * @since 2.0 + */ +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + usingFontName:(NSString *)fontName + andContentStyle:(UIContentStyle)contentStyle; + +/** + * Sets the status bar style for the specified @c UIViewController and all its child controllers. + * + * @param statusBarStyle The style of the device's status bar. + * + * @note Chameleon introduces a new @c statusBarStyle called @c UIStatusBarStyleContrast. + * + * @since 2.0 + */ +- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle; + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.m b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.m new file mode 100755 index 0000000..b6b4691 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.m @@ -0,0 +1,900 @@ +// +// UIViewController+Chameleon.m +// Chameleon +// +// Created by Vicc Alexander on 6/4/15. +// Copyright (c) 2015 Vicc Alexander. All rights reserved. +// + +#import "UIViewController+Chameleon.h" +#import + +#import "ChameleonConstants.h" +#import "ChameleonEnums.h" +#import "ChameleonMacros.h" + +#import "NSArray+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UIViewController+Chameleon.h" +#import "UIView+ChameleonPrivate.h" +#import "UILabel+Chameleon.h" +#import "UIButton+Chameleon.h" +#import "UIAppearance+Swift.h" + +@interface UIViewController () + +@property (readwrite) BOOL shouldContrast; +@property (readwrite) BOOL shouldUseLightContent; + +@end + +@implementation UIViewController (Chameleon) + + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#pragma mark - Runtime + +- (void)setShouldContrast:(BOOL)contrast { + + NSNumber *number = [NSNumber numberWithBool:contrast]; + objc_setAssociatedObject(self, @selector(shouldContrast), number, OBJC_ASSOCIATION_RETAIN); +} + +- (BOOL)shouldContrast { + + NSNumber *number = objc_getAssociatedObject(self, @selector(shouldContrast)); + return [number boolValue]; +} + +- (void)setShouldUseLightContent:(BOOL)shouldUseLightContent { + + NSNumber *number = [NSNumber numberWithBool:shouldUseLightContent]; + objc_setAssociatedObject(self, @selector(shouldUseLightContent), number, OBJC_ASSOCIATION_RETAIN); +} + +- (BOOL)shouldUseLightContent { + + NSNumber *number = objc_getAssociatedObject(self, @selector(shouldUseLightContent)); + return [number boolValue]; +} + +#pragma mark - Swizzling + ++ (void)load { + + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + + Class class = [self class]; + + SEL originalSelector = @selector(preferredStatusBarStyle); + SEL swizzledSelector = @selector(chameleon_preferredStatusBarStyle); + + Method originalMethod = class_getInstanceMethod(class, originalSelector); + Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector); + + BOOL didAddMethod = + class_addMethod(class, + originalSelector, + method_getImplementation(swizzledMethod), + method_getTypeEncoding(swizzledMethod)); + + if (didAddMethod) { + class_replaceMethod(class, + swizzledSelector, + method_getImplementation(originalMethod), + method_getTypeEncoding(originalMethod)); + + } else { + method_exchangeImplementations(originalMethod, swizzledMethod); + } + }); +} + +#pragma mark - Methods + + +- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle { + + if (statusBarStyle == UIStatusBarStyleContrast) { + + [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate) withObject:nil afterDelay:0.01]; + self.shouldContrast = YES; + + } else { + + if (statusBarStyle == UIStatusBarStyleLightContent) { + + [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate) withObject:nil afterDelay:0.01]; + self.shouldUseLightContent = YES; + + } else { + + [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate) withObject:nil afterDelay:0.01]; + self.shouldUseLightContent = NO; + } + } + + [self preferredStatusBarStyle]; +} + +- (UIStatusBarStyle)chameleon_preferredStatusBarStyle { + + [self chameleon_preferredStatusBarStyle]; + + if (self.shouldContrast) { + + CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame; + UIView *topView = [self.view findTopMostViewForPoint:CGPointMake(CGRectGetMidX(statusBarFrame), 2)]; + + return [self contrastingStatusBarStyleForColor:topView.backgroundColor]; + + } else { + + if (self.shouldUseLightContent) { + return UIStatusBarStyleLightContent; + + } else { + return [self chameleon_preferredStatusBarStyle]; + } + } +} + +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor contentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeNavigationBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; +} + +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + andContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor contentStyle:contentStyle]; + [[self class] customizeButtonWithPrimaryColor:primaryColor secondaryColor:secondaryColor withContentStyle:contentStyle]; + [[self class] customizeNavigationBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; +} + +- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor + withSecondaryColor:(UIColor *)secondaryColor + usingFontName:(NSString *)fontName + andContentStyle:(UIContentStyle)contentStyle { + + if (contentStyle == UIContentStyleContrast) { + + if ([ContrastColor(primaryColor, YES) isEqual:FlatWhite]) { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + } else { + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + } else if (contentStyle == UIContentStyleLight) { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; + + } else { + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; + } + + [[UILabel appearance] setSubstituteFontName:fontName]; + [[UIButton appearance] setSubstituteFontName:fontName]; + + [[self class] customizeButtonWithPrimaryColor:primaryColor secondaryColor:secondaryColor withContentStyle:contentStyle]; + [[self class] customizeBarButtonItemWithPrimaryColor:primaryColor fontName:fontName fontSize:18 contentStyle:contentStyle]; + [[self class] customizeNavigationBarWithBarColor:primaryColor textColor:ContrastColor(primaryColor, YES) fontName:fontName fontSize:20 buttonColor:ContrastColor(primaryColor, YES)]; + [[self class] customizePageControlWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeProgressViewWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeSearchBarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSegmentedControlWithPrimaryColor:primaryColor withFontName:fontName withFontSize:14 withContentStyle:contentStyle]; + [[self class] customizeSliderWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeStepperWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeSwitchWithPrimaryColor:primaryColor andSecondaryColor:secondaryColor]; + [[self class] customizeTabBarWithBarTintColor:FlatWhite andTintColor:primaryColor]; + [[self class] customizeToolbarWithPrimaryColor:primaryColor withContentStyle:contentStyle]; + [[self class] customizeImagePickerControllerWithPrimaryColor:primaryColor withContentStyle:contentStyle]; +} + +#pragma mark - UIBarButtonItem + ++ (void)customizeBarButtonItemWithPrimaryColor:(UIColor *)primaryColor + contentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIBarButtonItem appearance] setTintColor:primaryColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; +} + ++ (void)customizeBarButtonItemWithPrimaryColor:(UIColor *)primaryColor + fontName:(NSString *)fontName + fontSize:(float)fontSize + contentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIBarButtonItem appearance] setTintColor:primaryColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIBarButtonItem appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + + + if ([UIFont fontWithName:fontName size:fontSize]) { + [[UIBarButtonItem appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName:contentColor, NSFontAttributeName:[UIFont fontWithName:fontName size:fontSize]} forState:UIControlStateNormal]; + } +} + +#pragma mark - UIButton + ++ (void)customizeButtonWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIButton appearance] setTintColor:contentColor]; + [[UIButton appearance] setBackgroundColor:primaryColor]; + + + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setTintColor:primaryColor]; + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearance] setTitleShadowColor:ClearColor forState:UIControlStateNormal]; + +} + ++ (void)customizeButtonWithPrimaryColor:(UIColor *)primaryColor + secondaryColor:(UIColor *)secondaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + UIColor *secondaryContentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + secondaryContentColor = ContrastColor(secondaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + secondaryContentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + secondaryContentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + secondaryContentColor = ContrastColor(secondaryColor, NO); + break; + } + } + + [[UIButton appearance] setTintColor:secondaryContentColor]; + [[UIButton appearance] setBackgroundColor:secondaryColor]; + + + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UINavigationBar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedIn:[UIToolbar class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setTintColor:primaryColor]; + [[UIButton appearanceWhenContainedIn:[UIStepper class], nil] setBackgroundColor:ClearColor]; + + [[UIButton appearance] setTitleShadowColor:ClearColor forState:UIControlStateNormal]; + +} + +#pragma mark - UIImagePickerController + ++ (void)customizeImagePickerControllerWithPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + //Workaround for Swift http://stackoverflow.com/a/28765193 + [[UIButton appearanceWhenContainedWithin:@[[UIView class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UIView class],[UIImagePickerController class]]] setTintColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UINavigationBar class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + [[UIButton appearanceWhenContainedWithin:@[[UINavigationBar class],[UIImagePickerController class]]] setTintColor:contentColor]; + [[UIButton appearanceWhenContainedWithin:@[[UITableViewCell class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UIView class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UIView class],[UIImagePickerController class]]] setTintColor:contentColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class],[UIImagePickerController class]]] setTintColor:contentColor]; + //[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class],[UIImagePickerController class]]] setBackgroundColor:ClearColor]; +} + +#pragma mark - UILabel + ++ (void)customizeLabelWithPrimaryColor:(UIColor *)primaryColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UILabel appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setTextColor:contentColor]; + [[UILabel appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setTextColor:contentColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + + if (font) { + [[UILabel appearanceWhenContainedIn:[self class], nil] setFont:[UIFont fontWithName:fontName size:fontSize]]; + [[UILabel appearanceWhenContainedIn:[self class], [UITextField class], nil] setFont:[UIFont fontWithName:fontName size:14]]; + [[UILabel appearanceWhenContainedIn:[self class], [UIButton class], nil] setFont:[UIFont fontWithName:fontName size:18]]; + } +} + +#pragma mark - UINavigationBar + ++ (void)customizeNavigationBarWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:primaryColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTintColor:contentColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTitleTextAttributes:@{NSForegroundColorAttributeName:contentColor}]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setShadowImage:[UIImage new]]; +// [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; +} + ++ (void)customizeNavigationBarWithBarColor:(UIColor *)barColor + textColor:(UIColor *)textColor + buttonColor:(UIColor *)buttonColor { + + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:barColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTintColor:buttonColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTitleTextAttributes:@{NSForegroundColorAttributeName:textColor}]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setShadowImage:[UIImage new]]; +// [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; +} + ++ (void)customizeNavigationBarWithBarColor:(UIColor *)barColor + textColor:(UIColor *)textColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize + buttonColor:(UIColor *)buttonColor { + + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:barColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTintColor:buttonColor]; + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setShadowImage:[UIImage new]]; +// [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; + + if ([UIFont fontWithName:fontName size:fontSize]) { + [[UINavigationBar appearanceWhenContainedIn:[self class], nil] setTitleTextAttributes:@{ NSForegroundColorAttributeName:textColor, NSFontAttributeName:[UIFont fontWithName:fontName size:fontSize] }]; + } +} + +#pragma mark - UIPageControl + ++ (void)customizePageControlWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIPageControl appearanceWhenContainedIn:[self class], nil] setCurrentPageIndicatorTintColor:primaryColor]; + [[UIPageControl appearanceWhenContainedIn:[self class], nil] setPageIndicatorTintColor:[primaryColor colorWithAlphaComponent:0.4]]; + [[UIPageControl appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setCurrentPageIndicatorTintColor:contentColor]; + [[UIPageControl appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setPageIndicatorTintColor:[contentColor colorWithAlphaComponent:0.4]]; + [[UIPageControl appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setCurrentPageIndicatorTintColor:contentColor]; + [[UIPageControl appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setPageIndicatorTintColor:[contentColor colorWithAlphaComponent:0.4]]; +} + +#pragma mark - UIProgressView + ++ (void)customizeProgressViewWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIProgressView appearanceWhenContainedIn:[self class], nil] setProgressTintColor:primaryColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setProgressTintColor:contentColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setProgressTintColor:contentColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], nil] setTrackTintColor:[UIColor lightGrayColor]]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + ++ (void)customizeProgressViewWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UIProgressView appearanceWhenContainedIn:[self class], nil] setProgressTintColor:secondaryColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setProgressTintColor:secondaryColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setProgressTintColor:secondaryColor]; + [[UIProgressView appearanceWhenContainedIn:[self class], nil] setTrackTintColor:[UIColor lightGrayColor]]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UIProgressView appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + +#pragma mark - UISearchBar + ++ (void)customizeSearchBarWithPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISearchBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:primaryColor]; + [[UISearchBar appearanceWhenContainedIn:[self class], nil] setBackgroundColor:primaryColor]; + [[UISearchBar appearanceWhenContainedIn:[self class], nil] setTintColor:contentColor]; + [[UISearchBar appearanceWhenContainedIn:[self class], nil] setBackgroundImage:[UIImage new] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault]; +} + +#pragma mark - UISegmentedControl + ++ (void)customizeSegmentedControlWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISegmentedControl appearanceWhenContainedIn:[self class], nil] setTintColor:primaryColor]; + [[UISegmentedControl appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] + setTintColor:contentColor]; + [[UISegmentedControl appearanceWhenContainedIn:[self class], [UIToolbar class], nil] + setTintColor:contentColor]; +} + ++ (void)customizeSegmentedControlWithPrimaryColor:(UIColor *)primaryColor + withFontName:(NSString *)fontName + withFontSize:(CGFloat)fontSize + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISegmentedControl appearanceWhenContainedIn:[self class], nil] setTintColor:primaryColor]; + [[UISegmentedControl appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] + setTintColor:contentColor]; + [[UISegmentedControl appearanceWhenContainedIn:[self class], [UIToolbar class], nil] + setTintColor:contentColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + if (font) { + [[UISegmentedControl appearanceWhenContainedIn:[self class], nil] setTitleTextAttributes:@{NSFontAttributeName:font} + forState:UIControlStateNormal]; + } +} + +#pragma mark - UISlider + ++ (void)customizeSliderWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UISlider appearanceWhenContainedIn:[self class], nil] setMinimumTrackTintColor:primaryColor]; + [[UISlider appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setMinimumTrackTintColor:contentColor]; + [[UISlider appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setMinimumTrackTintColor:contentColor]; + [[UISlider appearanceWhenContainedIn:[self class], nil] setMaximumTrackTintColor:[UIColor lightGrayColor]]; + [[UISlider appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISlider appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + ++ (void)customizeSliderWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UISlider appearanceWhenContainedIn:[self class], nil] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setMinimumTrackTintColor:secondaryColor]; + [[UISlider appearanceWhenContainedIn:[self class], nil] setMaximumTrackTintColor:[UIColor lightGrayColor]]; + [[UISlider appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISlider appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setMaximumTrackTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + +#pragma mark - UIStepper + ++ (void)customizeStepperWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIStepper appearanceWhenContainedIn:[self class], nil] setTintColor:primaryColor]; + [[UIStepper appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] + setTintColor:contentColor]; + [[UIStepper appearanceWhenContainedIn:[self class], [UIToolbar class], nil] + setTintColor:contentColor]; +} + +#pragma mark - UISwitch + ++ (void)customizeSwitchWithPrimaryColor:(UIColor *)primaryColor { + + [[UISwitch appearanceWhenContainedIn:[self class], nil] setOnTintColor:primaryColor]; + [[UISwitch appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setOnTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; + [[UISwitch appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setOnTintColor:[[primaryColor darkenByPercentage:0.25] flatten]]; +} + ++ (void)customizeSwitchWithPrimaryColor:(UIColor *)primaryColor + andSecondaryColor:(UIColor *)secondaryColor { + + [[UISwitch appearanceWhenContainedIn:[self class], nil] setOnTintColor:secondaryColor]; + [[UISwitch appearanceWhenContainedIn:[self class], [UINavigationBar class], nil] setOnTintColor:secondaryColor]; + [[UISwitch appearanceWhenContainedIn:[self class], [UIToolbar class], nil] setOnTintColor:secondaryColor]; +} + +#pragma mark - UITabBar + ++ (void)customizeTabBarWithBarTintColor:(UIColor *)barTintColor + andTintColor:(UIColor *)tintColor { + + [[UITabBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:barTintColor]; + [[UITabBar appearanceWhenContainedIn:[self class], nil] setTintColor:tintColor]; +} + ++ (void)customizeTabBarWithBarTintColor:(UIColor *)barTintColor + tintColor:(UIColor *)tintColor + fontName:(NSString *)fontName + fontSize:(CGFloat)fontSize { + + [[UITabBar appearanceWhenContainedIn:[self class], nil] setBarTintColor:barTintColor]; + [[UITabBar appearanceWhenContainedIn:[self class], nil] setTintColor:tintColor]; + + UIFont *font = [UIFont fontWithName:fontName size:fontSize]; + if (font) { + [[UITabBarItem appearanceWhenContainedIn:[self class], nil] setTitleTextAttributes:@{NSFontAttributeName:font} + forState:UIControlStateNormal]; + } +} + +#pragma mark - UIToolbar + ++ (void)customizeToolbarWithPrimaryColor:(UIColor *)primaryColor + withContentStyle:(UIContentStyle)contentStyle { + + UIColor *contentColor; + switch (contentStyle) { + case UIContentStyleContrast: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + case UIContentStyleLight: { + contentColor = [UIColor whiteColor]; + break; + } + case UIContentStyleDark: { + contentColor = FlatBlackDark; + break; + } + default: { + contentColor = ContrastColor(primaryColor, NO); + break; + } + } + + [[UIToolbar appearanceWhenContainedIn:[self class], nil] setTintColor:contentColor]; + [[UIToolbar appearanceWhenContainedIn:[self class], nil] setBarTintColor:primaryColor]; + [[UIToolbar appearanceWhenContainedIn:[self class], nil] setClipsToBounds:YES]; +} + + +#pragma mark - Private Methods + +- (UIStatusBarStyle)contrastingStatusBarStyleForColor:(UIColor *)backgroundColor { + + //Calculate Luminance + CGFloat luminance; + CGFloat red, green, blue; + + //Check for clear or uncalculatable color and assume white + if (![backgroundColor getRed:&red green:&green blue:&blue alpha:nil]) { + return UIStatusBarStyleDefault; + } + + //Relative luminance in colorimetric spaces - http://en.wikipedia.org/wiki/Luminance_(relative) + red *= 0.2126f; green *= 0.7152f; blue *= 0.0722f; + luminance = red + green + blue; + + return (luminance > 0.6f) ? UIStatusBarStyleDefault : UIStatusBarStyleLightContent; +} + +#pragma GCC diagnostic pop + +@end diff --git a/HeadsUpper/Pods/ChameleonFramework/README.md b/HeadsUpper/Pods/ChameleonFramework/README.md new file mode 100644 index 0000000..2dbbdf0 --- /dev/null +++ b/HeadsUpper/Pods/ChameleonFramework/README.md @@ -0,0 +1,768 @@ +

+ Chameleon by Vicc Alexander +

+ +

+ Downloads + Platform: iOS 8+ + Language: Swift 2 + Carthage compatible + Cocoapods compatible + License: MIT

+ Donate +

+ +## Introduction + +**Chameleon** is a lightweight, yet powerful, color framework for iOS (Objective-C & Swift). It is built on the idea that software applications should function effortlessly while simultaneously maintaining their beautiful interfaces. + +With Chameleon, you can easily stop tinkering with RGB values, wasting hours figuring out the right color combinations to use in your app, and worrying about whether your text will be readable on the various background colors of your app. + +### Features + +

+ Features +

+ +### App Showcase ![New](http://i.imgur.com/BX3b9ES.png) + +###### In an upcoming update we'll begin showcasing some of the best apps and companies making use of Chameleon. If you'd like to see your app featured in this section, make sure to add it [here](https://airtable.com/shrr1WK6dLQBZfXV0). + +## Table of Contents +[● Product Features](https://github.com/ViccAlexander/Chameleon#-product-features) +[● Requirements](https://github.com/ViccAlexander/Chameleon#%EF%B8%8F-requirements) +[● License](https://github.com/ViccAlexander/Chameleon#-license) +[● Contributions](https://github.com/ViccAlexander/Chameleon#-contributions) +[● Documentation](https://github.com/ViccAlexander/Chameleon#-documentation) +[● Storyboard Add-On](https://github.com/ViccAlexander/Chameleon#storyboard-add-on) +[● Author](https://github.com/ViccAlexander/Chameleon#-author) +[● Special Thanks](https://github.com/ViccAlexander/Chameleon#-special-thanks) +[● To Do List](https://github.com/ViccAlexander/Chameleon#-to-do-list) +[● Change Log](https://github.com/ViccAlexander/Chameleon#-change-log) + + + +## 🌟 Product Features + +### 100% Flat & Gorgeous + +Chameleon features over 24 hand-picked colors that come in both light and dark shades. + +

+ Swatches +

+ +### Flat Color Schemes + +Chameleon equips you with 3 different classes of flat color schemes that can be generated from a flat or non-flat color. *In the examples below, the white stars indicate the color used to generate the schemes.* + +###### Analogous Flat Color Scheme + +

+ Analogous Scheme +

+ +###### Complementary Flat Color Scheme +

+ Complementary Scheme +

+ +###### Triadic Flat Color Scheme +

+ Triadic Scheme +

+ +### Contrasting Text +With a plethora of color choices available for text, it's difficult to choose one that all users will appreciate and be able to read. Whether you're in doubt of your text and tint color choices, or afraid to let users customize their profile colors because it may disturb the legibility or usability of the app, you no longer have to worry. With Chameleon, you can ensure that all text stands out independent of the background color. + +Oh... Chameleon works with the status bar as well. : ) + +

+ Status Bar +

+ +### Themes ![Beta](http://i.imgur.com/JyYiUJq.png) + +Chameleon now allows you easily theme your app with as little as **one line of code**. You can set a theme for all your views, and for specific views as well. + +

+ Themes +

+ +### Colors From Images + +Chameleon allows you to seamlessly extract non-flat or flat color schemes from images without hassle. You can also generate the average color from an image with ease. You can now mold the UI colors of a profile, or product based on an image! + +

+ Colors from images +

+ +### Gradient Colors +With iOS 7 & 8, Apple mainstreamed flat colors. Now, with the release of iOS 9, Chameleon strives to elevate the game once more. Say hello to gradient colors. Using one line of code, you can easily set any object's color properties to a gradient (background colors, text colors, tint colors, etc). Other features, like Chameleon's contrasting feature, can also be applied to create a seamless product. Experimentation is encouraged, and gutsiness is applauded! + +

+ Gradients +

+ +![](http://i.imgur.com/2jN72eh.png) + +### Xcode Quick Help Documentation + +Chameleon's documentation, while written as clearly and concisely as possible may still render some slightly confused. But don't fret! Staying true to our vision of simplifying the entire color process, we added Xcode Quick Help's Documentation Support! Simply highlight a Chameleon method or tap it with three fingers to find out more about what it is and what it does! + +

+ Xcode Quick Help Documentation +

+ +### Storyboard Palette + +If you're like me and love to use storyboard, Chameleon's got you covered. We've provided you with a quick and easy way to access Chameleon colors right from Storyboard, and any other app that uses the color picker (i.e. TextEdit). + +

+ Chameleon Palette +

+ +## ⚠️ Requirements + +* Objective-C or Swift +* Requires a minimum of iOS 7.0 for Objective-C (No active development for anything earlier, but may work with 6.0) and a minimum of iOS 8.0 for Swift. +* Requires Xcode 6.3 for use in any iOS Project + +## 🔑 License +Chameleon is released and distributed under the terms and conditions of the [MIT license](https://github.com/ViccAlexander/Chameleon/blob/master/LICENSE.md). + +## 👥 Contributions +If you run into problems, please open up an issue. We also actively welcome pull requests. By contributing to Chameleon you agree that your contributions will be licensed under its MIT license. + +If you use Chameleon in your app we would love to hear about it! Drop Vicc a line on [twitter](http://twitter.com/viccsmind). + +## 📗 Documentation +All methods, properties, and types available in Chameleon are documented below. + +#####Documentation Table of Contents +[● Installation](https://github.com/ViccAlexander/Chameleon#installation) +[● Storyboard-Add On](https://github.com/ViccAlexander/Chameleon#storyboard-add-on-) +[● Usage](https://github.com/ViccAlexander/Chameleon#usage) +[● UIColor Methods](https://github.com/ViccAlexander/Chameleon#uicolor-methods) +[● Colors From Images](https://github.com/ViccAlexander/Chameleon#colors-from-images--1) +[● UIStatusBarStyle Methods](https://github.com/ViccAlexander/Chameleon#uistatusbarstyle-methods) +[● Color Scheme Methods](https://github.com/ViccAlexander/Chameleon#color-schemes-methods) +[● Theme Methods](https://github.com/ViccAlexander/Chameleon#theme-methods-) + +###Installation +####CocoaPods Installation +Chameleon is now available on [CocoaPods](http://cocoapods.org). Simply add the following to your project Podfile, and you'll be good to go. + +######Objective-C +```ruby +use_frameworks! + +pod 'ChameleonFramework' +``` +######Swift +```ruby +use_frameworks! + +pod 'ChameleonFramework/Swift' +``` + +###### **Note:** Swift support for Chameleon 2.0 is almost complete. + +======= +####Carthage Installation +Add this to your Cartfile: +```ruby +github "ViccAlexander/Chameleon" +``` + +======= +####Manual Installation +If you rather install this framework manually, just drag and drop the Chameleon folder into your project, and make sure you check the following boxes. Note: Don't forget to manually import the *QuartzCore* & *CoreGraphics* framework if you plan on using gradient colors! + +

+ Manual Installation +

+ +If you're working with Swift and are manually installing Chameleon, there's an additional step. Make sure to download and drag the following file, [ChameleonShorthand.swift](https://github.com/ViccAlexander/Chameleon/blob/master/Pod/Classes/Swift/ChameleonShorthand.swift), into your project, and you'll be good to go. + +####Storyboard Add-On +Using Chameleon's awesome palette in Storyboard is easy! Simply download and install [Chameleon Palette](https://github.com/ViccAlexander/Chameleon/blob/master/Extras/Chameleon.dmg?raw=true). + +Once installed, make sure to restart XCode. You'll find all of Chameleon's colors in the Palette Color Picker whenever they're needed! :) + +

+ Chameleon Palette +

+ +

+ Chameleon Palette +

+ +###Usage +To use the myriad of features in Chameleon, include the following import: + +###### If you installed Chameleon using cocoapods: + +######Objective-C + +``` objective-c +#import +``` + +######Swift: +``` swift +import ChameleonFramework +``` + +###### If you installed Chameleon manually: +``` objective-c +#import "Chameleon.h" +``` +###UIColor Methods +[● Flat Colors](https://github.com/ViccAlexander/Chameleon#flat-colors) +[● Random Colors](https://github.com/ViccAlexander/Chameleon#random-colors) +[● Complementary Colors](https://github.com/ViccAlexander/Chameleon#complementary-colors) +[● Contrasting Colors](https://github.com/ViccAlexander/Chameleon#contrasting-colors) +[● Flattening Non-Flat Colors](https://github.com/ViccAlexander/Chameleon#flattening-non-flat-colors) +[● Gradient Colors](https://github.com/ViccAlexander/Chameleon#gradient-colors-1) +[● Hex Colors](https://github.com/ViccAlexander/Chameleon#hex-colors-) +[● Lighter & Darker Colors](https://github.com/ViccAlexander/Chameleon#lighter-and-darker-colors-) + +####Flat Colors +Using a flat color is as easy as adding any other color in your app (if not easier). For example, to set a view's background property to a flat color with a dark shade, you simply have to do the following: + +#####Normal Convention: + +######Objective-C +``` objective-c +self.view.backgroundColor = [UIColor flatGreenColorDark]; +``` +######Swift +``` swift +view.backgroundColor = UIColor.flatGreenColorDark() +``` + +#####Chameleon Shorthand: + +######Objective-C +``` objective-c +self.view.backgroundColor = FlatGreenDark; +``` +######Swift +``` swift +view.backgroundColor = FlatGreenDark() +``` + +Setting the color for a light shade is the same, except without adding the *Dark* suffix. (By default, all colors without a *Dark* suffix are light shades). For example: + +#####Normal Convention: +######Objective-C +``` objective-c +self.view.backgroundColor = [UIColor flatGreenColor]; +``` +######Swift +``` swift +view.backgroundColor = UIColor.flatGreenColor() +``` + +#####Chameleon Shorthand: + +######Objective-C +``` objective-c +self.view.backgroundColor = FlatGreen; +``` +######Swift +``` swift +view.backgroundColor = FlatGreen() +``` + +####Random Colors +There are four ways to generate a random flat color. If you have no preference as to whether you want a light shade or a dark shade, you can do the following: + +#####Normal Convention: +######Objective-C +``` objective-c +self.view.backgroundColor = [UIColor randomFlatColor]; +``` +######Swift +``` swift +view.backgroundColor = UIColor.randomFlatColor() +``` + +#####Chameleon Shorthand: +###### Objective-C +``` objective-c +self.view.backgroundColor = RandomFlatColor; +``` + +######Swift +``` swift +view.backgroundColor = RandomFlatColor() +``` + +Otherwise, you can perform the following method call to specify whether it should return either a light or dark shade: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithRandomFlatColorOfShadeStyle:UIShadeStyleLight]; +``` + +######Swift +``` swift +UIColor(randomFlatColorOfShadeStyle:.Light) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +RandomFlatColorWithShade(UIShadeStyleLight); +``` +######Swift +``` swift +RandomFlatColorWithShade(.Light) +``` + +**UIShadeStyles:** +- `UIShadeStyleLight` (`UIShadeStyle.Light` in Swift) +- `UIShadeStyleDark` (`UIShadeStyle.Dark` in Swift) + +##### Choosing A Random Color From a List of Colors ![New](http://i.imgur.com/BX3b9ES.png) + +If you need to be a bit more selective and only display a random color from a set list of colors, you can use the following method: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithRandomColorInArray:@[FlatWhite, FlatRed, FlatBlue]]; +``` + +######Swift +``` swift +TBA +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +RandomFlatColorInArray(@[FlatWhite, FlatRed, FlatBlue]) +``` +######Swift +``` swift +TBA +``` + +##### Choosing A Random Flat Color But Excluding A Few ![New](http://i.imgur.com/BX3b9ES.png) + +Last but certainly not least, you can also choose form the list of random colors and exclude the ones you don't want. For example say you want to randomly select a flat color for a user's profile, but don't want to use any blacks, grays, or whites. You can simply do: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithRandomFlatColorExcludingColorsInArray:@[FlatBlack, FlatBlackDark, FlatGray, FlatGrayDark, FlatWhite, FlatWhiteDark]]; +``` + +######Swift +``` swift +TBA +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +RandomFlatColorExcluding(@[FlatBlack, FlatBlackDark, FlatGray, FlatGrayDark, FlatWhite, FlatWhiteDark]) +``` +######Swift +``` swift +TBA +``` + +####Complementary Colors +To generate a complementary color, perform the following method call, remembering to specify the color whose complement you want: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithComplementaryFlatColorOf:(UIColor *)someUIColor]; +``` + +######Swift +``` swift +UIColor(complementaryFlatColorOf:someUIColor) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +ComplementaryFlatColorOf(color); +``` + +######Swift +``` swift +ComplementaryFlatColorOf(color) +``` + +####Contrasting Colors +The contrasting color feature returns either a dark color a light color depending on what the Chameleon algorithm believes is a better choice. You can specify whether the dark or light colors are flat: *`([UIColor flatWhiteColor]` & `[UIColor flatBlackColorDark]`)* or non-flat *(`[UIColor whiteColor]` & `[UIColor blackColor]`).* + +If you're trying to set a `UILabel's textColor` property, make sure you provide the `UILabel's backgroundColor`. If your label has a clear `backgroundColor`, just provide the `backgroundColor` property of the object directly behind the `UILabel`. + +Here's an example: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat]; +``` + +######Swift +``` swift +UIColor(contrastingBlackOrWhiteColorOn:UIColor!, isFlat:Bool) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +ContrastColor(backgroundColor, isFlat); +``` + +######Swift +``` swift +ContrastColor(backgroundColor, isFlat) +``` + +####Flattening Non-Flat Colors +As mentioned previously, this feature is unique to Chameleon. While this feature is in its early stages of operation and can be improved, it is accurate in finding the nearest flat version of any color in the spectrum, and very simple to use: + +#####Normal Convention: +######Objective-C +``` objective-c +[(UIColor *)color flatten]; +``` + +######Swift +``` swift +UIColor.pinkColor().flatten() +``` + +#### Gradient Colors +Using a gradient to color an object usually requires a couple of lines of code plus many more lines to superimpose smart contrasting text. Thankfully, Chameleon takes care of that for you. We've introduced a new way to have multicolored objects, and that's with gradients! + +#####Gradient Styles +Chameleon provides three simple gradient styles. Gradients can be created from any number of colors you desire as long as at least two colors are provided. Don't forget that the contrasting text feature is also compatible with gradient colors! + +**UIGradientStyles:** +* `UIGradientStyleLeftToRight` (UIGradientStyle.LeftToRight in Swift) +* `UIGradientStyleTopToBottom` (UIGradientStyle.TopToBottom in Swift) +* `UIGradientStyleRadial` (UIGradientStyle.Radial in Swift) + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithGradientStyle:(UIGradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray *)colors]; +``` + +######Swift +``` swift +UIColor(gradientStyle:UIGradientStyle, withFrame:CGRect, andColors:[UIColor]) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +GradientColor(gradientStyle, frame, colors); +``` + +######Swift +``` swift +GradientColor(gradientStyle, frame, colors) +``` + +**Objective-C Note**: If you use the Chameleon Shorthand, and use the `NSArray` literal ```@[]``` to set the array of colors, make sure you add parenthesis around it, or else you'll get an error. + +Note: `UIGradientStyleRadial` only uses a maximum of 2 colors at the moment. So if more colors are provided, they will not show. + +#### Hex Colors + +One of the most requested features, *hex colors*, is now available. You can simply provide a hex string with or without a *#* sign: + +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithHexString:(NSString *)string]; +``` + +######Swift +``` swift +UIColor(hexString:string) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +HexColor(hexString) +``` + +######Swift +``` swift +HexColor(hexString) +``` +#### Hex Values ![New](http://i.imgur.com/BX3b9ES.png) + +Retrieving the `hexValue` of a UIColor is just as easy. + +######Objective-C +``` objective-c +[FlatGreen hexValue]; //Returns @"2ecc71" +``` + +######Swift +``` swift +FlatGreen.hexValue //Returns @"2ecc71" +``` + +#### Lighter and Darker Colors + +Sometimes all you need is a color a shade lighter or a shade darker. Well for those rare, but crucial moments, Chameleon's got you covered. You can now lighten any color the following way: + +#####Normal Convention: +######Objective-C +``` objective-c +[color lightenByPercentage:(CGFloat)percentage]; +``` + +######Swift +``` swift +color.lightenByPercentage(percentage: CGFloat) +``` + +You can also generate a darker version of a color: + +#####Normal Convention: +######Objective-C +``` objective-c +[color darkenByPercentage:(CGFloat)percentage]; +``` + +######Swift +``` swift +color.darkenByPercentage(percentage: CGFloat) +``` + +### Colors From Images + +Chameleon now supports the extraction of colors from images. You can either generate both flat and non-flat color schemes from an image, or easily extract the average color. + +To generate a color scheme simply do the following: +#####Normal Convention: +######Objective-C +``` objective-c +[NSArray arrayOfColorsFromImage:(UIImage *)image withFlatScheme:(BOOL)flatScheme]; +``` + +######Swift (**Array extension missing**) +``` swift +NSArray(ofColorsFromImage: UIImage, withFlatScheme: Bool) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +ColorsFromImage(image, isFlatScheme) +``` + +######Swift +``` swift +ColorsFromImage(image, isFlatScheme) +``` + +To extract the average color from an image, you can also do: +#####Normal Convention: +######Objective-C +``` objective-c +[UIColor colorWithAverageColorFromImage:(UIImage *)image]; +``` + +######Swift +``` swift +UIColor(averageColorFromImage: UIImage) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +AverageColorFromImage(image) +``` + +######Swift +``` swift +AverageColorFromImage(image) +``` + +###UIStatusBarStyle Methods +####Contrasting UIStatusBarStyle +Many apps on the market, even the most popular ones, overlook this aspect of a beautiful app: the status bar style. Chameleon has done something no other framework has... it has created a new status bar style: `UIStatusBarStyleContrast`. Whether you have a `ViewController` embedded in a `NavigationController`, or not, you can do the following: + +#####Normal Convention: +######Objective-C +``` objective-c +[self setStatusBarStyle:UIStatusBarStyleContrast]; +``` + +######Swift +``` swift +self.setStatusBarStyle(UIStatusBarStyleContrast) +``` +######**Note**: Make sure that the key *View controller-based status bar appearance* in **Info.plist** is set to `YES`. + +###Color Schemes Methods +######**Note**: *Due to the limited number of flat colors currently available, color schemes may return results that reuse certain flat colors. Because of this redundancy, we have provided an option to return either a flat color scheme or a non-flat color scheme until more flat colors are added to the inventory.* + +The initial color can be either a non-flat color or flat color. Chameleon will return an `NSArray` of 5 `UIColors` in which the original color will be the third object of the scheme. This allows for Chameleon to designate the colors of the color scheme (2 colors counter-clockwise and 2 clockwise from the initial color), and thus, the chosen colors are aligned specifically in that order. + +####Analogous Color Scheme +An analogous color scheme uses three adjacent colors on the color wheel. According to Wikipedia, it’s best used with either warm or cool colors, creating a cohesive collection with certain temperature qualities as well as proper color harmony; however, this particular scheme lacks contrast and is less vibrant than complementary schemes. Within the scheme, choose one color to dominate and two to support. The remaining two colors should be used (along with black, white or gray) as accents. + +####Complementary Color Scheme +A complementary color scheme uses opposite colors on the color wheel. To put into slightly more technical terms, they are two colors that, when combined, produce a neutral color. Complementary colors are tricky to use extensively, but work well when you want a point of emphasis. Complementary colors are generally not favorable to use for text. + +####Triadic Color Scheme +A triadic scheme uses evenly spaced colors on the color wheel. The colors tend to be richly vivid and offer a higher degree of contrast while, at the same time, retain color harmony. Let one color dominate and use the two others for accent. + +####Getting Colors in a Color Scheme +To retrieve an array of colors, first make sure to initialize an NSMutableArray (in case you want to use the same array to replace with different colors later): + +#####Normal Convention: +######Objective-C +``` objective-c +NSMutableArray *colorArray = [NSMutableArray alloc] initWithArray:[NSArray arrayOfColorsWithColorScheme:(ColorScheme)colorScheme + with:(UIColor *)color + flatScheme:(BOOL)isFlatScheme]]; +``` + +######Swift +``` swift +var colorArray = NSArray(ofColorsWithColorScheme:ColorScheme, with:UIColor!, flatScheme:Bool) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +NSMutableArray *colorArray = [[NSMutableArray alloc] initWithArray:ColorScheme(colorSchemeType, color, isFlatScheme)]; +``` + +######Swift +``` swift +var colorArray = ColorSchemeOf(colorSchemeType, color, isFlatScheme) +``` + +#####Example: +Assuming you want to generate an analogous color scheme for the light shade of Flat Red, perform the following method call: + +#####Normal Convention: +######Objective-C +``` objective-c +NSMutableArray *colorArray = [NSMutableArray alloc] initWithArray:[NSArray arrayOfColorsWithColorScheme:ColorSchemeAnalogous + with:[UIColor flatRedColor] + flatScheme:YES]]; +``` + +######Swift +``` swift +var colorArray = NSArray(ofColorsWithColorScheme:ColorScheme.Analogous, with:UIColor.flatRedColor(), flatScheme:true) +``` + +#####Chameleon Shorthand: +######Objective-C +``` objective-c +NSMutableArray *colorArray = [[NSMutableArray alloc] initWithArray:ColorScheme(ColorSchemeAnalogous, FlatRed, YES)]; +``` + +######Swift +``` swift +var colorArray = ColorSchemeOf(ColorScheme.Analogous, FlatRed(), true) +``` + +You can then retrieve each individual color the same way you would normally retrieve any object from an array: + +######Objective-C +```objective-c +UIColor *firstColor = colorArray[0]; +``` + +######Swift +``` swift +var firstColor = colorArray[0] as! UIColor +``` + +###Theme Methods + +With Chameleon, you can now specify a global color theme with simply one line of code (It even takes care of dealing with the status bar style as well)! Here's one of three methods to get you started. `ContentStyle` allows you to decide whether text and a few other elements should be white, black, or whichever contrasts more over any UI element's `backgroundColor`. + +To set a global theme, you can do the following in your app delegate: + +#####Normal Convention: +######Objective-C +``` objective-c +[Chameleon setGlobalThemeUsingPrimaryColor:(UIColor *)color withContentStyle:(UIContentStyle)contentStyle]; +``` + +But what if you want a different theme for a specific `UIViewController?` No problem, Chameleon allows you to override the global theme in any `UIViewController` and `UINavigationController`, by simply doing the following: + +#####Normal Convention: +######Objective-C +```objective-c +//This would go in the controller you specifically want to theme differently +[self setThemeUsingPrimaryColor:FlatMint withSecondaryColor:FlatBlue andContentStyle:UIContentStyleContrast]; +``` + +###### **Note:** In order for the status bar style to automatically be set using a theme, you need to make sure that the *View controller-based status bar appearance* key in **Info.plist** is set to `NO`. + +#### Navigation Bar Hairline + +![No Hairline](http://i.imgur.com/tjwx53y.png) + +As of `2.0.3` the navigation bar hairline view is no longer hidden by default. However, if you're seeking a true flat look (like the image above), you can hide the hairline at the bottom of the navigation bar by doing the following: + +######Objective-C +```objective-c +[self.navigationController setHidesNavigationBarHairline:YES]; + +//or + +self.navigationController.hidesNavigationBarHairline = YES; +``` + +## 👑 Author +Chameleon was developed by **Vicc Alexander** [(@ViccsMind)](https://twitter.com/viccsmind) in 2014. Currently, it is being maintained by [@ViccAlexander](https://github.com/ViccAlexander) and [@Bre7](https://github.com/bre7). + +##### Support ☕️ +If you enjoy Chameleon and would like to buy us a coffee we'd appreciate it. Donate + +## 📝 To Do List +* ~~Cocoapods Support~~ ![1.0.1](http://i.imgur.com/8Li5aRR.png) +* ~~Table of Contents~~ ![1.0.1](http://i.imgur.com/8Li5aRR.png) +* ~~Storyboard Color Picker Add-On~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png) +* ~~Xcode In-App Documentation~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png) +* ~~Switch from RGB values over to HSB and LAB~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png) +* ~~Gradient Colors~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png) +* ~~Update GradientStyle & ShadeStyle Syntax~~ ![1.1.1](http://i.imgur.com/AHxj8Rb.png) +* ~~Add Radial Gradient Support~~ ![1.1.1](http://i.imgur.com/AHxj8Rb.png) +* ~~Fix Swift Conflict with `initWithArray:for:flatScheme:` method~~ ![1.1.12](http://i.imgur.com/7NrZ7yx.png) +* ~~Swift Support~~ ![1.1.3](http://i.imgur.com/WgpBlLo.png) +* ~~Color Scheme From Images~~ ![2.0.0](http://i.imgur.com/HdE8kjQ.png) +* ~~UIAppearance Convenience Methods~~ ![2.0.0](http://i.imgur.com/HdE8kjQ.png) +* ~~Add option to hide `NavigationBar` hairline~~ ![2.0.3](http://i.imgur.com/DmlOKPJ.png) +* Allow Gradient Colors to Adapt To Frame Changes + +## 📄 Change Log + +### See [Changelog.md](https://github.com/ViccAlexander/Chameleon/blob/master/CHANGELOG.md) 👀 + diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon.h new file mode 120000 index 0000000..f0cd1b4 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonConstants.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonConstants.h new file mode 120000 index 0000000..51aa580 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonConstants.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonEnums.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonEnums.h new file mode 120000 index 0000000..8dae61b --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonEnums.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonMacros.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonMacros.h new file mode 120000 index 0000000..f8f6295 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/ChameleonMacros.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon_.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon_.h new file mode 120000 index 0000000..79c30ab --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/Chameleon_.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/NSArray+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/NSArray+Chameleon.h new file mode 120000 index 0000000..7ff10d4 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/NSArray+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIAppearance+Swift.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIAppearance+Swift.h new file mode 120000 index 0000000..63a7d28 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIAppearance+Swift.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIButton+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIButton+Chameleon.h new file mode 120000 index 0000000..0fac48a --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIButton+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+Chameleon.h new file mode 120000 index 0000000..05e4379 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+ChameleonPrivate.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+ChameleonPrivate.h new file mode 120000 index 0000000..9b926b3 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIColor+ChameleonPrivate.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIImage+ChameleonPrivate.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIImage+ChameleonPrivate.h new file mode 120000 index 0000000..c93db3d --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIImage+ChameleonPrivate.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UILabel+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UILabel+Chameleon.h new file mode 120000 index 0000000..4350e1e --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UILabel+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UINavigationController+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UINavigationController+Chameleon.h new file mode 120000 index 0000000..2052867 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UINavigationController+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIView+ChameleonPrivate.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIView+ChameleonPrivate.h new file mode 120000 index 0000000..9713ec0 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIView+ChameleonPrivate.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIViewController+Chameleon.h b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIViewController+Chameleon.h new file mode 120000 index 0000000..be31ef4 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/ChameleonFramework/UIViewController+Chameleon.h @@ -0,0 +1 @@ +../../../ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/SIAlertView/SIAlertView.h b/HeadsUpper/Pods/Headers/Private/SIAlertView/SIAlertView.h new file mode 120000 index 0000000..630cc31 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/SIAlertView/SIAlertView.h @@ -0,0 +1 @@ +../../../SIAlertView/SIAlertView/SIAlertView.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Manifest.lock b/HeadsUpper/Pods/Manifest.lock new file mode 100644 index 0000000..e488d27 --- /dev/null +++ b/HeadsUpper/Pods/Manifest.lock @@ -0,0 +1,15 @@ +PODS: + - ChameleonFramework (2.1.0): + - ChameleonFramework/Default (= 2.1.0) + - ChameleonFramework/Default (2.1.0) + - SIAlertView (1.3) + +DEPENDENCIES: + - ChameleonFramework (~> 2.1) + - SIAlertView (~> 1.3) + +SPEC CHECKSUMS: + ChameleonFramework: d21a3cc247abfe5e37609a283a8238b03575cf64 + SIAlertView: 20c794b55eaf44d888773ea51647cf8907723919 + +COCOAPODS: 0.39.0 diff --git a/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj b/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..dd3f4a0 --- /dev/null +++ b/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,810 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 00E3A68D030F24BE47B99D1D1A1720E2 /* UIColor+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = A3BCA2F1E01FF8D0FFC4E4F8160F8C87 /* UIColor+ChameleonPrivate.m */; }; + 072BEEF7E71F00675E87028A9A668B84 /* UIImage+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6637AFCB73A334E31DD8A7EFDC501600 /* UIImage+ChameleonPrivate.m */; }; + 091B40733A0B4B0FCE823240D270FF06 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DD25CA4A497622D5ABF4C433D79E4DE /* QuartzCore.framework */; }; + 1483EA837F546A7A55E8B92DA0696C53 /* SIAlertView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 2A54E2013CED788D2D39AE1C1C877A0C /* SIAlertView.bundle */; }; + 160634C0F5454A32E810DDF5BA9E5985 /* NSArray+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = B6DCD53CB08A4859433F3DC4B9501CE1 /* NSArray+Chameleon.m */; }; + 1716FA0939818C49FE4BBE6A658E9834 /* UIButton+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = B8F2C0E6EAB6D47B2E8AF30242BC246D /* UIButton+Chameleon.m */; }; + 1DE26E57570167EE496080D68F855A01 /* UIImage+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CB5A4AB98ACC9E4DFD289E701C04A29 /* UIImage+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DD25CA4A497622D5ABF4C433D79E4DE /* QuartzCore.framework */; }; + 23795D7EC1AF274A6AFF4233B1E84C4C /* UINavigationController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7914C123AFB56C6701092B7E00BE47B7 /* UINavigationController+Chameleon.m */; }; + 2B47AEEA98B4A65A665516AA3437EA76 /* SIAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 32EFB456B5BA92AB91C68B8EF26926A4 /* SIAlertView.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 2E2946436612A5B920BE18E09BF80CAF /* UIViewController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 723E4A603FF6A916466C973924BD903F /* UIViewController+Chameleon.m */; }; + 3132A9EBC1F85B6971B934C88914CD58 /* UILabel+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 7F21456E13F9AED0F757507B892480A0 /* UILabel+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3CCCC6F0C10F65283522C54CF1D6E761 /* UIButton+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = A5B524D8AE72164D0C76423423D479D8 /* UIButton+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3D1FF907F6AD5186FAF926C0F20083AE /* Chameleon_.m in Sources */ = {isa = PBXBuildFile; fileRef = 06EAFDFACB98DBA9273EAC6BB9967BB1 /* Chameleon_.m */; }; + 41E19345B5C2331DAA02119D782F4E5F /* ChameleonMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 373BEE1A8E92CB0B60F564280533A12D /* ChameleonMacros.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE437620300D81EED04DF8C0301AF9D9 /* Foundation.framework */; }; + 49A14DF7A89578DE4E8CD7F7AAB1D699 /* Pods-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4B181B0AC8894DE05050B3F6718D392C /* ChameleonConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 978B486F411F8C3C5F07D3358FE2E593 /* ChameleonConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4E53C48294089DC928E3A7BD1C2DE4D7 /* UIColor+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 26DD4DDB1508A6EE65533465299FED1A /* UIColor+Chameleon.m */; }; + 5604C2271161C41071A48BCDF179555F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE437620300D81EED04DF8C0301AF9D9 /* Foundation.framework */; }; + 5BF38591007E7E4ADAD878E405949598 /* ChameleonConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 041FAB57265F17838D0FA75BC7A3A2C5 /* ChameleonConstants.m */; }; + 7A8C05065D9F9BA2C218F75AD6B1F798 /* UIAppearance+Swift.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A265F2868D818ECF26C9AB6EACD9768 /* UIAppearance+Swift.m */; }; + 7EDDB8F47291F592694D7135A10DAFFF /* UIViewController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = D5E6D9EE0EF8A7520458EA3E99567E70 /* UIViewController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8A86ECB00FF15DDC31EFC817F1BE5AFC /* SIAlertView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E7AA62217483FAF29BE16411ACEC2A91 /* SIAlertView-dummy.m */; }; + 974A95C15CF27EA3C48761817C291D06 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE437620300D81EED04DF8C0301AF9D9 /* Foundation.framework */; }; + 9EEBF7B1602C1C17236C4EA0DD9717E2 /* UILabel+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 584685C144DEBE3389B5B0733FDD0D48 /* UILabel+Chameleon.m */; }; + B3429381360BE9C37D00301284E4B63A /* UIView+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 3DDD951754E4EA43E1CA166BA8839671 /* UIView+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BDB126168408D6EF1EA7A0F2707C91E4 /* SIAlertView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9146CD7E4E25E7F6A1A33C69BE31C049 /* SIAlertView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C083AEC875BE2B82D692B7CC42CA6D60 /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */; }; + C5D22B9D6600C31DC02CEC59BDA086B0 /* UIColor+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = F9A6795FC546C38C880E66C28F94C8C0 /* UIColor+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C61ED2CF225C6D9872D34F5455C945D4 /* NSArray+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 6D73050D705E55B946F22ECBC7039A65 /* NSArray+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED04AE2201316F6590E7AD9952706C7B /* UIKit.framework */; }; + C84DFC79CACF46C6275670861ADBA6D4 /* UINavigationController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = F89D49A59E255820C3439F6F49BEC66A /* UINavigationController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CC51E5C010ABC87B9CAAA1CB721A6A94 /* UIColor+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 076062AD9C88B8A3D0449E7948AB9485 /* UIColor+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + D1F4E37DE7B4E3F9576EE04191E512DE /* SIAlertView.h in Headers */ = {isa = PBXBuildFile; fileRef = 1FFDF8E220F368A0000F3C26F21B7744 /* SIAlertView.h */; settings = {ATTRIBUTES = (Public, ); }; }; + DDD470435EE37EBA46CD0FF081559295 /* ChameleonFramework-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F27CDB7E9BE900F691E62718016A79CF /* ChameleonFramework-dummy.m */; }; + E04963F0C6D76377186361A0AF79A4C6 /* Chameleon_.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D7AC29CADAE0DE26742BBE9616860B5 /* Chameleon_.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E53E2CD0E939A133E73880E7B3BB4DBF /* ChameleonEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = F5A14C42EFE44FB60007A31D3530E6B7 /* ChameleonEnums.h */; settings = {ATTRIBUTES = (Public, ); }; }; + ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4AE7FD0E16F3FACCFE19068F1E872D9F /* CoreGraphics.framework */; }; + F32D7BD1DA58639964C91FA86A002AB4 /* UIView+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 37F9055BA9D5DBE95060B68E82BF4EE5 /* UIView+ChameleonPrivate.m */; }; + F5CC9B27F3CF472FE72A905E8C2D7A9D /* Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = BD6B561C6F1FD5B2BDD2A7DB8D50E44D /* Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F85099F6E9B7DB837BAB856EB61A6F07 /* UIAppearance+Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = 8F7C314855318607E61DD9A26B06433D /* UIAppearance+Swift.h */; settings = {ATTRIBUTES = (Public, ); }; }; + FA90B7D6EBE7A289796856FF2B310FC0 /* ChameleonFramework-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2783727458877D859095E5658D29BB5A /* ChameleonFramework-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2AF72017478280B416E083539303C014 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B57F4EE4746045CEAE2D933A3C8EC9E; + remoteInfo = ChameleonFramework; + }; + 3A6C3AD37F601E67BDA840851ED45AA5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97A15D9832A6D9836E6F8C80836D8B75; + remoteInfo = SIAlertView; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 041FAB57265F17838D0FA75BC7A3A2C5 /* ChameleonConstants.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ChameleonConstants.m; path = "Pod/Classes/Objective-C/ChameleonConstants.m"; sourceTree = ""; }; + 06EAFDFACB98DBA9273EAC6BB9967BB1 /* Chameleon_.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = Chameleon_.m; path = "Pod/Classes/Objective-C/Chameleon_.m"; sourceTree = ""; }; + 076062AD9C88B8A3D0449E7948AB9485 /* UIColor+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h"; sourceTree = ""; }; + 0DD25CA4A497622D5ABF4C433D79E4DE /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; + 1D3A46D9964DA3F18BB0E940CA6E75BD /* ChameleonFramework-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-prefix.pch"; sourceTree = ""; }; + 1FFDF8E220F368A0000F3C26F21B7744 /* SIAlertView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SIAlertView.h; path = SIAlertView/SIAlertView.h; sourceTree = ""; }; + 26DD4DDB1508A6EE65533465299FED1A /* UIColor+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+Chameleon.m"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.m"; sourceTree = ""; }; + 2783727458877D859095E5658D29BB5A /* ChameleonFramework-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-umbrella.h"; sourceTree = ""; }; + 2A54E2013CED788D2D39AE1C1C877A0C /* SIAlertView.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = SIAlertView.bundle; path = SIAlertView/SIAlertView.bundle; sourceTree = ""; }; + 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-umbrella.h"; sourceTree = ""; }; + 32EFB456B5BA92AB91C68B8EF26926A4 /* SIAlertView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SIAlertView.m; path = SIAlertView/SIAlertView.m; sourceTree = ""; }; + 373BEE1A8E92CB0B60F564280533A12D /* ChameleonMacros.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonMacros.h; path = "Pod/Classes/Objective-C/ChameleonMacros.h"; sourceTree = ""; }; + 37F9055BA9D5DBE95060B68E82BF4EE5 /* UIView+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.m"; sourceTree = ""; }; + 3CDC515B0C2B9DB0ADC2F51D4AFAFE29 /* SIAlertView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SIAlertView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3DDD951754E4EA43E1CA166BA8839671 /* UIView+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.h"; sourceTree = ""; }; + 4A3413CBD2484E9F677A72E4953D9889 /* ChameleonFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ChameleonFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 4AE7FD0E16F3FACCFE19068F1E872D9F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; + 5696C531B5A5F4C07241E5611DE31EE1 /* ChameleonFramework.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ChameleonFramework.modulemap; sourceTree = ""; }; + 584685C144DEBE3389B5B0733FDD0D48 /* UILabel+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UILabel+Chameleon.m"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.m"; sourceTree = ""; }; + 58F3CE54B546C18A13FDC8E3A7503588 /* SIAlertView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SIAlertView.modulemap; sourceTree = ""; }; + 5CB5A4AB98ACC9E4DFD289E701C04A29 /* UIImage+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h"; sourceTree = ""; }; + 62AF5DF976B3F81B2CF5D71F850D45B0 /* ChameleonFramework.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ChameleonFramework.xcconfig; sourceTree = ""; }; + 6637AFCB73A334E31DD8A7EFDC501600 /* UIImage+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m"; sourceTree = ""; }; + 6A265F2868D818ECF26C9AB6EACD9768 /* UIAppearance+Swift.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIAppearance+Swift.m"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.m"; sourceTree = ""; }; + 6D73050D705E55B946F22ECBC7039A65 /* NSArray+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+Chameleon.h"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.h"; sourceTree = ""; }; + 723E4A603FF6A916466C973924BD903F /* UIViewController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+Chameleon.m"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.m"; sourceTree = ""; }; + 7914C123AFB56C6701092B7E00BE47B7 /* UINavigationController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UINavigationController+Chameleon.m"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.m"; sourceTree = ""; }; + 79A9DEDC89FE8336BF5FEDAAF75BF7FC /* Pods.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Pods.modulemap; sourceTree = ""; }; + 7F21456E13F9AED0F757507B892480A0 /* UILabel+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UILabel+Chameleon.h"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.h"; sourceTree = ""; }; + 7FD93E19B31EF957F36E78849DA048FF /* SIAlertView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SIAlertView.xcconfig; sourceTree = ""; }; + 81F735327FACC507C57D95BB9E24FA72 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 8769814F4B6214554DE1F45633528DD4 /* SIAlertView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-prefix.pch"; sourceTree = ""; }; + 87B213035BAC5F75386F62D3C75D2342 /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; + 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; + 8F7C314855318607E61DD9A26B06433D /* UIAppearance+Swift.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIAppearance+Swift.h"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.h"; sourceTree = ""; }; + 9146CD7E4E25E7F6A1A33C69BE31C049 /* SIAlertView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-umbrella.h"; sourceTree = ""; }; + 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; + 978B486F411F8C3C5F07D3358FE2E593 /* ChameleonConstants.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonConstants.h; path = "Pod/Classes/Objective-C/ChameleonConstants.h"; sourceTree = ""; }; + 9865406D77CEFA9311DCD72C98B42D97 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9D7AC29CADAE0DE26742BBE9616860B5 /* Chameleon_.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon_.h; path = "Pod/Classes/Objective-C/Chameleon_.h"; sourceTree = ""; }; + A3BCA2F1E01FF8D0FFC4E4F8160F8C87 /* UIColor+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m"; sourceTree = ""; }; + A5B524D8AE72164D0C76423423D479D8 /* UIButton+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+Chameleon.h"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.h"; sourceTree = ""; }; + B6DCD53CB08A4859433F3DC4B9501CE1 /* NSArray+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Chameleon.m"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.m"; sourceTree = ""; }; + B8F2C0E6EAB6D47B2E8AF30242BC246D /* UIButton+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+Chameleon.m"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.m"; sourceTree = ""; }; + BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + BD6B561C6F1FD5B2BDD2A7DB8D50E44D /* Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon.h; path = "Pod/Classes/Objective-C/Chameleon.h"; sourceTree = ""; }; + CBC0F7C552B739C909B650A0F42F7F38 /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; + CE437620300D81EED04DF8C0301AF9D9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + D0405803033A2A777B8E4DFA0C1800ED /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; + D5E6D9EE0EF8A7520458EA3E99567E70 /* UIViewController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIViewController+Chameleon.h"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.h"; sourceTree = ""; }; + DA312349A49333542E6F4B36B329960E /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; + E7AA62217483FAF29BE16411ACEC2A91 /* SIAlertView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SIAlertView-dummy.m"; sourceTree = ""; }; + E7F21354943D9F42A70697D5A5EF72E9 /* Pods-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-frameworks.sh"; sourceTree = ""; }; + E8446514FBAD26C0E18F24A5715AEF67 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + ED04AE2201316F6590E7AD9952706C7B /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + F27CDB7E9BE900F691E62718016A79CF /* ChameleonFramework-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ChameleonFramework-dummy.m"; sourceTree = ""; }; + F5A14C42EFE44FB60007A31D3530E6B7 /* ChameleonEnums.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonEnums.h; path = "Pod/Classes/Objective-C/ChameleonEnums.h"; sourceTree = ""; }; + F64E99999DBE42628079C2446EADF04C /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F89D49A59E255820C3439F6F49BEC66A /* UINavigationController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UINavigationController+Chameleon.h"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.h"; sourceTree = ""; }; + F9A6795FC546C38C880E66C28F94C8C0 /* UIColor+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+Chameleon.h"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.h"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3D0E661242C853E94F4299270086801D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */, + 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */, + 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */, + C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3D513C3CADAA4CF54D2F728D38259A6C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5604C2271161C41071A48BCDF179555F /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 961C52CD37B2C0FD801A7F168B71DE31 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 974A95C15CF27EA3C48761817C291D06 /* Foundation.framework in Frameworks */, + 091B40733A0B4B0FCE823240D270FF06 /* QuartzCore.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 14B8B9B15ECBE87983FF987239AB2D7B /* Frameworks */ = { + isa = PBXGroup; + children = ( + A9203A0FF197B8764CD853B6EE3A159E /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + 2BE2B09ADC6BE0DB19DDCB1DC2E51133 /* Resources */ = { + isa = PBXGroup; + children = ( + 2A54E2013CED788D2D39AE1C1C877A0C /* SIAlertView.bundle */, + ); + name = Resources; + sourceTree = ""; + }; + 6BF31815D06DE04F34FBC6B4F9191630 /* Support Files */ = { + isa = PBXGroup; + children = ( + 5696C531B5A5F4C07241E5611DE31EE1 /* ChameleonFramework.modulemap */, + 62AF5DF976B3F81B2CF5D71F850D45B0 /* ChameleonFramework.xcconfig */, + F27CDB7E9BE900F691E62718016A79CF /* ChameleonFramework-dummy.m */, + 1D3A46D9964DA3F18BB0E940CA6E75BD /* ChameleonFramework-prefix.pch */, + 2783727458877D859095E5658D29BB5A /* ChameleonFramework-umbrella.h */, + 9865406D77CEFA9311DCD72C98B42D97 /* Info.plist */, + ); + name = "Support Files"; + path = "../Target Support Files/ChameleonFramework"; + sourceTree = ""; + }; + 75D98FF52E597A11900E131B6C4E1ADA /* Pods */ = { + isa = PBXGroup; + children = ( + E8446514FBAD26C0E18F24A5715AEF67 /* Info.plist */, + 79A9DEDC89FE8336BF5FEDAAF75BF7FC /* Pods.modulemap */, + D0405803033A2A777B8E4DFA0C1800ED /* Pods-acknowledgements.markdown */, + 87B213035BAC5F75386F62D3C75D2342 /* Pods-acknowledgements.plist */, + 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */, + E7F21354943D9F42A70697D5A5EF72E9 /* Pods-frameworks.sh */, + CBC0F7C552B739C909B650A0F42F7F38 /* Pods-resources.sh */, + 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */, + 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */, + DA312349A49333542E6F4B36B329960E /* Pods.release.xcconfig */, + ); + name = Pods; + path = "Target Support Files/Pods"; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, + 14B8B9B15ECBE87983FF987239AB2D7B /* Frameworks */, + 9C9EF741F0EB30003DBFE7F5BE81555C /* Pods */, + C2035F40EEC70EA0797FEA8E0DF8394C /* Products */, + B7B80995527643776607AFFA75B91E24 /* Targets Support Files */, + ); + sourceTree = ""; + }; + 97D2CB8003A447B1623A662BF7FDA68F /* ChameleonFramework */ = { + isa = PBXGroup; + children = ( + D6EEDCA83B3A2B94204016E83734866B /* Default */, + 6BF31815D06DE04F34FBC6B4F9191630 /* Support Files */, + ); + path = ChameleonFramework; + sourceTree = ""; + }; + 9C9EF741F0EB30003DBFE7F5BE81555C /* Pods */ = { + isa = PBXGroup; + children = ( + 97D2CB8003A447B1623A662BF7FDA68F /* ChameleonFramework */, + D941D4B39CD66A6A2A2D968692D16EFA /* SIAlertView */, + ); + name = Pods; + sourceTree = ""; + }; + A9203A0FF197B8764CD853B6EE3A159E /* iOS */ = { + isa = PBXGroup; + children = ( + 4AE7FD0E16F3FACCFE19068F1E872D9F /* CoreGraphics.framework */, + CE437620300D81EED04DF8C0301AF9D9 /* Foundation.framework */, + 0DD25CA4A497622D5ABF4C433D79E4DE /* QuartzCore.framework */, + ED04AE2201316F6590E7AD9952706C7B /* UIKit.framework */, + ); + name = iOS; + sourceTree = ""; + }; + B7B80995527643776607AFFA75B91E24 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + 75D98FF52E597A11900E131B6C4E1ADA /* Pods */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + C2035F40EEC70EA0797FEA8E0DF8394C /* Products */ = { + isa = PBXGroup; + children = ( + 4A3413CBD2484E9F677A72E4953D9889 /* ChameleonFramework.framework */, + 81F735327FACC507C57D95BB9E24FA72 /* Pods.framework */, + 3CDC515B0C2B9DB0ADC2F51D4AFAFE29 /* SIAlertView.framework */, + ); + name = Products; + sourceTree = ""; + }; + D6EEDCA83B3A2B94204016E83734866B /* Default */ = { + isa = PBXGroup; + children = ( + BD6B561C6F1FD5B2BDD2A7DB8D50E44D /* Chameleon.h */, + 9D7AC29CADAE0DE26742BBE9616860B5 /* Chameleon_.h */, + 06EAFDFACB98DBA9273EAC6BB9967BB1 /* Chameleon_.m */, + 978B486F411F8C3C5F07D3358FE2E593 /* ChameleonConstants.h */, + 041FAB57265F17838D0FA75BC7A3A2C5 /* ChameleonConstants.m */, + F5A14C42EFE44FB60007A31D3530E6B7 /* ChameleonEnums.h */, + 373BEE1A8E92CB0B60F564280533A12D /* ChameleonMacros.h */, + 6D73050D705E55B946F22ECBC7039A65 /* NSArray+Chameleon.h */, + B6DCD53CB08A4859433F3DC4B9501CE1 /* NSArray+Chameleon.m */, + 8F7C314855318607E61DD9A26B06433D /* UIAppearance+Swift.h */, + 6A265F2868D818ECF26C9AB6EACD9768 /* UIAppearance+Swift.m */, + A5B524D8AE72164D0C76423423D479D8 /* UIButton+Chameleon.h */, + B8F2C0E6EAB6D47B2E8AF30242BC246D /* UIButton+Chameleon.m */, + F9A6795FC546C38C880E66C28F94C8C0 /* UIColor+Chameleon.h */, + 26DD4DDB1508A6EE65533465299FED1A /* UIColor+Chameleon.m */, + 076062AD9C88B8A3D0449E7948AB9485 /* UIColor+ChameleonPrivate.h */, + A3BCA2F1E01FF8D0FFC4E4F8160F8C87 /* UIColor+ChameleonPrivate.m */, + 5CB5A4AB98ACC9E4DFD289E701C04A29 /* UIImage+ChameleonPrivate.h */, + 6637AFCB73A334E31DD8A7EFDC501600 /* UIImage+ChameleonPrivate.m */, + 7F21456E13F9AED0F757507B892480A0 /* UILabel+Chameleon.h */, + 584685C144DEBE3389B5B0733FDD0D48 /* UILabel+Chameleon.m */, + F89D49A59E255820C3439F6F49BEC66A /* UINavigationController+Chameleon.h */, + 7914C123AFB56C6701092B7E00BE47B7 /* UINavigationController+Chameleon.m */, + 3DDD951754E4EA43E1CA166BA8839671 /* UIView+ChameleonPrivate.h */, + 37F9055BA9D5DBE95060B68E82BF4EE5 /* UIView+ChameleonPrivate.m */, + D5E6D9EE0EF8A7520458EA3E99567E70 /* UIViewController+Chameleon.h */, + 723E4A603FF6A916466C973924BD903F /* UIViewController+Chameleon.m */, + ); + name = Default; + sourceTree = ""; + }; + D941D4B39CD66A6A2A2D968692D16EFA /* SIAlertView */ = { + isa = PBXGroup; + children = ( + 1FFDF8E220F368A0000F3C26F21B7744 /* SIAlertView.h */, + 32EFB456B5BA92AB91C68B8EF26926A4 /* SIAlertView.m */, + 2BE2B09ADC6BE0DB19DDCB1DC2E51133 /* Resources */, + F7EDB826D0DE6BEA0CA87C81A02549ED /* Support Files */, + ); + path = SIAlertView; + sourceTree = ""; + }; + F7EDB826D0DE6BEA0CA87C81A02549ED /* Support Files */ = { + isa = PBXGroup; + children = ( + F64E99999DBE42628079C2446EADF04C /* Info.plist */, + 58F3CE54B546C18A13FDC8E3A7503588 /* SIAlertView.modulemap */, + 7FD93E19B31EF957F36E78849DA048FF /* SIAlertView.xcconfig */, + E7AA62217483FAF29BE16411ACEC2A91 /* SIAlertView-dummy.m */, + 8769814F4B6214554DE1F45633528DD4 /* SIAlertView-prefix.pch */, + 9146CD7E4E25E7F6A1A33C69BE31C049 /* SIAlertView-umbrella.h */, + ); + name = "Support Files"; + path = "../Target Support Files/SIAlertView"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 23EA30184B991664C0B92F5F359CF740 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + BDB126168408D6EF1EA7A0F2707C91E4 /* SIAlertView-umbrella.h in Headers */, + D1F4E37DE7B4E3F9576EE04191E512DE /* SIAlertView.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 40F639DE65D946A85FEBA9C514E7C1F4 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + F5CC9B27F3CF472FE72A905E8C2D7A9D /* Chameleon.h in Headers */, + E04963F0C6D76377186361A0AF79A4C6 /* Chameleon_.h in Headers */, + 4B181B0AC8894DE05050B3F6718D392C /* ChameleonConstants.h in Headers */, + E53E2CD0E939A133E73880E7B3BB4DBF /* ChameleonEnums.h in Headers */, + FA90B7D6EBE7A289796856FF2B310FC0 /* ChameleonFramework-umbrella.h in Headers */, + 41E19345B5C2331DAA02119D782F4E5F /* ChameleonMacros.h in Headers */, + C61ED2CF225C6D9872D34F5455C945D4 /* NSArray+Chameleon.h in Headers */, + F85099F6E9B7DB837BAB856EB61A6F07 /* UIAppearance+Swift.h in Headers */, + 3CCCC6F0C10F65283522C54CF1D6E761 /* UIButton+Chameleon.h in Headers */, + C5D22B9D6600C31DC02CEC59BDA086B0 /* UIColor+Chameleon.h in Headers */, + CC51E5C010ABC87B9CAAA1CB721A6A94 /* UIColor+ChameleonPrivate.h in Headers */, + 1DE26E57570167EE496080D68F855A01 /* UIImage+ChameleonPrivate.h in Headers */, + 3132A9EBC1F85B6971B934C88914CD58 /* UILabel+Chameleon.h in Headers */, + C84DFC79CACF46C6275670861ADBA6D4 /* UINavigationController+Chameleon.h in Headers */, + B3429381360BE9C37D00301284E4B63A /* UIView+ChameleonPrivate.h in Headers */, + 7EDDB8F47291F592694D7135A10DAFFF /* UIViewController+Chameleon.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8194B15FED894EC13D853DD54B4EDCFA /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 49A14DF7A89578DE4E8CD7F7AAB1D699 /* Pods-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 0F6E0D39FFA074AB7174E1DA1550F7AA /* Pods */ = { + isa = PBXNativeTarget; + buildConfigurationList = BC1D5AC7333160E9185B5C5D3095EACF /* Build configuration list for PBXNativeTarget "Pods" */; + buildPhases = ( + 8C4550DEC7795FB7F5A29055C5CCB327 /* Sources */, + 3D513C3CADAA4CF54D2F728D38259A6C /* Frameworks */, + 8194B15FED894EC13D853DD54B4EDCFA /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + 6A4ECD181A9E03ED325920D25D8AD047 /* PBXTargetDependency */, + 370BCC4AC7DC4D4667DF5778A3CF31A4 /* PBXTargetDependency */, + ); + name = Pods; + productName = Pods; + productReference = 81F735327FACC507C57D95BB9E24FA72 /* Pods.framework */; + productType = "com.apple.product-type.framework"; + }; + 97A15D9832A6D9836E6F8C80836D8B75 /* SIAlertView */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5BBDDFD748E0DDE02FE0BD0588528C93 /* Build configuration list for PBXNativeTarget "SIAlertView" */; + buildPhases = ( + 13C8BA5DA859DAF05FD7C1268D83E608 /* Sources */, + 961C52CD37B2C0FD801A7F168B71DE31 /* Frameworks */, + 23EA30184B991664C0B92F5F359CF740 /* Headers */, + BC35C920576C39654B2A392EE640289F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SIAlertView; + productName = SIAlertView; + productReference = 3CDC515B0C2B9DB0ADC2F51D4AFAFE29 /* SIAlertView.framework */; + productType = "com.apple.product-type.framework"; + }; + 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */ = { + isa = PBXNativeTarget; + buildConfigurationList = 085A04470B2B1DFD89B69ED30150E0C0 /* Build configuration list for PBXNativeTarget "ChameleonFramework" */; + buildPhases = ( + 89476504D00DCE7D76865152A8267270 /* Sources */, + 3D0E661242C853E94F4299270086801D /* Frameworks */, + 40F639DE65D946A85FEBA9C514E7C1F4 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ChameleonFramework; + productName = ChameleonFramework; + productReference = 4A3413CBD2484E9F677A72E4953D9889 /* ChameleonFramework.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0700; + LastUpgradeCheck = 0700; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = C2035F40EEC70EA0797FEA8E0DF8394C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */, + 0F6E0D39FFA074AB7174E1DA1550F7AA /* Pods */, + 97A15D9832A6D9836E6F8C80836D8B75 /* SIAlertView */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BC35C920576C39654B2A392EE640289F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1483EA837F546A7A55E8B92DA0696C53 /* SIAlertView.bundle in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 13C8BA5DA859DAF05FD7C1268D83E608 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8A86ECB00FF15DDC31EFC817F1BE5AFC /* SIAlertView-dummy.m in Sources */, + 2B47AEEA98B4A65A665516AA3437EA76 /* SIAlertView.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 89476504D00DCE7D76865152A8267270 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3D1FF907F6AD5186FAF926C0F20083AE /* Chameleon_.m in Sources */, + 5BF38591007E7E4ADAD878E405949598 /* ChameleonConstants.m in Sources */, + DDD470435EE37EBA46CD0FF081559295 /* ChameleonFramework-dummy.m in Sources */, + 160634C0F5454A32E810DDF5BA9E5985 /* NSArray+Chameleon.m in Sources */, + 7A8C05065D9F9BA2C218F75AD6B1F798 /* UIAppearance+Swift.m in Sources */, + 1716FA0939818C49FE4BBE6A658E9834 /* UIButton+Chameleon.m in Sources */, + 4E53C48294089DC928E3A7BD1C2DE4D7 /* UIColor+Chameleon.m in Sources */, + 00E3A68D030F24BE47B99D1D1A1720E2 /* UIColor+ChameleonPrivate.m in Sources */, + 072BEEF7E71F00675E87028A9A668B84 /* UIImage+ChameleonPrivate.m in Sources */, + 9EEBF7B1602C1C17236C4EA0DD9717E2 /* UILabel+Chameleon.m in Sources */, + 23795D7EC1AF274A6AFF4233B1E84C4C /* UINavigationController+Chameleon.m in Sources */, + F32D7BD1DA58639964C91FA86A002AB4 /* UIView+ChameleonPrivate.m in Sources */, + 2E2946436612A5B920BE18E09BF80CAF /* UIViewController+Chameleon.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8C4550DEC7795FB7F5A29055C5CCB327 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C083AEC875BE2B82D692B7CC42CA6D60 /* Pods-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 370BCC4AC7DC4D4667DF5778A3CF31A4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = SIAlertView; + target = 97A15D9832A6D9836E6F8C80836D8B75 /* SIAlertView */; + targetProxy = 3A6C3AD37F601E67BDA840851ED45AA5 /* PBXContainerItemProxy */; + }; + 6A4ECD181A9E03ED325920D25D8AD047 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = ChameleonFramework; + target = 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */; + targetProxy = 2AF72017478280B416E083539303C014 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 0B5D563BF2710D60DE742D336E8B2033 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 62AF5DF976B3F81B2CF5D71F850D45B0 /* ChameleonFramework.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/ChameleonFramework/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/ChameleonFramework/ChameleonFramework.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = ChameleonFramework; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 1A5C96D0F0A31EFCD63FB96BAAD533F5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7FD93E19B31EF957F36E78849DA048FF /* SIAlertView.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/SIAlertView/SIAlertView-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/SIAlertView/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/SIAlertView/SIAlertView.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = SIAlertView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 1FB2564B07B1F582B6A9E2C7F5BE87BF /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = DA312349A49333542E6F4B36B329960E /* Pods.release.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + INFOPLIST_FILE = "Target Support Files/Pods/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods/Pods.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_NAME = Pods; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 32D9715C38DF7558D7169BD6DA3D6586 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 62AF5DF976B3F81B2CF5D71F850D45B0 /* ChameleonFramework.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/ChameleonFramework/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/ChameleonFramework/ChameleonFramework.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = ChameleonFramework; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 7158FA9EBFD35A815FA2BB6282BA2796 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + INFOPLIST_FILE = "Target Support Files/Pods/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods/Pods.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_NAME = Pods; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 9EB645C612834738B99727720210C23E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + ONLY_ACTIVE_ARCH = YES; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + AD24BD48E7F1BDA1F55AA83528A9493A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7FD93E19B31EF957F36E78849DA048FF /* SIAlertView.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/SIAlertView/SIAlertView-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/SIAlertView/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/SIAlertView/SIAlertView.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = SIAlertView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + E39CD1E764776175CB82EEC82A6C9948 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 085A04470B2B1DFD89B69ED30150E0C0 /* Build configuration list for PBXNativeTarget "ChameleonFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0B5D563BF2710D60DE742D336E8B2033 /* Debug */, + 32D9715C38DF7558D7169BD6DA3D6586 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9EB645C612834738B99727720210C23E /* Debug */, + E39CD1E764776175CB82EEC82A6C9948 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5BBDDFD748E0DDE02FE0BD0588528C93 /* Build configuration list for PBXNativeTarget "SIAlertView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1A5C96D0F0A31EFCD63FB96BAAD533F5 /* Debug */, + AD24BD48E7F1BDA1F55AA83528A9493A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BC1D5AC7333160E9185B5C5D3095EACF /* Build configuration list for PBXNativeTarget "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7158FA9EBFD35A815FA2BB6282BA2796 /* Debug */, + 1FB2564B07B1F582B6A9E2C7F5BE87BF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/HeadsUpper/Pods/SIAlertView/LICENSE.md b/HeadsUpper/Pods/SIAlertView/LICENSE.md new file mode 100644 index 0000000..38678c8 --- /dev/null +++ b/HeadsUpper/Pods/SIAlertView/LICENSE.md @@ -0,0 +1,7 @@ +Copyright (c) 2013 Sumi Interactive + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/HeadsUpper/Pods/SIAlertView/README.md b/HeadsUpper/Pods/SIAlertView/README.md new file mode 100644 index 0000000..0447b1b --- /dev/null +++ b/HeadsUpper/Pods/SIAlertView/README.md @@ -0,0 +1,87 @@ +SIAlertView +============= + +An UIAlertView replacement with block syntax and fancy transition styles. As seen in [Grid Diary](http://griddiaryapp.com/). + +[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=Sumi-Interactive&url=https://github.com/Sumi-Interactive/SIAlertView&title=SIAlertView&tags=github&category=software) + +## Preview + +![SIAlertView Screenshot](https://github.com/Sumi-Interactive/SIAlertView/raw/master/screenshot.png) + +## Features + +- use window to present +- happy with rotation +- block syntax +- styled transitions +- queue support +- UIAppearance support + +## Installation + +### Cocoapods(Recommended) + +1. Add `pod 'SIAlertView'` to your Podfile. +2. Run `pod install` + +### Manual + +1. Add all files under `SIAlertView/SIAlertView` to your project +2. Add `QuartzCore.framework` to your project + +## Requirements + +- iOS 5.0 and greater +- ARC + +(If you are having any problems, just select your project -> Build Phases -> Compile Sources, double-click the SIAlertView and add `-fobjc-arc`) + +## Examples + +**Code:** + +```objc +SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"SIAlertView" andMessage:@"Sumi Interactive"]; + +[alertView addButtonWithTitle:@"Button1" + type:SIAlertViewButtonTypeDefault + handler:^(SIAlertView *alert) { + NSLog(@"Button1 Clicked"); + }]; +[alertView addButtonWithTitle:@"Button2" + type:SIAlertViewButtonTypeDestructive + handler:^(SIAlertView *alert) { + NSLog(@"Button2 Clicked"); + }]; +[alertView addButtonWithTitle:@"Button3" + type:SIAlertViewButtonTypeCancel + handler:^(SIAlertView *alert) { + NSLog(@"Button3 Clicked"); + }]; + +alertView.willShowHandler = ^(SIAlertView *alertView) { + NSLog(@"%@, willShowHandler", alertView); +}; +alertView.didShowHandler = ^(SIAlertView *alertView) { + NSLog(@"%@, didShowHandler", alertView); +}; +alertView.willDismissHandler = ^(SIAlertView *alertView) { + NSLog(@"%@, willDismissHandler", alertView); +}; +alertView.didDismissHandler = ^(SIAlertView *alertView) { + NSLog(@"%@, didDismissHandler", alertView); +}; + +alertView.transitionStyle = SIAlertViewTransitionStyleBounce; + +[alertView show]; +``` + +## Credits + +SIAlertView was created by [Sumi Interactive](https://github.com/Sumi-Interactive) in the development of [Grid Diary](http://griddiaryapp.com/). + +## License + +SIAlertView is available under the MIT license. See the LICENSE file for more info. diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d.png new file mode 100644 index 0000000000000000000000000000000000000000..fa432a55d32f8e321808401315985797224b4ab7 GIT binary patch literal 1041 zcmaJ=PiWIn7|&324kidYY-5MFOmL!2nzYT@usXY@vxQ}puDCi-%#znNcFBv$tIeti z^AAH1**pll^rQ!c?IiwXcu)r(ytsoP4nY{=X&`zM#h0#~9yUXg_uj|%`+dLf&%2Qx zInmnE*+NlNYbq&a$hz12n)i_ZtIXIcSvqhcheuH!mlYdQF%3;XkTR4>n1PBmef|yX zr>I>A^=uC3u>xFU%5+3GO4oQrviHm^4Qej97^OEw<>WMoBO8Jc z6Y!~ijst?gaKVrua7O{}=XlmnUctu&#gHKKeW3o(B$}<|#f&smk3~*Vx`44IvTV6r zX37Bu*^?|6i9|dOp7#+CpEGS@#r2s^PlG{%j%w=`){zN3Mr8t(aFixWH&ZaIEn3s5 zmx&aNbrp-{7{8ZN!%>$1?`jxZ-VV;dzk0VNcCynJWHZn~C0iwp%lCMpEHQ3F1tU9) z&{U&}=>o#YDIg2PM+ML;E2?gKhQl?4EQ=}A!HTKEloX{22czqnD8*u2I3^{6VLrxj z34V|dB&5C=9}Xl!k`#zHuo6;B1~hR4s}XD>7?2{tAWyJ^+hV<8Ff0;Tg0_AEYC|?M zKrLxe-&sq1XDyppZ5u81Jft15ED^(ct^KFf4HKCkZ@V?PUN1*f|2CRbQ2bzfV!^suV~tTY#W=N5bK`B(13jpbRV^1A%s{l~Ph w_N2Os#+T@CW7Xe_Xl?z=(7V%@e};FrQ|{O9`@?5Wc6ygIl^Bth2G3sk11qCa#{d8T literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d@2x.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-cancel-d@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..8f359b8a5ed12145a0cd57d6d154813afae655fe GIT binary patch literal 1245 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xa$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%qp275hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~NxVni#uSnwVIcSQt4O8oC-e85z5}m^&I-7`vLf zxEMRb^t$9Hm*%GCmB93-AoM!o)C)=sxdlL*T~doO%TiO^it=+6z@E0s#O)SyoaRCG zrr>sq1x~&CK*#8Vq82HtVM4(417gAxE|3FH`l)%q^j-u^*b^$x{9|BX^!Ide45_%) z66EQ1BtT&8naL@#N;lILEp)!{y<&aCyhYEpZ{7m^2dXTBQ`?>}7{1oAQYlk=UHkc= z^4(t#R9!>&O8r>sd)dWd-gC46?`D{vQGUkwH{o!Marl{b6W{FxSpu70On9sQjPq}= z`7_gQ`>i^sFT9jov@COlj(67WX-`yUEt~jym&kF$%6aV9tv?@na$eWPL$9kz=D6bh z@1EC76=jZ3+_g@4ql#z1lNootImA6ytm-;sAQI|(S!6Cl$-Ce440wwcX*5+cK9tlc z;b>~exh=L$Yl}`d&*25T);(RfTp-DPBfE>o1f`wI9XAYkF1>wm=}<+My66YRHW^Ni z?O9K2e~8|9_`$`k{EuBVeeHR1#bXolw{v%BE?%clb7XN6`_Ho73y#&Dh}u4v}$3MR z%5;i&QT*D$i+bA-4|0y57alwb3SJZxeCgWFgEb_1@BR7xe*e#RerRxS zWBty0ilQ1515%Q#b>6pi3;91uj=UgCGmfY6Fv{S9VneD|Lt_vm3?&PbP|=DfmS7h} zZEDw3X`Gh#iz+f0#ltYJVG%Y(b@jNGqUIq6V=$|mQTpq`V;bmMlpYDme%Xq_oIX&p z;c#g%rIzw)M5BAUL6<8M0Rv(MxW>5Yh;EcF>xyLWnOPc?AvhnUSA$B+Lm-B12trK2 zr}{Y#2m-?eLxRBV0lc5%SwDFN9~Trug2;zK<)Mi;Tg!+^slVcjoT79NV@qV&LZQGE z0t~XVEEkDHJPn@r5roevnpkmtrqfnckf5X5x`lOQ0#8vHLlZbklSo%nFswCM)2Wn+ z6pVEhi{%)RD)VdUhH1!BVj*d;5fZhD4}GDDWdgy~?#RAEAj(nN#Nbxn*115zXy3kWfp5zi8|^^;KRw~+zLNsD^zSOPWm zDqO90EWw&wmIT9kt^KRjRTG&XZ@V_Ql3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~NxVnwq(pyBRu~SQt4O8oC-e85z5}m^&I-7`vLf zxEMRb^t$9Hm*%GCmB93-AoM!n)C)=sxdlL*T~doO%TiO^it=+6z@E0s#O4+gV;4&k z6Wr!O^`>BR3q-FoPPga-9itD5TBN9k2?5g&hzU=)Kn^_Vr{)3Edl4{UJFYEW%)r3N z>*?YcQgLfa(80{Z4gz19D)#UPJabNnrhnjgcQAL>vT2U4%09s_ z_&<2I6*5dWm>)9l`J6AFlY_i^3>R$`%WCSqy-hTG?T*WT8`ewpo9BB?a#^JD%lNB% zQ(BLu8H?OO)6ir3eq6lU6ZHC$|IfT=vApOmo8T3jV9EQ1JdS4%|CsTAS@X5~_hc=m7e!BnMZ~(g>qzIG~ThoM-|pEbAixkE!AqNCHvLU;GGy7`FF> zl1jt0(8o!-N{SAKv{eJKF)Y|=8={m25FY_!iWVX^UcMo4MGg^zUV#>j2*@bClO`CL zjHjf@tQ3%m&JH|ib4Wl1P{eI@T(dYkL=<#6w0F!Dffpb!8zOdsN(%`*qMHEsl5Uqo zGYszYk&MUd^D%8WOEWA*qu1wRJe=3Zv3|Vx5XhS;k8(-AyXXs@LPQ2agQKWiE=T6v zq;8H;Odt?&G+5S!5H2gPLD6<;R!d2N2bN?i22^wncNE1DeFBCE6zNV1s!^8JtYVo^ z!6;iaD2Ak+luAHB_&-!t%V-NG!EU_&6t+@%15im|=@X`e8aLYFxH7ni2}G!yDP12g zRWXs#p>Ab#1CI>&@RNclDVk$wEieRui)j`VH3`J{5P>vEMUlBK+TTtGqCQVM>t~oK z+r_%0yg$sgyQ5y7cSlNGUY90RpurMX-sSo$a-CsN4dj^zrg90$-KMVMg`_#9ax9*T zdPS~WITmk4E`@@joYwx;>XHe~kFzZgE;^J)A82UaO*Gh>SNA2*rI?QK;gtQoFU}l! zkJq~QbCKNC+U)sf&xbm{Og$J{n69fmbMW-a;9|0EOWuC8`mkZW@$KBJyY=jy!+HO) zrF&oJts84i%ejsDx#i6Z=i*ZJ_1fXtaJFW#?!$}Lh2uxl*&jWRe+~xwmxx>6exLdj s{oMR?`*x~%W|;23ymkNV>nqxxYV2Kyr{UL3{kn5eW6?POq-*%vAA8DDApigX literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default-d@2x.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default-d@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6d21603e14f6b0ac15c21633067c32221c82ce8c GIT binary patch literal 1247 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xa$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%qp275hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~Nv<8yLE}nH!s$SQwcb8oC-e85z5}m^&I-7`vLf zxEMRb^t$9Hm*%GCmB93-AoQBy)C)=sxdlL*T~doO%TiO^it=+6z@E0s#O)SioaRCG zrr>sq2~NHGK*#8Vq82HtVM4(417gAxE|3FH`l)%q^j-u^*d6aP#2FYE13g_FLn?07 z1bO?lI0)$OJDh*8NtRRHK(f^Ep5xvIIfvLPnS2BB4?=3kR?L(Z2otzr(BRB*EqnLm zGN)&%{9UW6uFB6dJa5bx8oKjORnk4f^D_khE=+wlBl?;5Bo%fQUXI8qMSo7&EWi9C z<=&**KZ-Fh8yIoA*3WqAewI znt<^$&GFrt!MS3gdlEPEnk9_aH1u*MD?^iOjLp?tza4D$B@pScbS?83{ F1OUq6tL6Xz literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-default.png new file mode 100644 index 0000000000000000000000000000000000000000..17eab59209babad2fe43fd721463dd754f35cd59 GIT binary patch literal 1035 zcmaJ=O-K|`93POZBr6CKI}Kw{W;q^U4(OZ8 zDhHvJ63^32HN_ywXdG&;ewa4hA%q z2G0jDBH&J1Nc94i+fq@GfU7x%jSOg!zM@)y6DUF9NHP;b_)RsRC4#|3gi)igr;JY{$E!u$!B-0h0wToNzSUxZxJxl`V)4P!V);5RO%< z*jt1MxhdqoXn^A zpe#j`d@Lx3B`GLYxDwPROkkl3SKsFHHM#yUm^St-0mnEG^iBtwWI1WU*ddk_8;!AX zIaX6|i>ud;g{{eDa4?MD+J9PIG2!{~x7ESLhwA793(vcQ2m49W_y)cd7t>NQ=e_C4 zaQmmpePfNBI&|&lr>3{)d)=>H(K}shGc$A31DE$Mo>|=(T>i53dHy5O^l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~Nv<8yLE}nHyW0SQwcb8oC-e85z5}m^&I-7`vLf zxEMRb^t$9Hm*%GCmB93-AoM!o)C)=sxdlL*T~doO%TiO^it=+6z@E0s#O)SyoaRCG zrr>sq1x~&CK*#8Vq82HtVM4(417gAxE|3FH`l)%q^j-u^*vFi^_!$@&c|2VlLn>~~ z2{O!Ub`ZE@%^03wwQJ9TAeG%-at~`1!d@Mz3;e|3{m;Q};xR8J?@C9l7Y0WoIgFa$ zE4eUkbDx!LnO5e1e8sZNmJ^?C4kfeNHEn<3;%CuNUBJC>X=c@vWs3xtNnd&YAg1jj zr`>@+t2gO9Ucx_X%eADQi3%Jpnpd@M?pUR@@tRlc^*g_q-ZSgy-xE3hasR>Q_lXkQ z&Ys$|q_XX8dT**Hqxx6hzid}5bSgu-mAodUTzJtRE5ho1x^v=ti?+UF89Rkcbuc<45>c0kqBrZVc4!-B=Dqjl_xt@n-5x=m=R5Yg=M`P;4xK9g9H%e?7(x- zh+*sYDajN}39YQ8s~*w8cx=@`Yz%7**@h_f0f={lw4!mumq$+sT#-4VBOrJMBMN$z z!^0+MAC4!b;XWxS6QP56qs<}#6+jWU)qc%lZH~z4vS{y^NdnJ7U>`>;2bB`q@ThJA zJmB%UB`-zc4CA5v0fwOt;Ix;bNiTXCH|1vo3`^JH`G-K>Ou2_m@XdK&=)@7d5E?8= zW-=L1#^=$^G)V=6K}Un8-3Z~fvKka^w`Nrr6nJ1sreZ)v*KkKs?A8Y%N1#ZTQ&5c+ zSP$*cj$1hDi$Q$mgFsdii$Y}5oI z)Xk)>_ZOeUTA+RorLf+#7PV{qjdg22W!3yPWqVmwD64UeM8EFY|^_cv2v zAJ5Pf)kH_Uyf4Bx2PnoDjnMVs0+-jNK^17Qz?E0Ik)m8@7*qp!=7FgU0lC@KRXmq8 zs}zr=zNlWFD;JL?Sd>emU`VI6f3><`Li6KnR|XdyRz@FaXx>dU*e_i#explqF2;wG z_I&HvhON`yaz3rjmbk9WS$pG$nvTrFxq&qg)^^5cN=6g-*uu8EHQR6c-;ZZ6yfr_l z+{pg>*WSE7U3Gn8Vc^pAyO1Rl3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~NxVTDV!b8JW5nyO^068oC-e8Mqibxwx4cni)Gg z8Cf{O^t$9Hm*%GCmB93-!1bCL;M5CB47mkBn_W_iGRsm^+=}vZ6~Lah%Eav!7o6rn z^`_u-i>WJ4z4}1M=!2pbDXL*Y!1M!R!V@l#15f&?dBF5u1Wed1Z1aj37#Q6>T^vIy zZcUjK?{(Ng;8=S4=1eBmkG_I7jSuFt?`>LizRR}Z*Neh0EJw=^8gnRV?QLj!uv_

3+>w5_|A|Bj1|*U=&S zL;gbDpZDi2P(JYf+1HBslizWk-8;Si=X8;Mzk=sRO`U2p`A*conznC3HFJc2xfv>| zO`jud%DAdv(ju;%S8b-Bd8KwJoyA?}hmLooUo5j#sG;B!(J2hZ>y2D})7W|XIo@3; zmM}cBL}UVMiqc8zgvBn*61lS#&Ug52YZNjunEQF7Js#5(a`SQBj1ZTPG#dF>w#0|qz4{FT}X8xMgB8c$b0mvv4FO#nR!s&fDU literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive.png new file mode 100644 index 0000000000000000000000000000000000000000..28f3264e5c4081f75035c44e8565703ae6949ca9 GIT binary patch literal 1033 zcmaJ=O=#0l9M7E0eK;sy{6O@Pm7%aEP1>eyXt%XZ;|gYsuDIS@n!K)|%ZJIE&8E0+ zsIY?vcM-vph(}=}f+$R32%emX2!ib7ZZh;Bc#!$ht(}L>kmSAh=l}ctfB%oSG&Xvn zxBFB#K@h#U5h0J)Bi`59f&XjyiH~?WiLymBZkAC^wjq&H%@PDTU7mt@D66wq-oXSx zwEML}5f!D2ykhEvid0Bn$9=^%c&02AgT9M49Gw(M&uZ_c&NKfIR}vtbt@VU^snE1_3&XtyxGj4d5}#C36NPNvw1y1>I`V8qRK+ zaKUI-wrGY5dMPy>CF%dJy5913P#*5--Iv%Y%vzAnL&u!472LRTpBKvFGd7fwX%|d$ zx>?1siiu38Vp5}z|1BpV9M2}u%jP@1Ol*_ap;*+@DhaAAhY zvgx1@N(*9y;X;`-8%s5@f~m~t&_GSBx`)jii1mg+w{Tw zjfF+V<74;NvV&C*){;6<3ysClUTgnpb<>3B$J@3B7av-q4-Gu;HXiK0=;dGdQe4Xk zse=2Zbp6EUo42oDulKGo!vlxcwiaB*ckd~&L~;F(6K5`!JNiZO_WbsC&yC-IqFbL= z=Qr-xmsf&aKH>uy^gUYi-9n literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive@2x.png b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.bundle/button-destructive@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1a82328a00c35f68fad523dcd1e6c703a73632bf GIT binary patch literal 1187 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xa$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%qp275hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y-fM)1rW~NxVTDV!b8JQUyyO^068oC-e8Mqibxwx4cni)Gg z8Cf{O^t$9Hm*%GCmB93-AoQBx)C)=sxdlL*T~doO%TiO^it=+6z@E0s#O)SCoaRCG zrr>sq5l+4OK*#8Vq82HtVM4(417gAxE|3FH`l)%q^j-u^*!=SQTp1V`MLk^{Ln>~~ z39`;RJoFJfdLYyP0iYtRBt&)HJ z(pIK!o0n^kZ+`!_ugq=jR;M-9`GR)u6XbImLQigBO)lW6yQY4*#dE3PGO0)TA3XDt zIm;6MUB3TLJAc+ikriG`MLZ-V0+*-Q{{Et|+gU3!>@NQetwhPE%i1+WuAbKZA^mW{ z1&Ny~)wAR$N=fN3b5&g4`tlLOSra~Hsd$Nvdz30>rMm^j1qs^t-aKLNm^^8JoS@Cw zX~$Z3sOvW^@9dr3Q9S=mZ}v|2-orDF>6=YGn>t@;PS*NU$>+XKSSf1zy-#NOva=Jd v_iHit3I1R_7r9gY-cFhCv;4Hx8QB;<-OYUedI`sEP_g0Z>gTe~DWM4f3PX@d literal 0 HcmV?d00001 diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.h b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.h new file mode 100644 index 0000000..6d0dfd1 --- /dev/null +++ b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.h @@ -0,0 +1,81 @@ +// +// SIAlertView.h +// SIAlertView +// +// Created by Kevin Cao on 13-4-29. +// Copyright (c) 2013年 Sumi Interactive. All rights reserved. +// + +#import + +extern NSString *const SIAlertViewWillShowNotification; +extern NSString *const SIAlertViewDidShowNotification; +extern NSString *const SIAlertViewWillDismissNotification; +extern NSString *const SIAlertViewDidDismissNotification; + +typedef NS_ENUM(NSInteger, SIAlertViewButtonType) { + SIAlertViewButtonTypeDefault = 0, + SIAlertViewButtonTypeDestructive, + SIAlertViewButtonTypeCancel +}; + +typedef NS_ENUM(NSInteger, SIAlertViewBackgroundStyle) { + SIAlertViewBackgroundStyleGradient = 0, + SIAlertViewBackgroundStyleSolid, +}; + +typedef NS_ENUM(NSInteger, SIAlertViewButtonsListStyle) { + SIAlertViewButtonsListStyleNormal = 0, + SIAlertViewButtonsListStyleRows +}; + +typedef NS_ENUM(NSInteger, SIAlertViewTransitionStyle) { + SIAlertViewTransitionStyleSlideFromBottom = 0, + SIAlertViewTransitionStyleSlideFromTop, + SIAlertViewTransitionStyleFade, + SIAlertViewTransitionStyleBounce, + SIAlertViewTransitionStyleDropDown +}; + +@class SIAlertView; +typedef void(^SIAlertViewHandler)(SIAlertView *alertView); + +@interface SIAlertView : UIView + +@property (nonatomic, copy) NSString *title; +@property (nonatomic, copy) NSString *message; + +@property (nonatomic, assign) SIAlertViewTransitionStyle transitionStyle; // default is SIAlertViewTransitionStyleSlideFromBottom +@property (nonatomic, assign) SIAlertViewBackgroundStyle backgroundStyle; // default is SIAlertViewButtonTypeGradient +@property (nonatomic, assign) SIAlertViewButtonsListStyle buttonsListStyle; // default is SIAlertViewButtonsListStyleNormal + +@property (nonatomic, copy) SIAlertViewHandler willShowHandler; +@property (nonatomic, copy) SIAlertViewHandler didShowHandler; +@property (nonatomic, copy) SIAlertViewHandler willDismissHandler; +@property (nonatomic, copy) SIAlertViewHandler didDismissHandler; + +@property (nonatomic, readonly, getter = isVisible) BOOL visible; + +@property (nonatomic, strong) UIColor *viewBackgroundColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIColor *titleColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIColor *messageColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIFont *titleFont NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIFont *messageFont NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIFont *buttonFont NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIColor *buttonColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIColor *cancelButtonColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, strong) UIColor *destructiveButtonColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +@property (nonatomic, assign) CGFloat cornerRadius NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; // default is 2.0 +@property (nonatomic, assign) CGFloat shadowRadius NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; // default is 8.0 + +- (void)setDefaultButtonImage:(UIImage *)defaultButtonImage forState:(UIControlState)state NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +- (void)setCancelButtonImage:(UIImage *)cancelButtonImage forState:(UIControlState)state NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; +- (void)setDestructiveButtonImage:(UIImage *)destructiveButtonImage forState:(UIControlState)state NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; + +- (id)initWithTitle:(NSString *)title andMessage:(NSString *)message; +- (void)addButtonWithTitle:(NSString *)title type:(SIAlertViewButtonType)type handler:(SIAlertViewHandler)handler; + +- (void)show; +- (void)dismissAnimated:(BOOL)animated; + +@end diff --git a/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.m b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.m new file mode 100644 index 0000000..bde3337 --- /dev/null +++ b/HeadsUpper/Pods/SIAlertView/SIAlertView/SIAlertView.m @@ -0,0 +1,1185 @@ +// +// SIAlertView.m +// SIAlertView +// +// Created by Kevin Cao on 13-4-29. +// Copyright (c) 2013年 Sumi Interactive. All rights reserved. +// + +#import "SIAlertView.h" +#import + +NSString *const SIAlertViewWillShowNotification = @"SIAlertViewWillShowNotification"; +NSString *const SIAlertViewDidShowNotification = @"SIAlertViewDidShowNotification"; +NSString *const SIAlertViewWillDismissNotification = @"SIAlertViewWillDismissNotification"; +NSString *const SIAlertViewDidDismissNotification = @"SIAlertViewDidDismissNotification"; + +#define DEBUG_LAYOUT 0 + +#define MESSAGE_MIN_LINE_COUNT 3 +#define MESSAGE_MAX_LINE_COUNT 5 +#define GAP 10 +#define CANCEL_BUTTON_PADDING_TOP 5 +#define CONTENT_PADDING_LEFT 10 +#define CONTENT_PADDING_TOP 12 +#define CONTENT_PADDING_BOTTOM 10 +#define BUTTON_HEIGHT 44 +#define CONTAINER_WIDTH 300 + +const UIWindowLevel UIWindowLevelSIAlert = 1999.0; // don't overlap system's alert +const UIWindowLevel UIWindowLevelSIAlertBackground = 1998.0; // below the alert window + +@class SIAlertBackgroundWindow; + +static NSMutableArray *__si_alert_queue; +static BOOL __si_alert_animating; +static SIAlertBackgroundWindow *__si_alert_background_window; +static SIAlertView *__si_alert_current_view; + +@interface UIWindow (SIAlert_Utils) + +- (UIViewController *)currentViewController; + +@end + +@implementation UIWindow (SIAlert_Utils) + +- (UIViewController *)currentViewController +{ + UIViewController *viewController = self.rootViewController; + while (viewController.presentedViewController) { + viewController = viewController.presentedViewController; + } + return viewController; +} + +@end + +#ifdef __IPHONE_7_0 +@interface UIWindow (SIAlert_StatusBarUtils) + +- (UIViewController *)viewControllerForStatusBarStyle; +- (UIViewController *)viewControllerForStatusBarHidden; + +@end + +@implementation UIWindow (SIAlert_StatusBarUtils) + +- (UIViewController *)viewControllerForStatusBarStyle +{ + UIViewController *currentViewController = [self currentViewController]; + + if ([currentViewController childViewControllerForStatusBarStyle]) { + return [currentViewController childViewControllerForStatusBarStyle]; + } else { + return currentViewController; + } +} + +- (UIViewController *)viewControllerForStatusBarHidden +{ + UIViewController *currentViewController = [self currentViewController]; + + if ([currentViewController childViewControllerForStatusBarHidden]) { + return [currentViewController childViewControllerForStatusBarHidden]; + } else { + return currentViewController; + } +} + +@end +#endif + + +@interface SIAlertView () + +@property (nonatomic, strong) NSMutableArray *items; +@property (nonatomic, weak) UIWindow *oldKeyWindow; +@property (nonatomic, strong) UIWindow *alertWindow; +#ifdef __IPHONE_7_0 +@property (nonatomic, assign) UIViewTintAdjustmentMode oldTintAdjustmentMode; +#endif +@property (nonatomic, assign, getter = isVisible) BOOL visible; + +@property (nonatomic, strong) UILabel *titleLabel; +@property (nonatomic, strong) UILabel *messageLabel; +@property (nonatomic, strong) UIView *containerView; +@property (nonatomic, strong) NSMutableArray *buttons; + +@property (nonatomic, assign, getter = isLayoutDirty) BOOL layoutDirty; + ++ (NSMutableArray *)sharedQueue; ++ (SIAlertView *)currentAlertView; + ++ (BOOL)isAnimating; ++ (void)setAnimating:(BOOL)animating; + ++ (void)showBackground; ++ (void)hideBackgroundAnimated:(BOOL)animated; + +- (void)setup; +- (void)invalidateLayout; +- (void)resetTransition; + +@end + +#pragma mark - SIBackgroundWindow + +@interface SIAlertBackgroundWindow : UIWindow + +@end + +@interface SIAlertBackgroundWindow () + +@property (nonatomic, assign) SIAlertViewBackgroundStyle style; + +@end + +@implementation SIAlertBackgroundWindow + +- (id)initWithFrame:(CGRect)frame andStyle:(SIAlertViewBackgroundStyle)style +{ + self = [super initWithFrame:frame]; + if (self) { + self.style = style; + self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + self.opaque = NO; + self.windowLevel = UIWindowLevelSIAlertBackground; + } + return self; +} + +- (void)drawRect:(CGRect)rect +{ + CGContextRef context = UIGraphicsGetCurrentContext(); + switch (self.style) { + case SIAlertViewBackgroundStyleGradient: + { + size_t locationsCount = 2; + CGFloat locations[2] = {0.0f, 1.0f}; + CGFloat colors[8] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.75f}; + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); + CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, colors, locations, locationsCount); + CGColorSpaceRelease(colorSpace); + + CGPoint center = CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2); + CGFloat radius = MIN(self.bounds.size.width, self.bounds.size.height) ; + CGContextDrawRadialGradient (context, gradient, center, 0, center, radius, kCGGradientDrawsAfterEndLocation); + CGGradientRelease(gradient); + break; + } + case SIAlertViewBackgroundStyleSolid: + { + [[UIColor colorWithWhite:0 alpha:0.5] set]; + CGContextFillRect(context, self.bounds); + break; + } + } +} + +@end + +#pragma mark - SIAlertItem + +@interface SIAlertItem : NSObject + +@property (nonatomic, copy) NSString *title; +@property (nonatomic, assign) SIAlertViewButtonType type; +@property (nonatomic, copy) SIAlertViewHandler action; + +@end + +@implementation SIAlertItem + +@end + +#pragma mark - SIAlertViewController + +@interface SIAlertViewController : UIViewController + +@property (nonatomic, strong) SIAlertView *alertView; + +@end + +@implementation SIAlertViewController + +#pragma mark - View life cycle + +- (void)loadView +{ + self.view = self.alertView; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [self.alertView setup]; +} + +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration +{ + [self.alertView resetTransition]; + [self.alertView invalidateLayout]; +} + +#ifdef __IPHONE_7_0 +- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration +{ + if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { + [self setNeedsStatusBarAppearanceUpdate]; + } +} +#endif + +- (NSUInteger)supportedInterfaceOrientations +{ + UIViewController *viewController = [self.alertView.oldKeyWindow currentViewController]; + if (viewController) { + return [viewController supportedInterfaceOrientations]; + } + return UIInterfaceOrientationMaskAll; +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation +{ + UIViewController *viewController = [self.alertView.oldKeyWindow currentViewController]; + if (viewController) { + return [viewController shouldAutorotateToInterfaceOrientation:toInterfaceOrientation]; + } + return YES; +} + +- (BOOL)shouldAutorotate +{ + UIViewController *viewController = [self.alertView.oldKeyWindow currentViewController]; + if (viewController) { + return [viewController shouldAutorotate]; + } + return YES; +} + +#ifdef __IPHONE_7_0 +- (UIStatusBarStyle)preferredStatusBarStyle +{ + UIWindow *window = self.alertView.oldKeyWindow; + if (!window) { + window = [UIApplication sharedApplication].windows[0]; + } + return [[window viewControllerForStatusBarStyle] preferredStatusBarStyle]; +} + +- (BOOL)prefersStatusBarHidden +{ + UIWindow *window = self.alertView.oldKeyWindow; + if (!window) { + window = [UIApplication sharedApplication].windows[0]; + } + return [[window viewControllerForStatusBarHidden] prefersStatusBarHidden]; +} +#endif + +@end + +#pragma mark - SIAlert + +@implementation SIAlertView + ++ (void)initialize +{ + if (self != [SIAlertView class]) + return; + + SIAlertView *appearance = [self appearance]; + appearance.viewBackgroundColor = [UIColor whiteColor]; + appearance.titleColor = [UIColor blackColor]; + appearance.messageColor = [UIColor darkGrayColor]; + appearance.titleFont = [UIFont boldSystemFontOfSize:20]; + appearance.messageFont = [UIFont systemFontOfSize:16]; + appearance.buttonFont = [UIFont systemFontOfSize:[UIFont buttonFontSize]]; + appearance.buttonColor = [UIColor colorWithWhite:0.4 alpha:1]; + appearance.cancelButtonColor = [UIColor colorWithWhite:0.3 alpha:1]; + appearance.destructiveButtonColor = [UIColor whiteColor]; + appearance.cornerRadius = 2; + appearance.shadowRadius = 8; +} + +- (id)init +{ + return [self initWithTitle:nil andMessage:nil]; +} + +- (id)initWithTitle:(NSString *)title andMessage:(NSString *)message +{ + self = [super init]; + if (self) { + _title = title; + _message = message; + self.items = [[NSMutableArray alloc] init]; + } + return self; +} + +#pragma mark - Class methods + ++ (NSMutableArray *)sharedQueue +{ + if (!__si_alert_queue) { + __si_alert_queue = [NSMutableArray array]; + } + return __si_alert_queue; +} + ++ (SIAlertView *)currentAlertView +{ + return __si_alert_current_view; +} + ++ (void)setCurrentAlertView:(SIAlertView *)alertView +{ + __si_alert_current_view = alertView; +} + ++ (BOOL)isAnimating +{ + return __si_alert_animating; +} + ++ (void)setAnimating:(BOOL)animating +{ + __si_alert_animating = animating; +} + ++ (void)showBackground +{ + if (!__si_alert_background_window) { + __si_alert_background_window = [[SIAlertBackgroundWindow alloc] initWithFrame:[UIScreen mainScreen].bounds + andStyle:[SIAlertView currentAlertView].backgroundStyle]; + [__si_alert_background_window makeKeyAndVisible]; + __si_alert_background_window.alpha = 0; + [UIView animateWithDuration:0.3 + animations:^{ + __si_alert_background_window.alpha = 1; + }]; + } +} + ++ (void)hideBackgroundAnimated:(BOOL)animated +{ + if (!animated) { + [__si_alert_background_window removeFromSuperview]; + __si_alert_background_window = nil; + return; + } + [UIView animateWithDuration:0.3 + animations:^{ + __si_alert_background_window.alpha = 0; + } + completion:^(BOOL finished) { + [__si_alert_background_window removeFromSuperview]; + __si_alert_background_window = nil; + }]; +} + +#pragma mark - Setters + +- (void)setTitle:(NSString *)title +{ + _title = title; + [self invalidateLayout]; +} + +- (void)setMessage:(NSString *)message +{ + _message = message; + [self invalidateLayout]; +} + +#pragma mark - Public + +- (void)addButtonWithTitle:(NSString *)title type:(SIAlertViewButtonType)type handler:(SIAlertViewHandler)handler +{ + SIAlertItem *item = [[SIAlertItem alloc] init]; + item.title = title; + item.type = type; + item.action = handler; + [self.items addObject:item]; +} + +- (void)show +{ + if (self.isVisible) { + return; + } + + self.oldKeyWindow = [[UIApplication sharedApplication] keyWindow]; +#ifdef __IPHONE_7_0 + if ([self.oldKeyWindow respondsToSelector:@selector(setTintAdjustmentMode:)]) { // for iOS 7 + self.oldTintAdjustmentMode = self.oldKeyWindow.tintAdjustmentMode; + self.oldKeyWindow.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed; + } +#endif + + if (![[SIAlertView sharedQueue] containsObject:self]) { + [[SIAlertView sharedQueue] addObject:self]; + } + + if ([SIAlertView isAnimating]) { + return; // wait for next turn + } + + if ([SIAlertView currentAlertView].isVisible) { + SIAlertView *alert = [SIAlertView currentAlertView]; + [alert dismissAnimated:YES cleanup:NO]; + return; + } + + if (self.willShowHandler) { + self.willShowHandler(self); + } + [[NSNotificationCenter defaultCenter] postNotificationName:SIAlertViewWillShowNotification object:self userInfo:nil]; + + self.visible = YES; + + [SIAlertView setAnimating:YES]; + [SIAlertView setCurrentAlertView:self]; + + // transition background + [SIAlertView showBackground]; + + SIAlertViewController *viewController = [[SIAlertViewController alloc] initWithNibName:nil bundle:nil]; + viewController.alertView = self; + + if (!self.alertWindow) { + UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + window.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + window.opaque = NO; + window.windowLevel = UIWindowLevelSIAlert; + window.rootViewController = viewController; + self.alertWindow = window; + } + [self.alertWindow makeKeyAndVisible]; + + [self validateLayout]; + + [self transitionInCompletion:^{ + if (self.didShowHandler) { + self.didShowHandler(self); + } + [[NSNotificationCenter defaultCenter] postNotificationName:SIAlertViewDidShowNotification object:self userInfo:nil]; + + [SIAlertView setAnimating:NO]; + + NSInteger index = [[SIAlertView sharedQueue] indexOfObject:self]; + if (index < [SIAlertView sharedQueue].count - 1) { + [self dismissAnimated:YES cleanup:NO]; // dismiss to show next alert view + } + }]; +} + +- (void)dismissAnimated:(BOOL)animated +{ + [self dismissAnimated:animated cleanup:YES]; +} + +- (void)dismissAnimated:(BOOL)animated cleanup:(BOOL)cleanup +{ + BOOL isVisible = self.isVisible; + + if (isVisible) { + if (self.willDismissHandler) { + self.willDismissHandler(self); + } + [[NSNotificationCenter defaultCenter] postNotificationName:SIAlertViewWillDismissNotification object:self userInfo:nil]; + } + + void (^dismissComplete)(void) = ^{ + self.visible = NO; + + [self teardown]; + + [SIAlertView setCurrentAlertView:nil]; + + SIAlertView *nextAlertView; + NSInteger index = [[SIAlertView sharedQueue] indexOfObject:self]; + if (index != NSNotFound && index < [SIAlertView sharedQueue].count - 1) { + nextAlertView = [SIAlertView sharedQueue][index + 1]; + } + + if (cleanup) { + [[SIAlertView sharedQueue] removeObject:self]; + } + + [SIAlertView setAnimating:NO]; + + if (isVisible) { + if (self.didDismissHandler) { + self.didDismissHandler(self); + } + [[NSNotificationCenter defaultCenter] postNotificationName:SIAlertViewDidDismissNotification object:self userInfo:nil]; + } + + // check if we should show next alert + if (!isVisible) { + return; + } + + if (nextAlertView) { + [nextAlertView show]; + } else { + // show last alert view + if ([SIAlertView sharedQueue].count > 0) { + SIAlertView *alert = [[SIAlertView sharedQueue] lastObject]; + [alert show]; + } + } + }; + + if (animated && isVisible) { + [SIAlertView setAnimating:YES]; + [self transitionOutCompletion:dismissComplete]; + + if ([SIAlertView sharedQueue].count == 1) { + [SIAlertView hideBackgroundAnimated:YES]; + } + + } else { + dismissComplete(); + + if ([SIAlertView sharedQueue].count == 0) { + [SIAlertView hideBackgroundAnimated:YES]; + } + } + + UIWindow *window = self.oldKeyWindow; +#ifdef __IPHONE_7_0 + if ([window respondsToSelector:@selector(setTintAdjustmentMode:)]) { + window.tintAdjustmentMode = self.oldTintAdjustmentMode; + } +#endif + if (!window) { + window = [UIApplication sharedApplication].windows[0]; + } + [window makeKeyWindow]; + window.hidden = NO; +} + +#pragma mark - Transitions + +- (void)transitionInCompletion:(void(^)(void))completion +{ + switch (self.transitionStyle) { + case SIAlertViewTransitionStyleSlideFromBottom: + { + CGRect rect = self.containerView.frame; + CGRect originalRect = rect; + rect.origin.y = self.bounds.size.height; + self.containerView.frame = rect; + [UIView animateWithDuration:0.3 + animations:^{ + self.containerView.frame = originalRect; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleSlideFromTop: + { + CGRect rect = self.containerView.frame; + CGRect originalRect = rect; + rect.origin.y = -rect.size.height; + self.containerView.frame = rect; + [UIView animateWithDuration:0.3 + animations:^{ + self.containerView.frame = originalRect; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleFade: + { + self.containerView.alpha = 0; + [UIView animateWithDuration:0.3 + animations:^{ + self.containerView.alpha = 1; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleBounce: + { + CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"]; + animation.values = @[@(0.01), @(1.2), @(0.9), @(1)]; + animation.keyTimes = @[@(0), @(0.4), @(0.6), @(1)]; + animation.timingFunctions = @[[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear], [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear], [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]]; + animation.duration = 0.5; + animation.delegate = self; + [animation setValue:completion forKey:@"handler"]; + [self.containerView.layer addAnimation:animation forKey:@"bouce"]; + } + break; + case SIAlertViewTransitionStyleDropDown: + { + CGFloat y = self.containerView.center.y; + CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"position.y"]; + animation.values = @[@(y - self.bounds.size.height), @(y + 20), @(y - 10), @(y)]; + animation.keyTimes = @[@(0), @(0.5), @(0.75), @(1)]; + animation.timingFunctions = @[[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut], [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear], [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]]; + animation.duration = 0.4; + animation.delegate = self; + [animation setValue:completion forKey:@"handler"]; + [self.containerView.layer addAnimation:animation forKey:@"dropdown"]; + } + break; + default: + break; + } +} + +- (void)transitionOutCompletion:(void(^)(void))completion +{ + switch (self.transitionStyle) { + case SIAlertViewTransitionStyleSlideFromBottom: + { + CGRect rect = self.containerView.frame; + rect.origin.y = self.bounds.size.height; + [UIView animateWithDuration:0.3 + delay:0 + options:UIViewAnimationOptionCurveEaseIn + animations:^{ + self.containerView.frame = rect; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleSlideFromTop: + { + CGRect rect = self.containerView.frame; + rect.origin.y = -rect.size.height; + [UIView animateWithDuration:0.3 + delay:0 + options:UIViewAnimationOptionCurveEaseIn + animations:^{ + self.containerView.frame = rect; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleFade: + { + [UIView animateWithDuration:0.25 + animations:^{ + self.containerView.alpha = 0; + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + case SIAlertViewTransitionStyleBounce: + { + CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"]; + animation.values = @[@(1), @(1.2), @(0.01)]; + animation.keyTimes = @[@(0), @(0.4), @(1)]; + animation.timingFunctions = @[[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut], [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]]; + animation.duration = 0.35; + animation.delegate = self; + [animation setValue:completion forKey:@"handler"]; + [self.containerView.layer addAnimation:animation forKey:@"bounce"]; + + self.containerView.transform = CGAffineTransformMakeScale(0.01, 0.01); + } + break; + case SIAlertViewTransitionStyleDropDown: + { + CGPoint point = self.containerView.center; + point.y += self.bounds.size.height; + [UIView animateWithDuration:0.3 + delay:0 + options:UIViewAnimationOptionCurveEaseIn + animations:^{ + self.containerView.center = point; + CGFloat angle = ((CGFloat)arc4random_uniform(100) - 50.f) / 100.f; + self.containerView.transform = CGAffineTransformMakeRotation(angle); + } + completion:^(BOOL finished) { + if (completion) { + completion(); + } + }]; + } + break; + default: + break; + } +} + +- (void)resetTransition +{ + [self.containerView.layer removeAllAnimations]; +} + +#pragma mark - Layout + +- (void)layoutSubviews +{ + [super layoutSubviews]; + [self validateLayout]; +} + +- (void)invalidateLayout +{ + self.layoutDirty = YES; + [self setNeedsLayout]; +} + +- (void)validateLayout +{ + if (!self.isLayoutDirty) { + return; + } + self.layoutDirty = NO; +#if DEBUG_LAYOUT + NSLog(@"%@, %@", self, NSStringFromSelector(_cmd)); +#endif + + CGFloat height = [self preferredHeight]; + CGFloat left = (self.bounds.size.width - CONTAINER_WIDTH) * 0.5; + CGFloat top = (self.bounds.size.height - height) * 0.5; + self.containerView.transform = CGAffineTransformIdentity; + self.containerView.frame = CGRectMake(left, top, CONTAINER_WIDTH, height); + self.containerView.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:self.containerView.bounds cornerRadius:self.containerView.layer.cornerRadius].CGPath; + + CGFloat y = CONTENT_PADDING_TOP; + if (self.titleLabel) { + self.titleLabel.text = self.title; + CGFloat height = [self heightForTitleLabel]; + self.titleLabel.frame = CGRectMake(CONTENT_PADDING_LEFT, y, self.containerView.bounds.size.width - CONTENT_PADDING_LEFT * 2, height); + y += height; + } + if (self.messageLabel) { + if (y > CONTENT_PADDING_TOP) { + y += GAP; + } + self.messageLabel.text = self.message; + CGFloat height = [self heightForMessageLabel]; + self.messageLabel.frame = CGRectMake(CONTENT_PADDING_LEFT, y, self.containerView.bounds.size.width - CONTENT_PADDING_LEFT * 2, height); + y += height; + } + if (self.items.count > 0) { + if (y > CONTENT_PADDING_TOP) { + y += GAP; + } + if (self.items.count == 2 && self.buttonsListStyle == SIAlertViewButtonsListStyleNormal) { + CGFloat width = (self.containerView.bounds.size.width - CONTENT_PADDING_LEFT * 2 - GAP) * 0.5; + UIButton *button = self.buttons[0]; + button.frame = CGRectMake(CONTENT_PADDING_LEFT, y, width, BUTTON_HEIGHT); + button = self.buttons[1]; + button.frame = CGRectMake(CONTENT_PADDING_LEFT + width + GAP, y, width, BUTTON_HEIGHT); + } else { + for (NSUInteger i = 0; i < self.buttons.count; i++) { + UIButton *button = self.buttons[i]; + button.frame = CGRectMake(CONTENT_PADDING_LEFT, y, self.containerView.bounds.size.width - CONTENT_PADDING_LEFT * 2, BUTTON_HEIGHT); + if (self.buttons.count > 1) { + if (i == self.buttons.count - 1 && ((SIAlertItem *)self.items[i]).type == SIAlertViewButtonTypeCancel) { + CGRect rect = button.frame; + rect.origin.y += CANCEL_BUTTON_PADDING_TOP; + button.frame = rect; + } + y += BUTTON_HEIGHT + GAP; + } + } + } + } +} + +- (CGFloat)preferredHeight +{ + CGFloat height = CONTENT_PADDING_TOP; + if (self.title) { + height += [self heightForTitleLabel]; + } + if (self.message) { + if (height > CONTENT_PADDING_TOP) { + height += GAP; + } + height += [self heightForMessageLabel]; + } + if (self.items.count > 0) { + if (height > CONTENT_PADDING_TOP) { + height += GAP; + } + if (self.items.count <= 2 && self.buttonsListStyle == SIAlertViewButtonsListStyleNormal) { + height += BUTTON_HEIGHT; + } else { + height += (BUTTON_HEIGHT + GAP) * self.items.count - GAP; + if (self.buttons.count > 2 && ((SIAlertItem *)[self.items lastObject]).type == SIAlertViewButtonTypeCancel) { + height += CANCEL_BUTTON_PADDING_TOP; + } + } + } + height += CONTENT_PADDING_BOTTOM; + return height; +} + +- (CGFloat)heightForTitleLabel +{ + if (self.titleLabel) { + CGSize size = [self.title sizeWithFont:self.titleLabel.font + minFontSize: +#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0 + self.titleLabel.font.pointSize * self.titleLabel.minimumScaleFactor +#else + self.titleLabel.minimumFontSize +#endif + actualFontSize:nil + forWidth:CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2 + lineBreakMode:self.titleLabel.lineBreakMode]; + return size.height; + } + return 0; +} + +- (CGFloat)heightForMessageLabel +{ + CGFloat minHeight = MESSAGE_MIN_LINE_COUNT * self.messageLabel.font.lineHeight; + if (self.messageLabel) { + CGFloat maxHeight = MESSAGE_MAX_LINE_COUNT * self.messageLabel.font.lineHeight; + CGSize size = [self.message sizeWithFont:self.messageLabel.font + constrainedToSize:CGSizeMake(CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2, maxHeight) + lineBreakMode:self.messageLabel.lineBreakMode]; + return MAX(minHeight, size.height); + } + return minHeight; +} + +#pragma mark - Setup + +- (void)setup +{ + [self setupContainerView]; + [self updateTitleLabel]; + [self updateMessageLabel]; + [self setupButtons]; + [self invalidateLayout]; +} + +- (void)teardown +{ + [self.containerView removeFromSuperview]; + self.containerView = nil; + self.titleLabel = nil; + self.messageLabel = nil; + [self.buttons removeAllObjects]; + [self.alertWindow removeFromSuperview]; + self.alertWindow = nil; + self.layoutDirty = NO; +} + +- (void)setupContainerView +{ + self.containerView = [[UIView alloc] initWithFrame:self.bounds]; + self.containerView.backgroundColor = _viewBackgroundColor ? _viewBackgroundColor : [UIColor whiteColor]; + self.containerView.layer.cornerRadius = self.cornerRadius; + self.containerView.layer.shadowOffset = CGSizeZero; + self.containerView.layer.shadowRadius = self.shadowRadius; + self.containerView.layer.shadowOpacity = 0.5; + [self addSubview:self.containerView]; +} + +- (void)updateTitleLabel +{ + if (self.title) { + if (!self.titleLabel) { + self.titleLabel = [[UILabel alloc] initWithFrame:self.bounds]; + self.titleLabel.textAlignment = NSTextAlignmentCenter; + self.titleLabel.backgroundColor = [UIColor clearColor]; + self.titleLabel.font = self.titleFont; + self.titleLabel.textColor = self.titleColor; + self.titleLabel.adjustsFontSizeToFitWidth = YES; +#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0 + self.titleLabel.minimumScaleFactor = 0.75; +#else + self.titleLabel.minimumFontSize = self.titleLabel.font.pointSize * 0.75; +#endif + [self.containerView addSubview:self.titleLabel]; +#if DEBUG_LAYOUT + self.titleLabel.backgroundColor = [UIColor redColor]; +#endif + } + self.titleLabel.text = self.title; + } else { + [self.titleLabel removeFromSuperview]; + self.titleLabel = nil; + } + [self invalidateLayout]; +} + +- (void)updateMessageLabel +{ + if (self.message) { + if (!self.messageLabel) { + self.messageLabel = [[UILabel alloc] initWithFrame:self.bounds]; + self.messageLabel.textAlignment = NSTextAlignmentCenter; + self.messageLabel.backgroundColor = [UIColor clearColor]; + self.messageLabel.font = self.messageFont; + self.messageLabel.textColor = self.messageColor; + self.messageLabel.numberOfLines = MESSAGE_MAX_LINE_COUNT; + [self.containerView addSubview:self.messageLabel]; +#if DEBUG_LAYOUT + self.messageLabel.backgroundColor = [UIColor redColor]; +#endif + } + self.messageLabel.text = self.message; + } else { + [self.messageLabel removeFromSuperview]; + self.messageLabel = nil; + } + [self invalidateLayout]; +} + +- (void)setupButtons +{ + self.buttons = [[NSMutableArray alloc] initWithCapacity:self.items.count]; + for (NSUInteger i = 0; i < self.items.count; i++) { + UIButton *button = [self buttonForItemIndex:i]; + [self.buttons addObject:button]; + [self.containerView addSubview:button]; + } +} + +- (UIButton *)buttonForItemIndex:(NSUInteger)index +{ + SIAlertItem *item = self.items[index]; + UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; + button.tag = index; + button.autoresizingMask = UIViewAutoresizingFlexibleWidth; + button.titleLabel.font = self.buttonFont; + [button setTitle:item.title forState:UIControlStateNormal]; + UIImage *normalImage = nil; + UIImage *highlightedImage = nil; + switch (item.type) { + case SIAlertViewButtonTypeCancel: + normalImage = [UIImage imageNamed:@"SIAlertView.bundle/button-cancel"]; + highlightedImage = [UIImage imageNamed:@"SIAlertView.bundle/button-cancel-d"]; + [button setTitleColor:self.cancelButtonColor forState:UIControlStateNormal]; + [button setTitleColor:[self.cancelButtonColor colorWithAlphaComponent:0.8] forState:UIControlStateHighlighted]; + break; + case SIAlertViewButtonTypeDestructive: + normalImage = [UIImage imageNamed:@"SIAlertView.bundle/button-destructive"]; + highlightedImage = [UIImage imageNamed:@"SIAlertView.bundle/button-destructive-d"]; + [button setTitleColor:self.destructiveButtonColor forState:UIControlStateNormal]; + [button setTitleColor:[self.destructiveButtonColor colorWithAlphaComponent:0.8] forState:UIControlStateHighlighted]; + break; + case SIAlertViewButtonTypeDefault: + default: + normalImage = [UIImage imageNamed:@"SIAlertView.bundle/button-default"]; + highlightedImage = [UIImage imageNamed:@"SIAlertView.bundle/button-default-d"]; + [button setTitleColor:self.buttonColor forState:UIControlStateNormal]; + [button setTitleColor:[self.buttonColor colorWithAlphaComponent:0.8] forState:UIControlStateHighlighted]; + break; + } + CGFloat hInset = floorf(normalImage.size.width / 2); + CGFloat vInset = floorf(normalImage.size.height / 2); + UIEdgeInsets insets = UIEdgeInsetsMake(vInset, hInset, vInset, hInset); + normalImage = [normalImage resizableImageWithCapInsets:insets]; + highlightedImage = [highlightedImage resizableImageWithCapInsets:insets]; + [button setBackgroundImage:normalImage forState:UIControlStateNormal]; + [button setBackgroundImage:highlightedImage forState:UIControlStateHighlighted]; + [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside]; + + return button; +} + +#pragma mark - Actions + +- (void)buttonAction:(UIButton *)button +{ + [SIAlertView setAnimating:YES]; // set this flag to YES in order to prevent showing another alert in action block + SIAlertItem *item = self.items[button.tag]; + if (item.action) { + item.action(self); + } + [self dismissAnimated:YES]; +} + +#pragma mark - CAAnimation delegate + +- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag +{ + void(^completion)(void) = [anim valueForKey:@"handler"]; + if (completion) { + completion(); + } +} + +#pragma mark - UIAppearance setters + +- (void)setViewBackgroundColor:(UIColor *)viewBackgroundColor +{ + if (_viewBackgroundColor == viewBackgroundColor) { + return; + } + _viewBackgroundColor = viewBackgroundColor; + self.containerView.backgroundColor = viewBackgroundColor; +} + +- (void)setTitleFont:(UIFont *)titleFont +{ + if (_titleFont == titleFont) { + return; + } + _titleFont = titleFont; + self.titleLabel.font = titleFont; + [self invalidateLayout]; +} + +- (void)setMessageFont:(UIFont *)messageFont +{ + if (_messageFont == messageFont) { + return; + } + _messageFont = messageFont; + self.messageLabel.font = messageFont; + [self invalidateLayout]; +} + +- (void)setTitleColor:(UIColor *)titleColor +{ + if (_titleColor == titleColor) { + return; + } + _titleColor = titleColor; + self.titleLabel.textColor = titleColor; +} + +- (void)setMessageColor:(UIColor *)messageColor +{ + if (_messageColor == messageColor) { + return; + } + _messageColor = messageColor; + self.messageLabel.textColor = messageColor; +} + +- (void)setButtonFont:(UIFont *)buttonFont +{ + if (_buttonFont == buttonFont) { + return; + } + _buttonFont = buttonFont; + for (UIButton *button in self.buttons) { + button.titleLabel.font = buttonFont; + } +} + +- (void)setCornerRadius:(CGFloat)cornerRadius +{ + if (_cornerRadius == cornerRadius) { + return; + } + _cornerRadius = cornerRadius; + self.containerView.layer.cornerRadius = cornerRadius; +} + +- (void)setShadowRadius:(CGFloat)shadowRadius +{ + if (_shadowRadius == shadowRadius) { + return; + } + _shadowRadius = shadowRadius; + self.containerView.layer.shadowRadius = shadowRadius; +} + +- (void)setButtonColor:(UIColor *)buttonColor +{ + if (_buttonColor == buttonColor) { + return; + } + _buttonColor = buttonColor; + [self setColor:buttonColor toButtonsOfType:SIAlertViewButtonTypeDefault]; +} + +- (void)setCancelButtonColor:(UIColor *)buttonColor +{ + if (_cancelButtonColor == buttonColor) { + return; + } + _cancelButtonColor = buttonColor; + [self setColor:buttonColor toButtonsOfType:SIAlertViewButtonTypeCancel]; +} + +- (void)setDestructiveButtonColor:(UIColor *)buttonColor +{ + if (_destructiveButtonColor == buttonColor) { + return; + } + _destructiveButtonColor = buttonColor; + [self setColor:buttonColor toButtonsOfType:SIAlertViewButtonTypeDestructive]; +} + + +- (void)setDefaultButtonImage:(UIImage *)defaultButtonImage forState:(UIControlState)state +{ + [self setButtonImage:defaultButtonImage forState:state andButtonType:SIAlertViewButtonTypeDefault]; +} + + +- (void)setCancelButtonImage:(UIImage *)cancelButtonImage forState:(UIControlState)state +{ + [self setButtonImage:cancelButtonImage forState:state andButtonType:SIAlertViewButtonTypeCancel]; +} + + +- (void)setDestructiveButtonImage:(UIImage *)destructiveButtonImage forState:(UIControlState)state +{ + [self setButtonImage:destructiveButtonImage forState:state andButtonType:SIAlertViewButtonTypeDestructive]; +} + + +- (void)setButtonImage:(UIImage *)image forState:(UIControlState)state andButtonType:(SIAlertViewButtonType)type +{ + for (NSUInteger i = 0; i < self.items.count; i++) + { + SIAlertItem *item = self.items[i]; + if(item.type == type) + { + UIButton *button = self.buttons[i]; + [button setBackgroundImage:image forState:state]; + } + } +} + + +-(void)setColor:(UIColor *)color toButtonsOfType:(SIAlertViewButtonType)type { + for (NSUInteger i = 0; i < self.items.count; i++) { + SIAlertItem *item = self.items[i]; + if(item.type == type) { + UIButton *button = self.buttons[i]; + [button setTitleColor:color forState:UIControlStateNormal]; + [button setTitleColor:[color colorWithAlphaComponent:0.8] forState:UIControlStateHighlighted]; + } + } +} + +@end diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-dummy.m b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-dummy.m new file mode 100644 index 0000000..1fd1a46 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_ChameleonFramework : NSObject +@end +@implementation PodsDummy_ChameleonFramework +@end diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch new file mode 100644 index 0000000..aa992a4 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch @@ -0,0 +1,4 @@ +#ifdef __OBJC__ +#import +#endif + diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-umbrella.h b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-umbrella.h new file mode 100644 index 0000000..45275dd --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework-umbrella.h @@ -0,0 +1,36 @@ +#import + +#import "Chameleon.h" +#import "Chameleon_.h" +#import "ChameleonConstants.h" +#import "ChameleonEnums.h" +#import "ChameleonMacros.h" +#import "NSArray+Chameleon.h" +#import "UIAppearance+Swift.h" +#import "UIButton+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UIColor+ChameleonPrivate.h" +#import "UIImage+ChameleonPrivate.h" +#import "UILabel+Chameleon.h" +#import "UINavigationController+Chameleon.h" +#import "UIView+ChameleonPrivate.h" +#import "UIViewController+Chameleon.h" +#import "Chameleon.h" +#import "Chameleon_.h" +#import "ChameleonConstants.h" +#import "ChameleonEnums.h" +#import "ChameleonMacros.h" +#import "NSArray+Chameleon.h" +#import "UIAppearance+Swift.h" +#import "UIButton+Chameleon.h" +#import "UIColor+Chameleon.h" +#import "UIColor+ChameleonPrivate.h" +#import "UIImage+ChameleonPrivate.h" +#import "UILabel+Chameleon.h" +#import "UINavigationController+Chameleon.h" +#import "UIView+ChameleonPrivate.h" +#import "UIViewController+Chameleon.h" + +FOUNDATION_EXPORT double ChameleonFrameworkVersionNumber; +FOUNDATION_EXPORT const unsigned char ChameleonFrameworkVersionString[]; + diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.modulemap b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.modulemap new file mode 100644 index 0000000..d60f497 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.modulemap @@ -0,0 +1,6 @@ +framework module ChameleonFramework { + umbrella header "ChameleonFramework-umbrella.h" + + export * + module * { export * } +} diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.xcconfig b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.xcconfig new file mode 100644 index 0000000..bf6bd2b --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/ChameleonFramework.xcconfig @@ -0,0 +1,5 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ChameleonFramework" "${PODS_ROOT}/Headers/Public" +OTHER_LDFLAGS = -framework "CoreGraphics" -framework "QuartzCore" -framework "UIKit" +PODS_ROOT = ${SRCROOT} +SKIP_INSTALL = YES \ No newline at end of file diff --git a/HeadsUpper/Pods/Target Support Files/ChameleonFramework/Info.plist b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/Info.plist new file mode 100644 index 0000000..7ecddcc --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/ChameleonFramework/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 2.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Info.plist b/HeadsUpper/Pods/Target Support Files/Pods/Info.plist new file mode 100644 index 0000000..6974542 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown new file mode 100644 index 0000000..30775c5 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown @@ -0,0 +1,38 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## ChameleonFramework + +##The MIT License (MIT) + +> Copyright (c) 2014-2015 Vicc Alexander + +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: + +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. + +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. + + +## SIAlertView + +Copyright (c) 2013 Sumi Interactive + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Generated by CocoaPods - http://cocoapods.org diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist new file mode 100644 index 0000000..e8dc065 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist @@ -0,0 +1,72 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + ##The MIT License (MIT) + +> Copyright (c) 2014-2015 Vicc Alexander + +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: + +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. + +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. + + Title + ChameleonFramework + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2013 Sumi Interactive + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + Title + SIAlertView + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - http://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-dummy.m b/HeadsUpper/Pods/Target Support Files/Pods/Pods-dummy.m new file mode 100644 index 0000000..ade64bd --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods : NSObject +@end +@implementation PodsDummy_Pods +@end diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh b/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh new file mode 100755 index 0000000..7d0e001 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh @@ -0,0 +1,93 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" + /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "Pods/ChameleonFramework.framework" + install_framework "Pods/SIAlertView.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "Pods/ChameleonFramework.framework" + install_framework "Pods/SIAlertView.framework" +fi diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-resources.sh b/HeadsUpper/Pods/Target Support Files/Pods/Pods-resources.sh new file mode 100755 index 0000000..16774fb --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-resources.sh @@ -0,0 +1,95 @@ +#!/bin/sh +set -e + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +realpath() { + DIRECTORY="$(cd "${1%/*}" && pwd)" + FILENAME="${1##*/}" + echo "$DIRECTORY/$FILENAME" +} + +install_resource() +{ + case $1 in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.framework) + echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" + xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + /*) + echo "$1" + echo "$1" >> "$RESOURCES_TO_COPY" + ;; + *) + echo "${PODS_ROOT}/$1" + echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; + esac + + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "`realpath $PODS_ROOT`*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-umbrella.h b/HeadsUpper/Pods/Target Support Files/Pods/Pods-umbrella.h new file mode 100644 index 0000000..21dcfd2 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-umbrella.h @@ -0,0 +1,6 @@ +#import + + +FOUNDATION_EXPORT double PodsVersionNumber; +FOUNDATION_EXPORT const unsigned char PodsVersionString[]; + diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig b/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig new file mode 100644 index 0000000..97ff2df --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig @@ -0,0 +1,6 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "ChameleonFramework" -framework "SIAlertView" +PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods.modulemap b/HeadsUpper/Pods/Target Support Files/Pods/Pods.modulemap new file mode 100644 index 0000000..8413413 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods.modulemap @@ -0,0 +1,6 @@ +framework module Pods { + umbrella header "Pods-umbrella.h" + + export * + module * { export * } +} diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig b/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig new file mode 100644 index 0000000..97ff2df --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig @@ -0,0 +1,6 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "ChameleonFramework" -framework "SIAlertView" +PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/Info.plist b/HeadsUpper/Pods/Target Support Files/SIAlertView/Info.plist new file mode 100644 index 0000000..e39a666 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.3 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-dummy.m b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-dummy.m new file mode 100644 index 0000000..d010881 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_SIAlertView : NSObject +@end +@implementation PodsDummy_SIAlertView +@end diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-prefix.pch b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-prefix.pch new file mode 100644 index 0000000..aa992a4 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-prefix.pch @@ -0,0 +1,4 @@ +#ifdef __OBJC__ +#import +#endif + diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-umbrella.h b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-umbrella.h new file mode 100644 index 0000000..ce1683b --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView-umbrella.h @@ -0,0 +1,7 @@ +#import + +#import "SIAlertView.h" + +FOUNDATION_EXPORT double SIAlertViewVersionNumber; +FOUNDATION_EXPORT const unsigned char SIAlertViewVersionString[]; + diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.modulemap b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.modulemap new file mode 100644 index 0000000..2e0cf6c --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.modulemap @@ -0,0 +1,6 @@ +framework module SIAlertView { + umbrella header "SIAlertView-umbrella.h" + + export * + module * { export * } +} diff --git a/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.xcconfig b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.xcconfig new file mode 100644 index 0000000..e6f7882 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/SIAlertView/SIAlertView.xcconfig @@ -0,0 +1,5 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SIAlertView" "${PODS_ROOT}/Headers/Public" +OTHER_LDFLAGS = -framework "QuartzCore" +PODS_ROOT = ${SRCROOT} +SKIP_INSTALL = YES \ No newline at end of file From 58a62677b5b196494823eecb30d0d4d1016b10b1 Mon Sep 17 00:00:00 2001 From: Henna Date: Sun, 21 Feb 2016 16:21:20 -0500 Subject: [PATCH 2/4] random images, hayy --- HeadsUpper/.DS_Store | Bin 6148 -> 6148 bytes .../HeadsUpper/Base.lproj/Main.storyboard | 2 +- HeadsUpper/HeadsUpper/Info.plist | 5 + HeadsUpper/HeadsUpper/ViewController.m | 21 +- .../HeadsUpper/topicsTableViewController.m | 30 +- HeadsUpper/Podfile | 3 +- HeadsUpper/Podfile.lock | 5 + .../SDWebImage/NSData+ImageContentType.h | 1 + .../Headers/Private/SDWebImage/SDImageCache.h | 1 + .../Private/SDWebImage/SDWebImageCompat.h | 1 + .../Private/SDWebImage/SDWebImageDecoder.h | 1 + .../Private/SDWebImage/SDWebImageDownloader.h | 1 + .../SDWebImageDownloaderOperation.h | 1 + .../Private/SDWebImage/SDWebImageManager.h | 1 + .../Private/SDWebImage/SDWebImageOperation.h | 1 + .../Private/SDWebImage/SDWebImagePrefetcher.h | 1 + .../Private/SDWebImage/UIButton+WebCache.h | 1 + .../Headers/Private/SDWebImage/UIImage+GIF.h | 1 + .../Private/SDWebImage/UIImage+MultiFormat.h | 1 + .../UIImageView+HighlightedWebCache.h | 1 + .../Private/SDWebImage/UIImageView+WebCache.h | 1 + .../SDWebImage/UIView+WebCacheOperation.h | 1 + HeadsUpper/Pods/Manifest.lock | 5 + .../Pods/Pods.xcodeproj/project.pbxproj | 895 ++++++++++++------ HeadsUpper/Pods/SDWebImage/LICENSE | 20 + HeadsUpper/Pods/SDWebImage/README.md | 334 +++++++ .../SDWebImage/NSData+ImageContentType.h | 26 + .../SDWebImage/NSData+ImageContentType.m | 49 + .../Pods/SDWebImage/SDWebImage/SDImageCache.h | 272 ++++++ .../Pods/SDWebImage/SDWebImage/SDImageCache.m | 650 +++++++++++++ .../SDWebImage/SDWebImage/SDWebImageCompat.h | 72 ++ .../SDWebImage/SDWebImage/SDWebImageCompat.m | 51 + .../SDWebImage/SDWebImage/SDWebImageDecoder.h | 18 + .../SDWebImage/SDWebImage/SDWebImageDecoder.m | 69 ++ .../SDWebImage/SDWebImageDownloader.h | 191 ++++ .../SDWebImage/SDWebImageDownloader.m | 232 +++++ .../SDWebImageDownloaderOperation.h | 78 ++ .../SDWebImageDownloaderOperation.m | 466 +++++++++ .../SDWebImage/SDWebImage/SDWebImageManager.h | 299 ++++++ .../SDWebImage/SDWebImage/SDWebImageManager.m | 370 ++++++++ .../SDWebImage/SDWebImageOperation.h | 15 + .../SDWebImage/SDWebImagePrefetcher.h | 108 +++ .../SDWebImage/SDWebImagePrefetcher.m | 140 +++ .../SDWebImage/SDWebImage/UIButton+WebCache.h | 229 +++++ .../SDWebImage/SDWebImage/UIButton+WebCache.m | 270 ++++++ .../Pods/SDWebImage/SDWebImage/UIImage+GIF.h | 19 + .../Pods/SDWebImage/SDWebImage/UIImage+GIF.m | 158 ++++ .../SDWebImage/UIImage+MultiFormat.h | 15 + .../SDWebImage/UIImage+MultiFormat.m | 118 +++ .../UIImageView+HighlightedWebCache.h | 100 ++ .../UIImageView+HighlightedWebCache.m | 112 +++ .../SDWebImage/UIImageView+WebCache.h | 213 +++++ .../SDWebImage/UIImageView+WebCache.m | 277 ++++++ .../SDWebImage/UIView+WebCacheOperation.h | 36 + .../SDWebImage/UIView+WebCacheOperation.m | 55 ++ .../Pods/Pods-acknowledgements.markdown | 24 + .../Pods/Pods-acknowledgements.plist | 28 + .../Pods/Pods-frameworks.sh | 2 + .../Pods/Pods.debug.xcconfig | 4 +- .../Pods/Pods.release.xcconfig | 4 +- .../SDWebImage/Info.plist | 26 + .../SDWebImage/SDWebImage-dummy.m | 5 + .../SDWebImage/SDWebImage-prefix.pch | 4 + .../SDWebImage/SDWebImage-umbrella.h | 21 + .../SDWebImage/SDWebImage.modulemap | 6 + .../SDWebImage/SDWebImage.xcconfig | 5 + 66 files changed, 5846 insertions(+), 326 deletions(-) create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/NSData+ImageContentType.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDImageCache.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageCompat.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageDecoder.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageDownloader.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageDownloaderOperation.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageManager.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImageOperation.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/SDWebImagePrefetcher.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIButton+WebCache.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIImage+GIF.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIImage+MultiFormat.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIImageView+HighlightedWebCache.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIImageView+WebCache.h create mode 120000 HeadsUpper/Pods/Headers/Private/SDWebImage/UIView+WebCacheOperation.h create mode 100644 HeadsUpper/Pods/SDWebImage/LICENSE create mode 100644 HeadsUpper/Pods/SDWebImage/README.md create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/NSData+ImageContentType.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/NSData+ImageContentType.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDImageCache.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDImageCache.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageCompat.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageCompat.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageManager.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageManager.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImageOperation.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIButton+WebCache.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIButton+WebCache.m create mode 100755 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImage+GIF.h create mode 100755 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImage+GIF.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImage+MultiFormat.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImage+MultiFormat.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImageView+HighlightedWebCache.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImageView+HighlightedWebCache.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImageView+WebCache.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIImageView+WebCache.m create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h create mode 100644 HeadsUpper/Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.m create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/Info.plist create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/SDWebImage-dummy.m create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/SDWebImage-prefix.pch create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/SDWebImage-umbrella.h create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/SDWebImage.modulemap create mode 100644 HeadsUpper/Pods/Target Support Files/SDWebImage/SDWebImage.xcconfig diff --git a/HeadsUpper/.DS_Store b/HeadsUpper/.DS_Store index af6890c16e7544c64255908e2cbc91b6511e5acb..35fbbb988484d9fd5b70ea77369404769816efb8 100644 GIT binary patch delta 26 hcmZoMXffDe#mp39KiP(PA7jC0K@J|4&Fmb1`2lL22bKT; delta 26 icmZoMXffDe#mwaRcd`xhKE{O2f*d?7o7p-3@&f>MGzc*O diff --git a/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard b/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard index 1c7e48f..efb1894 100644 --- a/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard +++ b/HeadsUpper/HeadsUpper/Base.lproj/Main.storyboard @@ -84,7 +84,7 @@ -

+ AFNetworking +

+ +[![Build Status](https://travis-ci.org/AFNetworking/AFNetworking.svg)](https://travis-ci.org/AFNetworking/AFNetworking) +[![codecov.io](https://codecov.io/github/AFNetworking/AFNetworking/coverage.svg?branch=master)](https://codecov.io/github/AFNetworking/AFNetworking?branch=master) +[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/AFNetworking.svg)](https://img.shields.io/cocoapods/v/AFNetworking.svg) +[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![Platform](https://img.shields.io/cocoapods/p/AFNetworking.svg?style=flat)](http://cocoadocs.org/docsets/AFNetworking) +[![Twitter](https://img.shields.io/badge/twitter-@AFNetworking-blue.svg?style=flat)](http://twitter.com/AFNetworking) + +AFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of the [Foundation URL Loading System](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html), extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use. + +Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac. + +Choose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did! + +## How To Get Started + +- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/archive/master.zip) and try out the included Mac and iPhone example apps +- Read the ["Getting Started" guide](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking), [FAQ](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ), or [other articles on the Wiki](https://github.com/AFNetworking/AFNetworking/wiki) +- Check out the [documentation](http://cocoadocs.org/docsets/AFNetworking/) for a comprehensive look at all of the APIs available in AFNetworking +- Read the [AFNetworking 3.0 Migration Guide](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide) for an overview of the architectural changes from 2.0. + +## Communication + +- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). (Tag 'afnetworking') +- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). +- If you **found a bug**, _and can provide steps to reliably reproduce it_, open an issue. +- If you **have a feature request**, open an issue. +- If you **want to contribute**, submit a pull request. + +## Installation +AFNetworking supports multiple methods for installing the library in a project. + +## Installation with CocoaPods + +[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the ["Getting Started" guide for more information](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking). You can install it with the following command: + +```bash +$ gem install cocoapods +``` + +> CocoaPods 0.39.0+ is required to build AFNetworking 3.0.0+. + +#### Podfile + +To integrate AFNetworking into your Xcode project using CocoaPods, specify it in your `Podfile`: + +```ruby +source 'https://github.com/CocoaPods/Specs.git' +platform :ios, '8.0' + +pod 'AFNetworking', '~> 3.0' +``` + +Then, run the following command: + +```bash +$ pod install +``` + +### Installation with Carthage + +[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. + +You can install Carthage with [Homebrew](http://brew.sh/) using the following command: + +```bash +$ brew update +$ brew install carthage +``` + +To integrate AFNetworking into your Xcode project using Carthage, specify it in your `Cartfile`: + +```ogdl +github "AFNetworking/AFNetworking" ~> 3.0 +``` + +Run `carthage` to build the framework and drag the built `AFNetworking.framework` into your Xcode project. + +## Requirements + +| AFNetworking Version | Minimum iOS Target | Minimum OS X Target | Minimum watchOS Target | Minimum tvOS Target | Notes | +|:--------------------:|:---------------------------:|:----------------------------:|:----------------------------:|:----------------------------:|:-------------------------------------------------------------------------:| +| 3.x | iOS 7 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Xcode 7+ is required. `NSURLConnectionOperation` support has been removed. | +| 2.6 -> 2.6.3 | iOS 7 | OS X 10.9 | watchOS 2.0 | n/a | Xcode 7+ is required. | +| 2.0 -> 2.5.4 | iOS 6 | OS X 10.8 | n/a | n/a | Xcode 5+ is required. `NSURLSession` subspec requires iOS 7 or OS X 10.9. | +| 1.x | iOS 5 | Mac OS X 10.7 | n/a | n/a | +| 0.10.x | iOS 4 | Mac OS X 10.6 | n/a | n/a | + +(OS X projects must support [64-bit with modern Cocoa runtime](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html)). + +> Programming in Swift? Try [Alamofire](https://github.com/Alamofire/Alamofire) for a more conventional set of APIs. + +## Architecture + +### NSURLSession + +- `AFURLSessionManager` +- `AFHTTPSessionManager` + +### Serialization + +* `` + - `AFHTTPRequestSerializer` + - `AFJSONRequestSerializer` + - `AFPropertyListRequestSerializer` +* `` + - `AFHTTPResponseSerializer` + - `AFJSONResponseSerializer` + - `AFXMLParserResponseSerializer` + - `AFXMLDocumentResponseSerializer` _(Mac OS X)_ + - `AFPropertyListResponseSerializer` + - `AFImageResponseSerializer` + - `AFCompoundResponseSerializer` + +### Additional Functionality + +- `AFSecurityPolicy` +- `AFNetworkReachabilityManager` + +## Usage + +### AFURLSessionManager + +`AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to ``, ``, ``, and ``. + +#### Creating a Download Task + +```objective-c +NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; +AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; + +NSURL *URL = [NSURL URLWithString:@"http://example.com/download.zip"]; +NSURLRequest *request = [NSURLRequest requestWithURL:URL]; + +NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) { + NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil]; + return [documentsDirectoryURL URLByAppendingPathComponent:[response suggestedFilename]]; +} completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) { + NSLog(@"File downloaded to: %@", filePath); +}]; +[downloadTask resume]; +``` + +#### Creating an Upload Task + +```objective-c +NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; +AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; + +NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; +NSURLRequest *request = [NSURLRequest requestWithURL:URL]; + +NSURL *filePath = [NSURL fileURLWithPath:@"file://path/to/image.png"]; +NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithRequest:request fromFile:filePath progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { + if (error) { + NSLog(@"Error: %@", error); + } else { + NSLog(@"Success: %@ %@", response, responseObject); + } +}]; +[uploadTask resume]; +``` + +#### Creating an Upload Task for a Multi-Part Request, with Progress + +```objective-c +NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id formData) { + [formData appendPartWithFileURL:[NSURL fileURLWithPath:@"file://path/to/image.jpg"] name:@"file" fileName:@"filename.jpg" mimeType:@"image/jpeg" error:nil]; + } error:nil]; + +AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; + +NSURLSessionUploadTask *uploadTask; +uploadTask = [manager + uploadTaskWithStreamedRequest:request + progress:^(NSProgress * _Nonnull uploadProgress) { + // This is not called back on the main queue. + // You are responsible for dispatching to the main queue for UI updates + dispatch_async(dispatch_get_main_queue(), ^{ + //Update the progress view + [progressView setProgress:uploadProgress.fractionCompleted]; + }); + } + completionHandler:^(NSURLResponse * _Nonnull response, id _Nullable responseObject, NSError * _Nullable error) { + if (error) { + NSLog(@"Error: %@", error); + } else { + NSLog(@"%@ %@", response, responseObject); + } + }]; + +[uploadTask resume]; +``` + +#### Creating a Data Task + +```objective-c +NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; +AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; + +NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; +NSURLRequest *request = [NSURLRequest requestWithURL:URL]; + +NSURLSessionDataTask *dataTask = [manager dataTaskWithRequest:request completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { + if (error) { + NSLog(@"Error: %@", error); + } else { + NSLog(@"%@ %@", response, responseObject); + } +}]; +[dataTask resume]; +``` + +--- + +### Request Serialization + +Request serializers create requests from URL strings, encoding parameters as either a query string or HTTP body. + +```objective-c +NSString *URLString = @"http://example.com"; +NSDictionary *parameters = @{@"foo": @"bar", @"baz": @[@1, @2, @3]}; +``` + +#### Query String Parameter Encoding + +```objective-c +[[AFHTTPRequestSerializer serializer] requestWithMethod:@"GET" URLString:URLString parameters:parameters error:nil]; +``` + + GET http://example.com?foo=bar&baz[]=1&baz[]=2&baz[]=3 + +#### URL Form Parameter Encoding + +```objective-c +[[AFHTTPRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters]; +``` + + POST http://example.com/ + Content-Type: application/x-www-form-urlencoded + + foo=bar&baz[]=1&baz[]=2&baz[]=3 + +#### JSON Parameter Encoding + +```objective-c +[[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters]; +``` + + POST http://example.com/ + Content-Type: application/json + + {"foo": "bar", "baz": [1,2,3]} + +--- + +### Network Reachability Manager + +`AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces. + +* Do not use Reachability to determine if the original request should be sent. + * You should try to send it. +* You can use Reachability to determine when a request should be automatically retried. + * Although it may still fail, a Reachability notification that the connectivity is available is a good time to retry something. +* Network reachability is a useful tool for determining why a request might have failed. + * After a network request has failed, telling the user they're offline is better than giving them a more technical but accurate error, such as "request timed out." + +See also [WWDC 2012 session 706, "Networking Best Practices."](https://developer.apple.com/videos/play/wwdc2012-706/). + +#### Shared Network Reachability + +```objective-c +[[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) { + NSLog(@"Reachability: %@", AFStringFromNetworkReachabilityStatus(status)); +}]; + +[[AFNetworkReachabilityManager sharedManager] startMonitoring]; +``` + +--- + +### Security Policy + +`AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections. + +Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled. + +#### Allowing Invalid SSL Certificates + +```objective-c +AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; +manager.securityPolicy.allowInvalidCertificates = YES; // not recommended for production +``` + +--- + +## Unit Tests + +AFNetworking includes a suite of unit tests within the Tests subdirectory. These tests can be run simply be executed the test action on the platform framework you would like to test. + +## Credits + +AFNetworking is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org). + +AFNetworking was originally created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://en.wikipedia.org/wiki/Gowalla). + +AFNetworking's logo was designed by [Alan Defibaugh](http://www.alandefibaugh.com/). + +And most of all, thanks to AFNetworking's [growing list of contributors](https://github.com/AFNetworking/AFNetworking/contributors). + +### Security Disclosure + +If you believe you have identified a security vulnerability with AFNetworking, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker. + +## License + +AFNetworking is released under the MIT license. See LICENSE for details. diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h new file mode 100644 index 0000000..e89b951 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h @@ -0,0 +1,149 @@ +// AFAutoPurgingImageCache.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import +#import + +#if TARGET_OS_IOS || TARGET_OS_TV +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The `AFImageCache` protocol defines a set of APIs for adding, removing and fetching images from a cache synchronously. + */ +@protocol AFImageCache + +/** + Adds the image to the cache with the given identifier. + + @param image The image to cache. + @param identifier The unique identifier for the image in the cache. + */ +- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier; + +/** + Removes the image from the cache matching the given identifier. + + @param identifier The unique identifier for the image in the cache. + + @return A BOOL indicating whether or not the image was removed from the cache. + */ +- (BOOL)removeImageWithIdentifier:(NSString *)identifier; + +/** + Removes all images from the cache. + + @return A BOOL indicating whether or not all images were removed from the cache. + */ +- (BOOL)removeAllImages; + +/** + Returns the image in the cache associated with the given identifier. + + @param identifier The unique identifier for the image in the cache. + + @return An image for the matching identifier, or nil. + */ +- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier; +@end + + +/** + The `ImageRequestCache` protocol extends the `ImageCache` protocol by adding methods for adding, removing and fetching images from a cache given an `NSURLRequest` and additional identifier. + */ +@protocol AFImageRequestCache + +/** + Adds the image to the cache using an identifier created from the request and additional identifier. + + @param image The image to cache. + @param request The unique URL request identifing the image asset. + @param identifier The additional identifier to apply to the URL request to identify the image. + */ +- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier; + +/** + Removes the image from the cache using an identifier created from the request and additional identifier. + + @param request The unique URL request identifing the image asset. + @param identifier The additional identifier to apply to the URL request to identify the image. + + @return A BOOL indicating whether or not all images were removed from the cache. + */ +- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier; + +/** + Returns the image from the cache associated with an identifier created from the request and additional identifier. + + @param request The unique URL request identifing the image asset. + @param identifier The additional identifier to apply to the URL request to identify the image. + + @return An image for the matching request and identifier, or nil. + */ +- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier; + +@end + +/** + The `AutoPurgingImageCache` in an in-memory image cache used to store images up to a given memory capacity. When the memory capacity is reached, the image cache is sorted by last access date, then the oldest image is continuously purged until the preferred memory usage after purge is met. Each time an image is accessed through the cache, the internal access date of the image is updated. + */ +@interface AFAutoPurgingImageCache : NSObject + +/** + The total memory capacity of the cache in bytes. + */ +@property (nonatomic, assign) UInt64 memoryCapacity; + +/** + The preferred memory usage after purge in bytes. During a purge, images will be purged until the memory capacity drops below this limit. + */ +@property (nonatomic, assign) UInt64 preferredMemoryUsageAfterPurge; + +/** + The current total memory usage in bytes of all images stored within the cache. + */ +@property (nonatomic, assign, readonly) UInt64 memoryUsage; + +/** + Initialies the `AutoPurgingImageCache` instance with default values for memory capacity and preferred memory usage after purge limit. `memoryCapcity` defaults to `100 MB`. `preferredMemoryUsageAfterPurge` defaults to `60 MB`. + + @return The new `AutoPurgingImageCache` instance. + */ +- (instancetype)init; + +/** + Initialies the `AutoPurgingImageCache` instance with the given memory capacity and preferred memory usage + after purge limit. + + @param memoryCapacity The total memory capacity of the cache in bytes. + @param preferredMemoryUsageAfterPurge The preferred memory usage after purge in bytes. + + @return The new `AutoPurgingImageCache` instance. + */ +- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity; + +@end + +NS_ASSUME_NONNULL_END + +#endif + diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m new file mode 100644 index 0000000..326fe4f --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m @@ -0,0 +1,201 @@ +// AFAutoPurgingImageCache.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "AFAutoPurgingImageCache.h" + +@interface AFCachedImage : NSObject + +@property (nonatomic, strong) UIImage *image; +@property (nonatomic, strong) NSString *identifier; +@property (nonatomic, assign) UInt64 totalBytes; +@property (nonatomic, strong) NSDate *lastAccessDate; +@property (nonatomic, assign) UInt64 currentMemoryUsage; + +@end + +@implementation AFCachedImage + +-(instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier { + if (self = [self init]) { + self.image = image; + self.identifier = identifier; + + CGSize imageSize = CGSizeMake(image.size.width * image.scale, image.size.height * image.scale); + CGFloat bytesPerPixel = 4.0; + CGFloat bytesPerRow = imageSize.width * bytesPerPixel; + self.totalBytes = (UInt64)bytesPerPixel * (UInt64)bytesPerRow; + self.lastAccessDate = [NSDate date]; + } + return self; +} + +- (UIImage*)accessImage { + self.lastAccessDate = [NSDate date]; + return self.image; +} + +- (NSString *)description { + NSString *descriptionString = [NSString stringWithFormat:@"Idenfitier: %@ lastAccessDate: %@ ", self.identifier, self.lastAccessDate]; + return descriptionString; + +} + +@end + +@interface AFAutoPurgingImageCache () +@property (nonatomic, strong) NSMutableDictionary *cachedImages; +@property (nonatomic, assign) UInt64 currentMemoryUsage; +@property (nonatomic, strong) dispatch_queue_t synchronizationQueue; +@end + +@implementation AFAutoPurgingImageCache + +- (instancetype)init { + return [self initWithMemoryCapacity:100 * 1024 * 1024 preferredMemoryCapacity:60 * 1024 * 1024]; +} + +- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity { + if (self = [super init]) { + self.memoryCapacity = memoryCapacity; + self.preferredMemoryUsageAfterPurge = preferredMemoryCapacity; + self.cachedImages = [[NSMutableDictionary alloc] init]; + + NSString *queueName = [NSString stringWithFormat:@"com.alamofire.autopurgingimagecache-%@", [[NSUUID UUID] UUIDString]]; + self.synchronizationQueue = dispatch_queue_create([queueName cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT); + + [[NSNotificationCenter defaultCenter] + addObserver:self + selector:@selector(removeAllImages) + name:UIApplicationDidReceiveMemoryWarningNotification + object:nil]; + + } + return self; +} + +- (void)dealloc { + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +- (UInt64)memoryUsage { + __block UInt64 result = 0; + dispatch_sync(self.synchronizationQueue, ^{ + result = self.currentMemoryUsage; + }); + return result; +} + +- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier { + dispatch_barrier_async(self.synchronizationQueue, ^{ + AFCachedImage *cacheImage = [[AFCachedImage alloc] initWithImage:image identifier:identifier]; + + AFCachedImage *previousCachedImage = self.cachedImages[identifier]; + if (previousCachedImage != nil) { + self.currentMemoryUsage -= previousCachedImage.totalBytes; + } + + self.cachedImages[identifier] = cacheImage; + self.currentMemoryUsage += cacheImage.totalBytes; + }); + + dispatch_barrier_async(self.synchronizationQueue, ^{ + if (self.currentMemoryUsage > self.memoryCapacity) { + UInt64 bytesToPurge = self.currentMemoryUsage - self.preferredMemoryUsageAfterPurge; + NSMutableArray *sortedImages = [NSMutableArray arrayWithArray:self.cachedImages.allValues]; + NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"lastAccessDate" + ascending:YES]; + [sortedImages sortUsingDescriptors:@[sortDescriptor]]; + + UInt64 bytesPurged = 0; + + for (AFCachedImage *cachedImage in sortedImages) { + [self.cachedImages removeObjectForKey:cachedImage.identifier]; + bytesPurged += cachedImage.totalBytes; + if (bytesPurged >= bytesToPurge) { + break ; + } + } + self.currentMemoryUsage -= bytesPurged; + } + }); +} + +- (BOOL)removeImageWithIdentifier:(NSString *)identifier { + __block BOOL removed = NO; + dispatch_barrier_sync(self.synchronizationQueue, ^{ + AFCachedImage *cachedImage = self.cachedImages[identifier]; + if (cachedImage != nil) { + [self.cachedImages removeObjectForKey:identifier]; + self.currentMemoryUsage -= cachedImage.totalBytes; + removed = YES; + } + }); + return removed; +} + +- (BOOL)removeAllImages { + __block BOOL removed = NO; + dispatch_barrier_sync(self.synchronizationQueue, ^{ + if (self.cachedImages.count > 0) { + [self.cachedImages removeAllObjects]; + self.currentMemoryUsage = 0; + removed = YES; + } + }); + return removed; +} + +- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier { + __block UIImage *image = nil; + dispatch_sync(self.synchronizationQueue, ^{ + AFCachedImage *cachedImage = self.cachedImages[identifier]; + image = [cachedImage accessImage]; + }); + return image; +} + +- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier { + [self addImage:image withIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]]; +} + +- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier { + return [self removeImageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]]; +} + +- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier { + return [self imageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]]; +} + +- (NSString *)imageCacheKeyFromURLRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)additionalIdentifier { + NSString *key = request.URL.absoluteString; + if (additionalIdentifier != nil) { + key = [key stringByAppendingString:additionalIdentifier]; + } + return key; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h new file mode 100644 index 0000000..b35e185 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h @@ -0,0 +1,157 @@ +// AFImageDownloader.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import +#import "AFAutoPurgingImageCache.h" +#import "AFHTTPSessionManager.h" + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, AFImageDownloadPrioritization) { + AFImageDownloadPrioritizationFIFO, + AFImageDownloadPrioritizationLIFO +}; + +/** + The `AFImageDownloadReceipt` is an object vended by the `AFImageDownloader` when starting a data task. It can be used to cancel active tasks running on the `AFImageDownloader` session. As a general rule, image data tasks should be cancelled using the `AFImageDownloadReceipt` instead of calling `cancel` directly on the `task` itself. The `AFImageDownloader` is optimized to handle duplicate task scenarios as well as pending versus active downloads. + */ +@interface AFImageDownloadReceipt : NSObject + +/** + The data task created by the `AFImageDownloader`. +*/ +@property (nonatomic, strong) NSURLSessionDataTask *task; + +/** + The unique identifier for the success and failure blocks when duplicate requests are made. + */ +@property (nonatomic, strong) NSUUID *receiptID; +@end + +/** The `AFImageDownloader` class is responsible for downloading images in parallel on a prioritized queue. Incoming downloads are added to the front or back of the queue depending on the download prioritization. Each downloaded image is cached in the underlying `NSURLCache` as well as the in-memory image cache. By default, any download request with a cached image equivalent in the image cache will automatically be served the cached image representation. + */ +@interface AFImageDownloader : NSObject + +/** + The image cache used to store all downloaded images in. `AFAutoPurgingImageCache` by default. + */ +@property (nonatomic, strong, nullable) id imageCache; + +/** + The `AFHTTPSessionManager` used to download images. By default, this is configured with an `AFImageResponseSerializer`, and a shared `NSURLCache` for all image downloads. + */ +@property (nonatomic, strong) AFHTTPSessionManager *sessionManager; + +/** + Defines the order prioritization of incoming download requests being inserted into the queue. `AFImageDownloadPrioritizationFIFO` by default. + */ +@property (nonatomic, assign) AFImageDownloadPrioritization downloadPrioritizaton; + +/** + The shared default instance of `AFImageDownloader` initialized with default values. + */ ++ (instancetype)defaultInstance; + +/** + Creates a default `NSURLCache` with common usage parameter values. + + @returns The default `NSURLCache` instance. + */ ++ (NSURLCache *)defaultURLCache; + +/** + Default initializer + + @return An instance of `AFImageDownloader` initialized with default values. + */ +- (instancetype)init; + +/** + Initializes the `AFImageDownloader` instance with the given session manager, download prioritization, maximum active download count and image cache. + + @param sessionManager The session manager to use to download images. + @param downloadPrioritization The download prioritization of the download queue. + @param maximumActiveDownloads The maximum number of active downloads allowed at any given time. Recommend `4`. + @param imageCache The image cache used to store all downloaded images in. + + @return The new `AFImageDownloader` instance. + */ +- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager + downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization + maximumActiveDownloads:(NSInteger)maximumActiveDownloads + imageCache:(nullable id )imageCache; + +/** + Creates a data task using the `sessionManager` instance for the specified URL request. + + If the same data task is already in the queue or currently being downloaded, the success and failure blocks are + appended to the already existing task. Once the task completes, all success or failure blocks attached to the + task are executed in the order they were added. + + @param request The URL request. + @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`. + @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. + + @return The image download receipt for the data task if available. `nil` if the image is stored in the cache. + cache and the URL request cache policy allows the cache to be used. + */ +- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure; + +/** + Creates a data task using the `sessionManager` instance for the specified URL request. + + If the same data task is already in the queue or currently being downloaded, the success and failure blocks are + appended to the already existing task. Once the task completes, all success or failure blocks attached to the + task are executed in the order they were added. + + @param request The URL request. + @param request The identifier to use for the download receipt that will be created for this request. This must be a unique identifier that does not represent any other request. + @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`. + @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. + + @return The image download receipt for the data task if available. `nil` if the image is stored in the cache. + cache and the URL request cache policy allows the cache to be used. + */ +- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request + withReceiptID:(NSUUID *)receiptID + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure; + +/** + Cancels the data task in the receipt by removing the corresponding success and failure blocks and cancelling the data task if necessary. + + If the data task is pending in the queue, it will be cancelled if no other success and failure blocks are registered with the data task. If the data task is currently executing or is already completed, the success and failure blocks are removed and will not be called when the task finishes. + + @param imageDownloadReceipt The image download receipt to cancel. + */ +- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt; + +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m new file mode 100644 index 0000000..e87082a --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m @@ -0,0 +1,369 @@ +// AFImageDownloader.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "AFImageDownloader.h" +#import "AFHTTPSessionManager.h" + +@interface AFImageDownloaderResponseHandler : NSObject +@property (nonatomic, strong) NSUUID *uuid; +@property (nonatomic, copy) void (^successBlock)(NSURLRequest*, NSHTTPURLResponse*, UIImage*); +@property (nonatomic, copy) void (^failureBlock)(NSURLRequest*, NSHTTPURLResponse*, NSError*); +@end + +@implementation AFImageDownloaderResponseHandler + +- (instancetype)initWithUUID:(NSUUID *)uuid + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure { + if (self = [self init]) { + self.uuid = uuid; + self.successBlock = success; + self.failureBlock = failure; + } + return self; +} + +- (NSString *)description { + return [NSString stringWithFormat: @"UUID: %@", [self.uuid UUIDString]]; +} + +@end + +@interface AFImageDownloaderMergedTask : NSObject +@property (nonatomic, strong) NSString *identifier; +@property (nonatomic, strong) NSURLSessionDataTask *task; +@property (nonatomic, strong) NSMutableArray *responseHandlers; + +@end + +@implementation AFImageDownloaderMergedTask + +- (instancetype)initWithIdentifier:(NSString *)identifier task:(NSURLSessionDataTask *)task { + if (self = [self init]) { + self.identifier = identifier; + self.task = task; + self.responseHandlers = [[NSMutableArray alloc] init]; + } + return self; +} + +- (void)addResponseHandler:(AFImageDownloaderResponseHandler*)handler { + [self.responseHandlers addObject:handler]; +} + +- (void)removeResponseHandler:(AFImageDownloaderResponseHandler*)handler { + [self.responseHandlers removeObject:handler]; +} + +@end + +@implementation AFImageDownloadReceipt + +- (instancetype)initWithReceiptID:(NSUUID *)receiptID task:(NSURLSessionDataTask *)task { + if (self = [self init]) { + self.receiptID = receiptID; + self.task = task; + } + return self; +} + +@end + +@interface AFImageDownloader () + +@property (nonatomic, strong) dispatch_queue_t synchronizationQueue; +@property (nonatomic, strong) dispatch_queue_t responseQueue; + +@property (nonatomic, assign) NSInteger maximumActiveDownloads; +@property (nonatomic, assign) NSInteger activeRequestCount; + +@property (nonatomic, strong) NSMutableArray *queuedMergedTasks; +@property (nonatomic, strong) NSMutableDictionary *mergedTasks; + +@end + + +@implementation AFImageDownloader + ++ (NSURLCache *)defaultURLCache { + return [[NSURLCache alloc] initWithMemoryCapacity:20 * 1024 * 1024 + diskCapacity:150 * 1024 * 1024 + diskPath:@"com.alamofire.imagedownloader"]; +} + ++ (NSURLSessionConfiguration *)defaultURLSessionConfiguration { + NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; + + //TODO set the default HTTP headers + + configuration.HTTPShouldSetCookies = YES; + configuration.HTTPShouldUsePipelining = NO; + + configuration.requestCachePolicy = NSURLRequestUseProtocolCachePolicy; + configuration.allowsCellularAccess = YES; + configuration.timeoutIntervalForRequest = 60.0; + configuration.URLCache = [AFImageDownloader defaultURLCache]; + + return configuration; +} + +- (instancetype)init { + NSURLSessionConfiguration *defaultConfiguration = [self.class defaultURLSessionConfiguration]; + AFHTTPSessionManager *sessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:defaultConfiguration]; + sessionManager.responseSerializer = [AFImageResponseSerializer serializer]; + + return [self initWithSessionManager:sessionManager + downloadPrioritization:AFImageDownloadPrioritizationFIFO + maximumActiveDownloads:4 + imageCache:[[AFAutoPurgingImageCache alloc] init]]; +} + +- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager + downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization + maximumActiveDownloads:(NSInteger)maximumActiveDownloads + imageCache:(id )imageCache { + if (self = [super init]) { + self.sessionManager = sessionManager; + + self.downloadPrioritizaton = downloadPrioritization; + self.maximumActiveDownloads = maximumActiveDownloads; + self.imageCache = imageCache; + + self.queuedMergedTasks = [[NSMutableArray alloc] init]; + self.mergedTasks = [[NSMutableDictionary alloc] init]; + self.activeRequestCount = 0; + + NSString *name = [NSString stringWithFormat:@"com.alamofire.imagedownloader.synchronizationqueue-%@", [[NSUUID UUID] UUIDString]]; + self.synchronizationQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_SERIAL); + + name = [NSString stringWithFormat:@"com.alamofire.imagedownloader.responsequeue-%@", [[NSUUID UUID] UUIDString]]; + self.responseQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT); + } + + return self; +} + ++ (instancetype)defaultInstance { + static AFImageDownloader *sharedInstance = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedInstance = [[self alloc] init]; + }); + return sharedInstance; +} + +- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request + success:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, UIImage * _Nonnull))success + failure:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, NSError * _Nonnull))failure { + return [self downloadImageForURLRequest:request withReceiptID:[NSUUID UUID] success:success failure:failure]; +} + +- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request + withReceiptID:(nonnull NSUUID *)receiptID + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure { + __block NSURLSessionDataTask *task = nil; + dispatch_sync(self.synchronizationQueue, ^{ + NSString *identifier = request.URL.absoluteString; + + // 1) Append the success and failure blocks to a pre-existing request if it already exists + AFImageDownloaderMergedTask *existingMergedTask = self.mergedTasks[identifier]; + if (existingMergedTask != nil) { + AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID success:success failure:failure]; + [existingMergedTask addResponseHandler:handler]; + task = existingMergedTask.task; + return; + } + + // 2) Attempt to load the image from the image cache if the cache policy allows it + switch (request.cachePolicy) { + case NSURLRequestUseProtocolCachePolicy: + case NSURLRequestReturnCacheDataElseLoad: + case NSURLRequestReturnCacheDataDontLoad: { + UIImage *cachedImage = [self.imageCache imageforRequest:request withAdditionalIdentifier:nil]; + if (cachedImage != nil) { + if (success) { + dispatch_async(dispatch_get_main_queue(), ^{ + success(request, nil, cachedImage); + }); + } + return; + } + break; + } + default: + break; + } + + // 3) Create the request and set up authentication, validation and response serialization + NSURLSessionDataTask *createdTask; + __weak __typeof__(self) weakSelf = self; + + createdTask = [self.sessionManager + dataTaskWithRequest:request + completionHandler:^(NSURLResponse * _Nonnull response, id _Nullable responseObject, NSError * _Nullable error) { + dispatch_async(self.responseQueue, ^{ + __strong __typeof__(weakSelf) strongSelf = weakSelf; + AFImageDownloaderMergedTask *mergedTask = [strongSelf safelyRemoveMergedTaskWithIdentifier:identifier]; + if (error) { + for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) { + if (handler.failureBlock) { + dispatch_async(dispatch_get_main_queue(), ^{ + handler.failureBlock(request, (NSHTTPURLResponse*)response, error); + }); + } + } + } else { + [strongSelf.imageCache addImage:responseObject forRequest:request withAdditionalIdentifier:nil]; + + for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) { + if (handler.successBlock) { + dispatch_async(dispatch_get_main_queue(), ^{ + handler.successBlock(request, (NSHTTPURLResponse*)response, responseObject); + }); + } + } + + } + [strongSelf safelyDecrementActiveTaskCount]; + [strongSelf safelyStartNextTaskIfNecessary]; + }); + }]; + + // 4) Store the response handler for use when the request completes + AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID + success:success + failure:failure]; + AFImageDownloaderMergedTask *mergedTask = [[AFImageDownloaderMergedTask alloc] + initWithIdentifier:identifier + task:createdTask]; + [mergedTask addResponseHandler:handler]; + self.mergedTasks[identifier] = mergedTask; + + // 5) Either start the request or enqueue it depending on the current active request count + if ([self isActiveRequestCountBelowMaximumLimit]) { + [self startMergedTask:mergedTask]; + } else { + [self enqueueMergedTask:mergedTask]; + } + + task = mergedTask.task; + }); + if (task) { + return [[AFImageDownloadReceipt alloc] initWithReceiptID:receiptID task:task]; + } else { + return nil; + } +} + +- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt { + dispatch_sync(self.synchronizationQueue, ^{ + NSString *identifier = imageDownloadReceipt.task.originalRequest.URL.absoluteString; + AFImageDownloaderMergedTask *mergedTask = self.mergedTasks[identifier]; + NSUInteger index = [mergedTask.responseHandlers indexOfObjectPassingTest:^BOOL(AFImageDownloaderResponseHandler * _Nonnull handler, __unused NSUInteger idx, __unused BOOL * _Nonnull stop) { + return handler.uuid == imageDownloadReceipt.receiptID; + }]; + + if (index != NSNotFound) { + AFImageDownloaderResponseHandler *handler = mergedTask.responseHandlers[index]; + [mergedTask removeResponseHandler:handler]; + NSString *failureReason = [NSString stringWithFormat:@"ImageDownloader cancelled URL request: %@",imageDownloadReceipt.task.originalRequest.URL.absoluteString]; + NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey:failureReason}; + NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:userInfo]; + if (handler.failureBlock) { + dispatch_async(dispatch_get_main_queue(), ^{ + handler.failureBlock(imageDownloadReceipt.task.originalRequest, nil, error); + }); + } + } + + if (mergedTask.responseHandlers.count == 0 && mergedTask.task.state == NSURLSessionTaskStateSuspended) { + [mergedTask.task cancel]; + } + }); +} + +- (AFImageDownloaderMergedTask*)safelyRemoveMergedTaskWithIdentifier:(NSString *)identifier { + __block AFImageDownloaderMergedTask *mergedTask = nil; + dispatch_sync(self.synchronizationQueue, ^{ + mergedTask = self.mergedTasks[identifier]; + [self.mergedTasks removeObjectForKey:identifier]; + + }); + return mergedTask; +} + +- (void)safelyDecrementActiveTaskCount { + dispatch_sync(self.synchronizationQueue, ^{ + if (self.activeRequestCount > 0) { + self.activeRequestCount -= 1; + } + }); +} + +- (void)safelyStartNextTaskIfNecessary { + dispatch_sync(self.synchronizationQueue, ^{ + if ([self isActiveRequestCountBelowMaximumLimit]) { + while (self.queuedMergedTasks.count > 0) { + AFImageDownloaderMergedTask *mergedTask = [self dequeueMergedTask]; + if (mergedTask.task.state == NSURLSessionTaskStateSuspended) { + [self startMergedTask:mergedTask]; + break; + } + } + } + }); +} + +- (void)startMergedTask:(AFImageDownloaderMergedTask *)mergedTask { + [mergedTask.task resume]; + ++self.activeRequestCount; +} + +- (void)enqueueMergedTask:(AFImageDownloaderMergedTask *)mergedTask { + switch (self.downloadPrioritizaton) { + case AFImageDownloadPrioritizationFIFO: + [self.queuedMergedTasks addObject:mergedTask]; + break; + case AFImageDownloadPrioritizationLIFO: + [self.queuedMergedTasks insertObject:mergedTask atIndex:0]; + break; + } +} + +- (AFImageDownloaderMergedTask *)dequeueMergedTask { + AFImageDownloaderMergedTask *mergedTask = nil; + mergedTask = [self.queuedMergedTasks firstObject]; + [self.queuedMergedTasks removeObject:mergedTask]; + return mergedTask; +} + +- (BOOL)isActiveRequestCountBelowMaximumLimit { + return self.activeRequestCount < self.maximumActiveDownloads; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h new file mode 100644 index 0000000..a627a6d --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h @@ -0,0 +1,103 @@ +// AFNetworkActivityIndicatorManager.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + `AFNetworkActivityIndicatorManager` manages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a session task has started or finished, and start or stop animating the indicator accordingly. The number of active requests is incremented and decremented much like a stack or a semaphore, and the activity indicator will animate so long as that number is greater than zero. + + You should enable the shared instance of `AFNetworkActivityIndicatorManager` when your application finishes launching. In `AppDelegate application:didFinishLaunchingWithOptions:` you can do so with the following code: + + [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES]; + + By setting `enabled` to `YES` for `sharedManager`, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to call `incrementActivityCount` or `decrementActivityCount` yourself. + + See the Apple Human Interface Guidelines section about the Network Activity Indicator for more information: + http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW44 + */ +NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.") +@interface AFNetworkActivityIndicatorManager : NSObject + +/** + A Boolean value indicating whether the manager is enabled. + + If YES, the manager will change status bar network activity indicator according to network operation notifications it receives. The default value is NO. + */ +@property (nonatomic, assign, getter = isEnabled) BOOL enabled; + +/** + A Boolean value indicating whether the network activity indicator manager is currently active. +*/ +@property (readonly, nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible; + +/** + A time interval indicating the minimum duration of networking activity that should occur before the activity indicator is displayed. The default value 1 second. If the network activity indicator should be displayed immediately when network activity occurs, this value should be set to 0 seconds. + + Apple's HIG describes the following: + + > Display the network activity indicator to provide feedback when your app accesses the network for more than a couple of seconds. If the operation finishes sooner than that, you don’t have to show the network activity indicator, because the indicator is likely to disappear before users notice its presence. + + */ +@property (nonatomic, assign) NSTimeInterval activationDelay; + +/** + A time interval indicating the duration of time of no networking activity required before the activity indicator is disabled. This allows for continuous display of the network activity indicator across multiple requests. The default value is 0.17 seconds. + */ + +@property (nonatomic, assign) NSTimeInterval completionDelay; + +/** + Returns the shared network activity indicator manager object for the system. + + @return The systemwide network activity indicator manager. + */ ++ (instancetype)sharedManager; + +/** + Increments the number of active network requests. If this number was zero before incrementing, this will start animating the status bar network activity indicator. + */ +- (void)incrementActivityCount; + +/** + Decrements the number of active network requests. If this number becomes zero after decrementing, this will stop animating the status bar network activity indicator. + */ +- (void)decrementActivityCount; + +/** + Set the a custom method to be executed when the network activity indicator manager should be hidden/shown. By default, this is null, and the UIApplication Network Activity Indicator will be managed automatically. If this block is set, it is the responsiblity of the caller to manager the network activity indicator going forward. + + @param block A block to be executed when the network activity indicator status changes. + */ +- (void)setNetworkingActivityActionWithBlock:(nullable void (^)(BOOL networkActivityIndicatorVisible))block; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m new file mode 100644 index 0000000..0615fa9 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m @@ -0,0 +1,261 @@ +// AFNetworkActivityIndicatorManager.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "AFNetworkActivityIndicatorManager.h" + +#if TARGET_OS_IOS +#import "AFURLSessionManager.h" + +typedef NS_ENUM(NSInteger, AFNetworkActivityManagerState) { + AFNetworkActivityManagerStateNotActive, + AFNetworkActivityManagerStateDelayingStart, + AFNetworkActivityManagerStateActive, + AFNetworkActivityManagerStateDelayingEnd +}; + +static NSTimeInterval const kDefaultAFNetworkActivityManagerActivationDelay = 1.0; +static NSTimeInterval const kDefaultAFNetworkActivityManagerCompletionDelay = 0.17; + +static NSURLRequest * AFNetworkRequestFromNotification(NSNotification *notification) { + if ([[notification object] respondsToSelector:@selector(originalRequest)]) { + return [(NSURLSessionTask *)[notification object] originalRequest]; + } else { + return nil; + } +} + +typedef void (^AFNetworkActivityActionBlock)(BOOL networkActivityIndicatorVisible); + +@interface AFNetworkActivityIndicatorManager () +@property (readwrite, nonatomic, assign) NSInteger activityCount; +@property (readwrite, nonatomic, strong) NSTimer *activationDelayTimer; +@property (readwrite, nonatomic, strong) NSTimer *completionDelayTimer; +@property (readonly, nonatomic, getter = isNetworkActivityOccurring) BOOL networkActivityOccurring; +@property (nonatomic, copy) AFNetworkActivityActionBlock networkActivityActionBlock; +@property (nonatomic, assign) AFNetworkActivityManagerState currentState; +@property (nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible; + +- (void)updateCurrentStateForNetworkActivityChange; +@end + +@implementation AFNetworkActivityIndicatorManager + ++ (instancetype)sharedManager { + static AFNetworkActivityIndicatorManager *_sharedManager = nil; + static dispatch_once_t oncePredicate; + dispatch_once(&oncePredicate, ^{ + _sharedManager = [[self alloc] init]; + }); + + return _sharedManager; +} + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + self.currentState = AFNetworkActivityManagerStateNotActive; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingTaskDidResumeNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidSuspendNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidCompleteNotification object:nil]; + self.activationDelay = kDefaultAFNetworkActivityManagerActivationDelay; + self.completionDelay = kDefaultAFNetworkActivityManagerCompletionDelay; + + return self; +} + +- (void)dealloc { + [[NSNotificationCenter defaultCenter] removeObserver:self]; + + [_activationDelayTimer invalidate]; + [_completionDelayTimer invalidate]; +} + +- (void)setEnabled:(BOOL)enabled { + _enabled = enabled; + if (enabled == NO) { + [self setCurrentState:AFNetworkActivityManagerStateNotActive]; + } +} + +- (void)setNetworkingActivityActionWithBlock:(void (^)(BOOL networkActivityIndicatorVisible))block { + self.networkActivityActionBlock = block; +} + +- (BOOL)isNetworkActivityOccurring { + @synchronized(self) { + return self.activityCount > 0; + } +} + +- (void)setNetworkActivityIndicatorVisible:(BOOL)networkActivityIndicatorVisible { + if (_networkActivityIndicatorVisible != networkActivityIndicatorVisible) { + [self willChangeValueForKey:@"networkActivityIndicatorVisible"]; + @synchronized(self) { + _networkActivityIndicatorVisible = networkActivityIndicatorVisible; + } + [self didChangeValueForKey:@"networkActivityIndicatorVisible"]; + if (self.networkActivityActionBlock) { + self.networkActivityActionBlock(networkActivityIndicatorVisible); + } else { + [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:networkActivityIndicatorVisible]; + } + } +} + +- (void)setActivityCount:(NSInteger)activityCount { + @synchronized(self) { + _activityCount = activityCount; + } + + dispatch_async(dispatch_get_main_queue(), ^{ + [self updateCurrentStateForNetworkActivityChange]; + }); +} + +- (void)incrementActivityCount { + [self willChangeValueForKey:@"activityCount"]; + @synchronized(self) { + _activityCount++; + } + [self didChangeValueForKey:@"activityCount"]; + + dispatch_async(dispatch_get_main_queue(), ^{ + [self updateCurrentStateForNetworkActivityChange]; + }); +} + +- (void)decrementActivityCount { + [self willChangeValueForKey:@"activityCount"]; + @synchronized(self) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu" + _activityCount = MAX(_activityCount - 1, 0); +#pragma clang diagnostic pop + } + [self didChangeValueForKey:@"activityCount"]; + + dispatch_async(dispatch_get_main_queue(), ^{ + [self updateCurrentStateForNetworkActivityChange]; + }); +} + +- (void)networkRequestDidStart:(NSNotification *)notification { + if ([AFNetworkRequestFromNotification(notification) URL]) { + [self incrementActivityCount]; + } +} + +- (void)networkRequestDidFinish:(NSNotification *)notification { + if ([AFNetworkRequestFromNotification(notification) URL]) { + [self decrementActivityCount]; + } +} + +#pragma mark - Internal State Management +- (void)setCurrentState:(AFNetworkActivityManagerState)currentState { + @synchronized(self) { + if (_currentState != currentState) { + [self willChangeValueForKey:@"currentState"]; + _currentState = currentState; + switch (currentState) { + case AFNetworkActivityManagerStateNotActive: + [self cancelActivationDelayTimer]; + [self cancelCompletionDelayTimer]; + [self setNetworkActivityIndicatorVisible:NO]; + break; + case AFNetworkActivityManagerStateDelayingStart: + [self startActivationDelayTimer]; + break; + case AFNetworkActivityManagerStateActive: + [self cancelCompletionDelayTimer]; + [self setNetworkActivityIndicatorVisible:YES]; + break; + case AFNetworkActivityManagerStateDelayingEnd: + [self startCompletionDelayTimer]; + break; + } + } + [self didChangeValueForKey:@"currentState"]; + } +} + +- (void)updateCurrentStateForNetworkActivityChange { + if (self.enabled) { + switch (self.currentState) { + case AFNetworkActivityManagerStateNotActive: + if (self.isNetworkActivityOccurring) { + [self setCurrentState:AFNetworkActivityManagerStateDelayingStart]; + } + break; + case AFNetworkActivityManagerStateDelayingStart: + //No op. Let the delay timer finish out. + break; + case AFNetworkActivityManagerStateActive: + if (!self.isNetworkActivityOccurring) { + [self setCurrentState:AFNetworkActivityManagerStateDelayingEnd]; + } + break; + case AFNetworkActivityManagerStateDelayingEnd: + if (self.isNetworkActivityOccurring) { + [self setCurrentState:AFNetworkActivityManagerStateActive]; + } + break; + } + } +} + +- (void)startActivationDelayTimer { + self.activationDelayTimer = [NSTimer + timerWithTimeInterval:self.activationDelay target:self selector:@selector(activationDelayTimerFired) userInfo:nil repeats:NO]; + [[NSRunLoop mainRunLoop] addTimer:self.activationDelayTimer forMode:NSRunLoopCommonModes]; +} + +- (void)activationDelayTimerFired { + if (self.networkActivityOccurring) { + [self setCurrentState:AFNetworkActivityManagerStateActive]; + } else { + [self setCurrentState:AFNetworkActivityManagerStateNotActive]; + } +} + +- (void)startCompletionDelayTimer { + [self.completionDelayTimer invalidate]; + self.completionDelayTimer = [NSTimer timerWithTimeInterval:self.completionDelay target:self selector:@selector(completionDelayTimerFired) userInfo:nil repeats:NO]; + [[NSRunLoop mainRunLoop] addTimer:self.completionDelayTimer forMode:NSRunLoopCommonModes]; +} + +- (void)completionDelayTimerFired { + [self setCurrentState:AFNetworkActivityManagerStateNotActive]; +} + +- (void)cancelActivationDelayTimer { + [self.activationDelayTimer invalidate]; +} + +- (void)cancelCompletionDelayTimer { + [self.completionDelayTimer invalidate]; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h new file mode 100644 index 0000000..b6ef044 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h @@ -0,0 +1,48 @@ +// UIActivityIndicatorView+AFNetworking.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import + +/** + This category adds methods to the UIKit framework's `UIActivityIndicatorView` class. The methods in this category provide support for automatically starting and stopping animation depending on the loading state of a session task. + */ +@interface UIActivityIndicatorView (AFNetworking) + +///---------------------------------- +/// @name Animating for Session Tasks +///---------------------------------- + +/** + Binds the animating state to the state of the specified task. + + @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. + */ +- (void)setAnimatingWithStateOfTask:(nullable NSURLSessionTask *)task; + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m new file mode 100644 index 0000000..fcf1c0c --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m @@ -0,0 +1,124 @@ +// UIActivityIndicatorView+AFNetworking.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIActivityIndicatorView+AFNetworking.h" +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "AFURLSessionManager.h" + +@interface AFActivityIndicatorViewNotificationObserver : NSObject +@property (readonly, nonatomic, weak) UIActivityIndicatorView *activityIndicatorView; +- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView; + +- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task; + +@end + +@implementation UIActivityIndicatorView (AFNetworking) + +- (AFActivityIndicatorViewNotificationObserver *)af_notificationObserver { + AFActivityIndicatorViewNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver)); + if (notificationObserver == nil) { + notificationObserver = [[AFActivityIndicatorViewNotificationObserver alloc] initWithActivityIndicatorView:self]; + objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC); + } + return notificationObserver; +} + +- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task { + [[self af_notificationObserver] setAnimatingWithStateOfTask:task]; +} + +@end + +@implementation AFActivityIndicatorViewNotificationObserver + +- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView +{ + self = [super init]; + if (self) { + _activityIndicatorView = activityIndicatorView; + } + return self; +} + +- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task { + NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; + + [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; + + if (task) { + if (task.state != NSURLSessionTaskStateCompleted) { + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" +#pragma clang diagnostic ignored "-Warc-repeated-use-of-weak" + if (task.state == NSURLSessionTaskStateRunning) { + [self.activityIndicatorView startAnimating]; + } else { + [self.activityIndicatorView stopAnimating]; + } +#pragma clang diagnostic pop + + [notificationCenter addObserver:self selector:@selector(af_startAnimating) name:AFNetworkingTaskDidResumeNotification object:task]; + [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidCompleteNotification object:task]; + [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidSuspendNotification object:task]; + } + } +} + +#pragma mark - + +- (void)af_startAnimating { + dispatch_async(dispatch_get_main_queue(), ^{ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" + [self.activityIndicatorView startAnimating]; +#pragma clang diagnostic pop + }); +} + +- (void)af_stopAnimating { + dispatch_async(dispatch_get_main_queue(), ^{ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" + [self.activityIndicatorView stopAnimating]; +#pragma clang diagnostic pop + }); +} + +#pragma mark - + +- (void)dealloc { + NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; + + [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h new file mode 100644 index 0000000..98b911e --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h @@ -0,0 +1,175 @@ +// UIButton+AFNetworking.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class AFImageDownloader; + +/** + This category adds methods to the UIKit framework's `UIButton` class. The methods in this category provide support for loading remote images and background images asynchronously from a URL. + + @warning Compound values for control `state` (such as `UIControlStateHighlighted | UIControlStateDisabled`) are unsupported. + */ +@interface UIButton (AFNetworking) + +///------------------------------------ +/// @name Accessing the Image Downloader +///------------------------------------ + +/** + Set the shared image downloader used to download images. + + @param imageDownloader The shared image downloader used to download images. +*/ ++ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader; + +/** + The shared image downloader used to download images. + */ ++ (AFImageDownloader *)sharedImageDownloader; + +///-------------------- +/// @name Setting Image +///-------------------- + +/** + Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + @param state The control state. + @param url The URL used for the image request. + */ +- (void)setImageForState:(UIControlState)state + withURL:(NSURL *)url; + +/** + Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + @param state The control state. + @param url The URL used for the image request. + @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes. + */ +- (void)setImageForState:(UIControlState)state + withURL:(NSURL *)url + placeholderImage:(nullable UIImage *)placeholderImage; + +/** + Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setImage:forState:` is applied. + + @param state The control state. + @param urlRequest The URL request used for the image request. + @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes. + @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`. + @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. + */ +- (void)setImageForState:(UIControlState)state + withURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(nullable UIImage *)placeholderImage + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure; + + +///------------------------------- +/// @name Setting Background Image +///------------------------------- + +/** + Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous background image request for the receiver will be cancelled. + + If the background image is cached locally, the background image is set immediately, otherwise the specified placeholder background image will be set immediately, and then the remote background image will be set once the request is finished. + + @param state The control state. + @param url The URL used for the background image request. + */ +- (void)setBackgroundImageForState:(UIControlState)state + withURL:(NSURL *)url; + +/** + Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + @param state The control state. + @param url The URL used for the background image request. + @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes. + */ +- (void)setBackgroundImageForState:(UIControlState)state + withURL:(NSURL *)url + placeholderImage:(nullable UIImage *)placeholderImage; + +/** + Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setBackgroundImage:forState:` is applied. + + @param state The control state. + @param urlRequest The URL request used for the image request. + @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes. + @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`. + @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. + */ +- (void)setBackgroundImageForState:(UIControlState)state + withURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(nullable UIImage *)placeholderImage + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure; + + +///------------------------------ +/// @name Canceling Image Loading +///------------------------------ + +/** + Cancels any executing image task for the specified control state of the receiver, if one exists. + + @param state The control state. + */ +- (void)cancelImageDownloadTaskForState:(UIControlState)state; + +/** + Cancels any executing background image task for the specified control state of the receiver, if one exists. + + @param state The control state. + */ +- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m new file mode 100644 index 0000000..ceb6ebc --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m @@ -0,0 +1,305 @@ +// UIButton+AFNetworking.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIButton+AFNetworking.h" + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "UIImageView+AFNetworking.h" +#import "AFImageDownloader.h" + +@interface UIButton (_AFNetworking) +@end + +@implementation UIButton (_AFNetworking) + +#pragma mark - + +static char AFImageDownloadReceiptNormal; +static char AFImageDownloadReceiptHighlighted; +static char AFImageDownloadReceiptSelected; +static char AFImageDownloadReceiptDisabled; + +static const char * af_imageDownloadReceiptKeyForState(UIControlState state) { + switch (state) { + case UIControlStateHighlighted: + return &AFImageDownloadReceiptHighlighted; + case UIControlStateSelected: + return &AFImageDownloadReceiptSelected; + case UIControlStateDisabled: + return &AFImageDownloadReceiptDisabled; + case UIControlStateNormal: + default: + return &AFImageDownloadReceiptNormal; + } +} + +- (AFImageDownloadReceipt *)af_imageDownloadReceiptForState:(UIControlState)state { + return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_imageDownloadReceiptKeyForState(state)); +} + +- (void)af_setImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt + forState:(UIControlState)state +{ + objc_setAssociatedObject(self, af_imageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - + +static char AFBackgroundImageDownloadReceiptNormal; +static char AFBackgroundImageDownloadReceiptHighlighted; +static char AFBackgroundImageDownloadReceiptSelected; +static char AFBackgroundImageDownloadReceiptDisabled; + +static const char * af_backgroundImageDownloadReceiptKeyForState(UIControlState state) { + switch (state) { + case UIControlStateHighlighted: + return &AFBackgroundImageDownloadReceiptHighlighted; + case UIControlStateSelected: + return &AFBackgroundImageDownloadReceiptSelected; + case UIControlStateDisabled: + return &AFBackgroundImageDownloadReceiptDisabled; + case UIControlStateNormal: + default: + return &AFBackgroundImageDownloadReceiptNormal; + } +} + +- (AFImageDownloadReceipt *)af_backgroundImageDownloadReceiptForState:(UIControlState)state { + return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state)); +} + +- (void)af_setBackgroundImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt + forState:(UIControlState)state +{ + objc_setAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +@end + +#pragma mark - + +@implementation UIButton (AFNetworking) + ++ (AFImageDownloader *)sharedImageDownloader { + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu" + return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance]; +#pragma clang diagnostic pop +} + ++ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader { + objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - + +- (void)setImageForState:(UIControlState)state + withURL:(NSURL *)url +{ + [self setImageForState:state withURL:url placeholderImage:nil]; +} + +- (void)setImageForState:(UIControlState)state + withURL:(NSURL *)url + placeholderImage:(UIImage *)placeholderImage +{ + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; + + [self setImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; +} + +- (void)setImageForState:(UIControlState)state + withURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(nullable UIImage *)placeholderImage + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure +{ + if ([self isActiveTaskURLEqualToURLRequest:urlRequest forState:state]) { + return; + } + + [self cancelImageDownloadTaskForState:state]; + + AFImageDownloader *downloader = [[self class] sharedImageDownloader]; + id imageCache = downloader.imageCache; + + //Use the image from the image cache if it exists + UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil]; + if (cachedImage) { + if (success) { + success(urlRequest, nil, cachedImage); + } else { + [self setImage:cachedImage forState:state]; + } + [self af_setImageDownloadReceipt:nil forState:state]; + } else { + if (placeholderImage) { + [self setImage:placeholderImage forState:state]; + } + + __weak __typeof(self)weakSelf = self; + NSUUID *downloadID = [NSUUID UUID]; + AFImageDownloadReceipt *receipt; + receipt = [downloader + downloadImageForURLRequest:urlRequest + withReceiptID:downloadID + success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) { + if (success) { + success(request, response, responseObject); + } else if(responseObject) { + [strongSelf setImage:responseObject forState:state]; + } + [strongSelf af_setImageDownloadReceipt:nil forState:state]; + } + + } + failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) { + if (failure) { + failure(request, response, error); + } + [strongSelf af_setImageDownloadReceipt:nil forState:state]; + } + }]; + + [self af_setImageDownloadReceipt:receipt forState:state]; + } +} + +#pragma mark - + +- (void)setBackgroundImageForState:(UIControlState)state + withURL:(NSURL *)url +{ + [self setBackgroundImageForState:state withURL:url placeholderImage:nil]; +} + +- (void)setBackgroundImageForState:(UIControlState)state + withURL:(NSURL *)url + placeholderImage:(nullable UIImage *)placeholderImage +{ + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; + + [self setBackgroundImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; +} + +- (void)setBackgroundImageForState:(UIControlState)state + withURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(nullable UIImage *)placeholderImage + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure +{ + if ([self isActiveBackgroundTaskURLEqualToURLRequest:urlRequest forState:state]) { + return; + } + + [self cancelImageDownloadTaskForState:state]; + + AFImageDownloader *downloader = [[self class] sharedImageDownloader]; + id imageCache = downloader.imageCache; + + //Use the image from the image cache if it exists + UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil]; + if (cachedImage) { + if (success) { + success(urlRequest, nil, cachedImage); + } else { + [self setBackgroundImage:cachedImage forState:state]; + } + [self af_setBackgroundImageDownloadReceipt:nil forState:state]; + } else { + if (placeholderImage) { + [self setBackgroundImage:placeholderImage forState:state]; + } + + __weak __typeof(self)weakSelf = self; + NSUUID *downloadID = [NSUUID UUID]; + AFImageDownloadReceipt *receipt; + receipt = [downloader + downloadImageForURLRequest:urlRequest + withReceiptID:downloadID + success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) { + if (success) { + success(request, response, responseObject); + } else if(responseObject) { + [strongSelf setBackgroundImage:responseObject forState:state]; + } + [strongSelf af_setImageDownloadReceipt:nil forState:state]; + } + + } + failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) { + if (failure) { + failure(request, response, error); + } + [strongSelf af_setBackgroundImageDownloadReceipt:nil forState:state]; + } + }]; + + [self af_setBackgroundImageDownloadReceipt:receipt forState:state]; + } +} + +#pragma mark - + +- (void)cancelImageDownloadTaskForState:(UIControlState)state { + AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state]; + if (receipt != nil) { + [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt]; + [self af_setImageDownloadReceipt:nil forState:state]; + } +} + +- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state { + AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state]; + if (receipt != nil) { + [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt]; + [self af_setBackgroundImageDownloadReceipt:nil forState:state]; + } +} + +- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state { + AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state]; + return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString]; +} + +- (BOOL)isActiveBackgroundTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state { + AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state]; + return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString]; +} + + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h new file mode 100644 index 0000000..14744cd --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h @@ -0,0 +1,35 @@ +// +// UIImage+AFNetworking.h +// +// +// Created by Paulo Ferreira on 08/07/15. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import + +@interface UIImage (AFNetworking) + ++ (UIImage*) safeImageWithData:(NSData*)data; + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h new file mode 100644 index 0000000..ce9ae2e --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h @@ -0,0 +1,109 @@ +// UIImageView+AFNetworking.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class AFImageDownloader; + +/** + This category adds methods to the UIKit framework's `UIImageView` class. The methods in this category provide support for loading remote images asynchronously from a URL. + */ +@interface UIImageView (AFNetworking) + +///------------------------------------ +/// @name Accessing the Image Downloader +///------------------------------------ + +/** + Set the shared image downloader used to download images. + + @param imageDownloader The shared image downloader used to download images. + */ ++ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader; + +/** + The shared image downloader used to download images. + */ ++ (AFImageDownloader *)sharedImageDownloader; + +///-------------------- +/// @name Setting Image +///-------------------- + +/** + Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:` + + @param url The URL used for the image request. + */ +- (void)setImageWithURL:(NSURL *)url; + +/** + Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:` + + @param url The URL used for the image request. + @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes. + */ +- (void)setImageWithURL:(NSURL *)url + placeholderImage:(nullable UIImage *)placeholderImage; + +/** + Asynchronously downloads an image from the specified URL request, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. + + If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. + + If a success block is specified, it is the responsibility of the block to set the image of the image view before returning. If no success block is specified, the default behavior of setting the image with `self.image = image` is applied. + + @param urlRequest The URL request used for the image request. + @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes. + @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`. + @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. + */ +- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(nullable UIImage *)placeholderImage + success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure; + +/** + Cancels any executing image operation for the receiver, if one exists. + */ +- (void)cancelImageDownloadTask; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m new file mode 100644 index 0000000..a97d5cc --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m @@ -0,0 +1,161 @@ +// UIImageView+AFNetworking.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIImageView+AFNetworking.h" + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "AFImageDownloader.h" + +@interface UIImageView (_AFNetworking) +@property (readwrite, nonatomic, strong, setter = af_setActiveImageDownloadReceipt:) AFImageDownloadReceipt *af_activeImageDownloadReceipt; +@end + +@implementation UIImageView (_AFNetworking) + +- (AFImageDownloadReceipt *)af_activeImageDownloadReceipt { + return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, @selector(af_activeImageDownloadReceipt)); +} + +- (void)af_setActiveImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt { + objc_setAssociatedObject(self, @selector(af_activeImageDownloadReceipt), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +@end + +#pragma mark - + +@implementation UIImageView (AFNetworking) + ++ (AFImageDownloader *)sharedImageDownloader { + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu" + return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance]; +#pragma clang diagnostic pop +} + ++ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader { + objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - + +- (void)setImageWithURL:(NSURL *)url { + [self setImageWithURL:url placeholderImage:nil]; +} + +- (void)setImageWithURL:(NSURL *)url + placeholderImage:(UIImage *)placeholderImage +{ + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; + + [self setImageWithURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; +} + +- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest + placeholderImage:(UIImage *)placeholderImage + success:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success + failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure +{ + + if ([urlRequest URL] == nil) { + [self cancelImageDownloadTask]; + self.image = placeholderImage; + return; + } + + if ([self isActiveTaskURLEqualToURLRequest:urlRequest]){ + return; + } + + [self cancelImageDownloadTask]; + + AFImageDownloader *downloader = [[self class] sharedImageDownloader]; + id imageCache = downloader.imageCache; + + //Use the image from the image cache if it exists + UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil]; + if (cachedImage) { + if (success) { + success(urlRequest, nil, cachedImage); + } else { + self.image = cachedImage; + } + [self clearActiveDownloadInformation]; + } else { + if (placeholderImage) { + self.image = placeholderImage; + } + + __weak __typeof(self)weakSelf = self; + NSUUID *downloadID = [NSUUID UUID]; + AFImageDownloadReceipt *receipt; + receipt = [downloader + downloadImageForURLRequest:urlRequest + withReceiptID:downloadID + success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) { + if (success) { + success(request, response, responseObject); + } else if(responseObject) { + strongSelf.image = responseObject; + } + [strongSelf clearActiveDownloadInformation]; + } + + } + failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) { + __strong __typeof(weakSelf)strongSelf = weakSelf; + if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) { + if (failure) { + failure(request, response, error); + } + [strongSelf clearActiveDownloadInformation]; + } + }]; + + self.af_activeImageDownloadReceipt = receipt; + } +} + +- (void)cancelImageDownloadTask { + if (self.af_activeImageDownloadReceipt != nil) { + [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:self.af_activeImageDownloadReceipt]; + [self clearActiveDownloadInformation]; + } +} + +- (void)clearActiveDownloadInformation { + self.af_activeImageDownloadReceipt = nil; +} + +- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest { + return [self.af_activeImageDownloadReceipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString]; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h new file mode 100644 index 0000000..b36ee0c --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h @@ -0,0 +1,42 @@ +// UIKit+AFNetworking.h +// +// Copyright (c) 2013 AFNetworking (http://afnetworking.com/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#if TARGET_OS_IOS || TARGET_OS_TV +#import + +#ifndef _UIKIT_AFNETWORKING_ + #define _UIKIT_AFNETWORKING_ + +#if TARGET_OS_IOS + #import "AFAutoPurgingImageCache.h" + #import "AFImageDownloader.h" + #import "AFNetworkActivityIndicatorManager.h" + #import "UIRefreshControl+AFNetworking.h" + #import "UIWebView+AFNetworking.h" +#endif + + #import "UIActivityIndicatorView+AFNetworking.h" + #import "UIButton+AFNetworking.h" + #import "UIImageView+AFNetworking.h" + #import "UIProgressView+AFNetworking.h" +#endif /* _UIKIT_AFNETWORKING_ */ +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h new file mode 100644 index 0000000..a0c463b --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h @@ -0,0 +1,64 @@ +// UIProgressView+AFNetworking.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + + +/** + This category adds methods to the UIKit framework's `UIProgressView` class. The methods in this category provide support for binding the progress to the upload and download progress of a session task. + */ +@interface UIProgressView (AFNetworking) + +///------------------------------------ +/// @name Setting Session Task Progress +///------------------------------------ + +/** + Binds the progress to the upload progress of the specified session task. + + @param task The session task. + @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. + */ +- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task + animated:(BOOL)animated; + +/** + Binds the progress to the download progress of the specified session task. + + @param task The session task. + @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. + */ +- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task + animated:(BOOL)animated; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m new file mode 100644 index 0000000..6680bac --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m @@ -0,0 +1,118 @@ +// UIProgressView+AFNetworking.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIProgressView+AFNetworking.h" + +#import + +#if TARGET_OS_IOS || TARGET_OS_TV + +#import "AFURLSessionManager.h" + +static void * AFTaskCountOfBytesSentContext = &AFTaskCountOfBytesSentContext; +static void * AFTaskCountOfBytesReceivedContext = &AFTaskCountOfBytesReceivedContext; + +#pragma mark - + +@implementation UIProgressView (AFNetworking) + +- (BOOL)af_uploadProgressAnimated { + return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_uploadProgressAnimated)) boolValue]; +} + +- (void)af_setUploadProgressAnimated:(BOOL)animated { + objc_setAssociatedObject(self, @selector(af_uploadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +- (BOOL)af_downloadProgressAnimated { + return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_downloadProgressAnimated)) boolValue]; +} + +- (void)af_setDownloadProgressAnimated:(BOOL)animated { + objc_setAssociatedObject(self, @selector(af_downloadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - + +- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task + animated:(BOOL)animated +{ + [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext]; + [task addObserver:self forKeyPath:@"countOfBytesSent" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext]; + + [self af_setUploadProgressAnimated:animated]; +} + +- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task + animated:(BOOL)animated +{ + [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext]; + [task addObserver:self forKeyPath:@"countOfBytesReceived" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext]; + + [self af_setDownloadProgressAnimated:animated]; +} + +#pragma mark - NSKeyValueObserving + +- (void)observeValueForKeyPath:(NSString *)keyPath + ofObject:(id)object + change:(__unused NSDictionary *)change + context:(void *)context +{ + if (context == AFTaskCountOfBytesSentContext || context == AFTaskCountOfBytesReceivedContext) { + if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesSent))]) { + if ([object countOfBytesExpectedToSend] > 0) { + dispatch_async(dispatch_get_main_queue(), ^{ + [self setProgress:[object countOfBytesSent] / ([object countOfBytesExpectedToSend] * 1.0f) animated:self.af_uploadProgressAnimated]; + }); + } + } + + if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesReceived))]) { + if ([object countOfBytesExpectedToReceive] > 0) { + dispatch_async(dispatch_get_main_queue(), ^{ + [self setProgress:[object countOfBytesReceived] / ([object countOfBytesExpectedToReceive] * 1.0f) animated:self.af_downloadProgressAnimated]; + }); + } + } + + if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { + if ([(NSURLSessionTask *)object state] == NSURLSessionTaskStateCompleted) { + @try { + [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; + + if (context == AFTaskCountOfBytesSentContext) { + [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))]; + } + + if (context == AFTaskCountOfBytesReceivedContext) { + [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))]; + } + } + @catch (NSException * __unused exception) {} + } + } + } +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h new file mode 100644 index 0000000..f6930a9 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h @@ -0,0 +1,53 @@ +// UIRefreshControl+AFNetworking.m +// +// Copyright (c) 2014 AFNetworking (http://afnetworking.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + This category adds methods to the UIKit framework's `UIRefreshControl` class. The methods in this category provide support for automatically beginning and ending refreshing depending on the loading state of a session task. + */ +@interface UIRefreshControl (AFNetworking) + +///----------------------------------- +/// @name Refreshing for Session Tasks +///----------------------------------- + +/** + Binds the refreshing state to the state of the specified task. + + @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. + */ +- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m new file mode 100644 index 0000000..ddc033b --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m @@ -0,0 +1,122 @@ +// UIRefreshControl+AFNetworking.m +// +// Copyright (c) 2014 AFNetworking (http://afnetworking.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIRefreshControl+AFNetworking.h" +#import + +#if TARGET_OS_IOS + +#import "AFURLSessionManager.h" + +@interface AFRefreshControlNotificationObserver : NSObject +@property (readonly, nonatomic, weak) UIRefreshControl *refreshControl; +- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl; + +- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task; + +@end + +@implementation UIRefreshControl (AFNetworking) + +- (AFRefreshControlNotificationObserver *)af_notificationObserver { + AFRefreshControlNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver)); + if (notificationObserver == nil) { + notificationObserver = [[AFRefreshControlNotificationObserver alloc] initWithActivityRefreshControl:self]; + objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC); + } + return notificationObserver; +} + +- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task { + [[self af_notificationObserver] setRefreshingWithStateOfTask:task]; +} + +@end + +@implementation AFRefreshControlNotificationObserver + +- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl +{ + self = [super init]; + if (self) { + _refreshControl = refreshControl; + } + return self; +} + +- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task { + NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; + + [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; + + if (task) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" +#pragma clang diagnostic ignored "-Warc-repeated-use-of-weak" + if (task.state == NSURLSessionTaskStateRunning) { + [self.refreshControl beginRefreshing]; + + [notificationCenter addObserver:self selector:@selector(af_beginRefreshing) name:AFNetworkingTaskDidResumeNotification object:task]; + [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidCompleteNotification object:task]; + [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidSuspendNotification object:task]; + } else { + [self.refreshControl endRefreshing]; + } +#pragma clang diagnostic pop + } +} + +#pragma mark - + +- (void)af_beginRefreshing { + dispatch_async(dispatch_get_main_queue(), ^{ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" + [self.refreshControl beginRefreshing]; +#pragma clang diagnostic pop + }); +} + +- (void)af_endRefreshing { + dispatch_async(dispatch_get_main_queue(), ^{ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreceiver-is-weak" + [self.refreshControl endRefreshing]; +#pragma clang diagnostic pop + }); +} + +#pragma mark - + +- (void)dealloc { + NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; + + [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; + [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; +} + +@end + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h new file mode 100644 index 0000000..777dce2 --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h @@ -0,0 +1,80 @@ +// UIWebView+AFNetworking.h +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import + +#import + +#if TARGET_OS_IOS + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class AFHTTPSessionManager; + +/** + This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling. + + @discussion When using these category methods, make sure to assign `delegate` for the web view, which implements `–webView:shouldStartLoadWithRequest:navigationType:` appropriately. This allows for tapped links to be loaded through AFNetworking, and can ensure that `canGoBack` & `canGoForward` update their values correctly. + */ +@interface UIWebView (AFNetworking) + +/** + The session manager used to download all requests. + */ +@property (nonatomic, strong) AFHTTPSessionManager *sessionManager; + +/** + Asynchronously loads the specified request. + + @param request A URL request identifying the location of the content to load. This must not be `nil`. + @param progress A progress object monitoring the current download progress. + @param success A block object to be executed when the request finishes loading successfully. This block returns the HTML string to be loaded by the web view, and takes two arguments: the response, and the response string. + @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred. + */ +- (void)loadRequest:(NSURLRequest *)request + progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress + success:(nullable NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success + failure:(nullable void (^)(NSError *error))failure; + +/** + Asynchronously loads the data associated with a particular request with a specified MIME type and text encoding. + + @param request A URL request identifying the location of the content to load. This must not be `nil`. + @param MIMEType The MIME type of the content. Defaults to the content type of the response if not specified. + @param textEncodingName The IANA encoding name, as in `utf-8` or `utf-16`. Defaults to the response text encoding if not specified. +@param progress A progress object monitoring the current download progress. + @param success A block object to be executed when the request finishes loading successfully. This block returns the data to be loaded by the web view and takes two arguments: the response, and the downloaded data. + @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred. + */ +- (void)loadRequest:(NSURLRequest *)request + MIMEType:(nullable NSString *)MIMEType + textEncodingName:(nullable NSString *)textEncodingName + progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress + success:(nullable NSData * (^)(NSHTTPURLResponse *response, NSData *data))success + failure:(nullable void (^)(NSError *error))failure; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m new file mode 100644 index 0000000..ac089da --- /dev/null +++ b/HeadsUpper/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m @@ -0,0 +1,160 @@ +// UIWebView+AFNetworking.m +// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#import "UIWebView+AFNetworking.h" + +#import + +#if TARGET_OS_IOS + +#import "AFHTTPSessionManager.h" +#import "AFURLResponseSerialization.h" +#import "AFURLRequestSerialization.h" + +@interface UIWebView (_AFNetworking) +@property (readwrite, nonatomic, strong, setter = af_setURLSessionTask:) NSURLSessionDataTask *af_URLSessionTask; +@end + +@implementation UIWebView (_AFNetworking) + +- (NSURLSessionDataTask *)af_URLSessionTask { + return (NSURLSessionDataTask *)objc_getAssociatedObject(self, @selector(af_URLSessionTask)); +} + +- (void)af_setURLSessionTask:(NSURLSessionDataTask *)af_URLSessionTask { + objc_setAssociatedObject(self, @selector(af_URLSessionTask), af_URLSessionTask, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +@end + +#pragma mark - + +@implementation UIWebView (AFNetworking) + +- (AFHTTPSessionManager *)sessionManager { + static AFHTTPSessionManager *_af_defaultHTTPSessionManager = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _af_defaultHTTPSessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; + _af_defaultHTTPSessionManager.requestSerializer = [AFHTTPRequestSerializer serializer]; + _af_defaultHTTPSessionManager.responseSerializer = [AFHTTPResponseSerializer serializer]; + }); + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu" + return objc_getAssociatedObject(self, @selector(sessionManager)) ?: _af_defaultHTTPSessionManager; +#pragma clang diagnostic pop +} + +- (void)setSessionManager:(AFHTTPSessionManager *)sessionManager { + objc_setAssociatedObject(self, @selector(sessionManager), sessionManager, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +- (AFHTTPResponseSerializer *)responseSerializer { + static AFHTTPResponseSerializer *_af_defaultResponseSerializer = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _af_defaultResponseSerializer = [AFHTTPResponseSerializer serializer]; + }); + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu" + return objc_getAssociatedObject(self, @selector(responseSerializer)) ?: _af_defaultResponseSerializer; +#pragma clang diagnostic pop +} + +- (void)setResponseSerializer:(AFHTTPResponseSerializer *)responseSerializer { + objc_setAssociatedObject(self, @selector(responseSerializer), responseSerializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - + +- (void)loadRequest:(NSURLRequest *)request + progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress + success:(NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success + failure:(void (^)(NSError *error))failure +{ + [self loadRequest:request MIMEType:nil textEncodingName:nil progress:progress success:^NSData *(NSHTTPURLResponse *response, NSData *data) { + NSStringEncoding stringEncoding = NSUTF8StringEncoding; + if (response.textEncodingName) { + CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName); + if (encoding != kCFStringEncodingInvalidId) { + stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding); + } + } + + NSString *string = [[NSString alloc] initWithData:data encoding:stringEncoding]; + if (success) { + string = success(response, string); + } + + return [string dataUsingEncoding:stringEncoding]; + } failure:failure]; +} + +- (void)loadRequest:(NSURLRequest *)request + MIMEType:(NSString *)MIMEType + textEncodingName:(NSString *)textEncodingName + progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress + success:(NSData * (^)(NSHTTPURLResponse *response, NSData *data))success + failure:(void (^)(NSError *error))failure +{ + NSParameterAssert(request); + + if (self.af_URLSessionTask.state == NSURLSessionTaskStateRunning || self.af_URLSessionTask.state == NSURLSessionTaskStateSuspended) { + [self.af_URLSessionTask cancel]; + } + self.af_URLSessionTask = nil; + + __weak __typeof(self)weakSelf = self; + NSURLSessionDataTask *dataTask; + dataTask = [self.sessionManager + GET:request.URL.absoluteString + parameters:nil + progress:nil + success:^(NSURLSessionDataTask * _Nonnull task, id _Nonnull responseObject) { + __strong __typeof(weakSelf) strongSelf = weakSelf; + if (success) { + success((NSHTTPURLResponse *)task.response, responseObject); + } + [strongSelf loadData:responseObject MIMEType:MIMEType textEncodingName:textEncodingName baseURL:[task.currentRequest URL]]; + + if ([strongSelf.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) { + [strongSelf.delegate webViewDidFinishLoad:strongSelf]; + } + } + failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) { + if (failure) { + failure(error); + } + }]; + self.af_URLSessionTask = dataTask; + *progress = [self.sessionManager downloadProgressForTask:dataTask]; + [self.af_URLSessionTask resume]; + + if ([self.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) { + [self.delegate webViewDidStartLoad:self]; + } +} + +@end + +#endif \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFAutoPurgingImageCache.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFAutoPurgingImageCache.h new file mode 120000 index 0000000..f9dc7db --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFAutoPurgingImageCache.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h new file mode 120000 index 0000000..56feb9f --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFHTTPSessionManager.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFImageDownloader.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFImageDownloader.h new file mode 120000 index 0000000..ce47c92 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFImageDownloader.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/AFImageDownloader.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h new file mode 120000 index 0000000..67519d9 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h new file mode 120000 index 0000000..68fc774 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFNetworkReachabilityManager.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworking.h new file mode 120000 index 0000000..a5a38da --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h new file mode 120000 index 0000000..fd1322d --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFSecurityPolicy.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h new file mode 120000 index 0000000..ca8209b --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFURLRequestSerialization.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h new file mode 120000 index 0000000..e36a765 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFURLResponseSerialization.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h new file mode 120000 index 0000000..835101d --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h @@ -0,0 +1 @@ +../../../AFNetworking/AFNetworking/AFURLSessionManager.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h new file mode 120000 index 0000000..c534ebf --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h new file mode 120000 index 0000000..8f2e221 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImage+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImage+AFNetworking.h new file mode 120000 index 0000000..74f6649 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImage+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h new file mode 120000 index 0000000..a95d673 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h new file mode 120000 index 0000000..95017cc --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h new file mode 120000 index 0000000..730b167 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h new file mode 120000 index 0000000..8efd826 --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h new file mode 120000 index 0000000..c8df6ef --- /dev/null +++ b/HeadsUpper/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h @@ -0,0 +1 @@ +../../../AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h \ No newline at end of file diff --git a/HeadsUpper/Pods/Manifest.lock b/HeadsUpper/Pods/Manifest.lock index cf61c0b..1d642d7 100644 --- a/HeadsUpper/Pods/Manifest.lock +++ b/HeadsUpper/Pods/Manifest.lock @@ -1,4 +1,19 @@ PODS: + - AFNetworking (3.0.4): + - AFNetworking/NSURLSession (= 3.0.4) + - AFNetworking/Reachability (= 3.0.4) + - AFNetworking/Security (= 3.0.4) + - AFNetworking/Serialization (= 3.0.4) + - AFNetworking/UIKit (= 3.0.4) + - AFNetworking/NSURLSession (3.0.4): + - AFNetworking/Reachability + - AFNetworking/Security + - AFNetworking/Serialization + - AFNetworking/Reachability (3.0.4) + - AFNetworking/Security (3.0.4) + - AFNetworking/Serialization (3.0.4) + - AFNetworking/UIKit (3.0.4): + - AFNetworking/NSURLSession - ChameleonFramework (2.1.0): - ChameleonFramework/Default (= 2.1.0) - ChameleonFramework/Default (2.1.0) @@ -8,11 +23,13 @@ PODS: - SIAlertView (1.3) DEPENDENCIES: + - AFNetworking (~> 3.0) - ChameleonFramework (~> 2.1) - SDWebImage (~> 3.7) - SIAlertView (~> 1.3) SPEC CHECKSUMS: + AFNetworking: a0075feb321559dc78d9d85b55d11caa19eabb93 ChameleonFramework: d21a3cc247abfe5e37609a283a8238b03575cf64 SDWebImage: 69c6303e3348fba97e03f65d65d4fbc26740f461 SIAlertView: 20c794b55eaf44d888773ea51647cf8907723919 diff --git a/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj b/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj index 7c0e35a..79606b2 100644 --- a/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj +++ b/HeadsUpper/Pods/Pods.xcodeproj/project.pbxproj @@ -7,346 +7,493 @@ objects = { /* Begin PBXBuildFile section */ - 00CF864282ECDA8F30090ED336028082 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */; }; - 00E3A68D030F24BE47B99D1D1A1720E2 /* UIColor+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = BAD43AB689B4F2A3D0DBB9D143BB5B7A /* UIColor+ChameleonPrivate.m */; }; - 02C1675874157E02BA65CD6E5395FBED /* SIAlertView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 4A241A44A2A762A519BF9A0E80540E3B /* SIAlertView.bundle */; }; - 05E2FF2E083CC870EBFF437DC41A838A /* UIView+WebCacheOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E5FAB8B8E3988DBA96FB1320C41D43D /* UIView+WebCacheOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 072BEEF7E71F00675E87028A9A668B84 /* UIImage+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB7932EAA38777C3906E3B72C4362B6 /* UIImage+ChameleonPrivate.m */; }; - 0B4D8B848DF0CE45617056CD9B7D91A3 /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */; }; - 15C0CB40F4D15C81E735F4DBAC4E1A61 /* UIImage+MultiFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E05420F43E2C534BC664F46764FF978 /* UIImage+MultiFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 160634C0F5454A32E810DDF5BA9E5985 /* NSArray+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = C067BD59DA173E53658568A11190B2D1 /* NSArray+Chameleon.m */; }; - 163DB6CC013CEBBD45937C92B13814C7 /* SDWebImagePrefetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 1B10EEA72D3D415F007B508C41C303C6 /* SDWebImagePrefetcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1716FA0939818C49FE4BBE6A658E9834 /* UIButton+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C6C303A9A42A4A94E4148BE2BC34128 /* UIButton+Chameleon.m */; }; - 188A57B8E96DE5B6B33CFF9C204280BE /* SDWebImageCompat.m in Sources */ = {isa = PBXBuildFile; fileRef = E81879C879F8B7A7A0EC74D6D418300D /* SDWebImageCompat.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 195F17A03B0A9BC3BF9E8FAD12968C4A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */; }; - 1DE26E57570167EE496080D68F855A01 /* UIImage+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = A76ECD2AFC40633C73EC2AAD6C9171AB /* UIImage+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 909806AA2C930889B394D2D7097600B6 /* QuartzCore.framework */; }; - 23795D7EC1AF274A6AFF4233B1E84C4C /* UINavigationController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 6F98DF1B98D00EB385CE11FA9296CCAC /* UINavigationController+Chameleon.m */; }; - 2445B317E0DC60B3F5D77378BB506397 /* SDImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = BD10FD63B1F2E3EFD1CB91DB4ADC7B8F /* SDImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2E2946436612A5B920BE18E09BF80CAF /* UIViewController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = BB16B50F79890948FBA2D720CD014F83 /* UIViewController+Chameleon.m */; }; - 3132A9EBC1F85B6971B934C88914CD58 /* UILabel+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 0456970BABB1A1EDC722A8AB50ECC984 /* UILabel+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 37CC739F61F0CFC3A1683437D43434D7 /* SDWebImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C4EB543532C4B3D99C7318F6656A511 /* SDWebImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3CA230A7D1C5DC9E995093A0CEF9B4AA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 909806AA2C930889B394D2D7097600B6 /* QuartzCore.framework */; }; - 3CCCC6F0C10F65283522C54CF1D6E761 /* UIButton+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = B377F543EA9E012D3A444C40E1074E91 /* UIButton+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3D1FF907F6AD5186FAF926C0F20083AE /* Chameleon_.m in Sources */ = {isa = PBXBuildFile; fileRef = 5491386D355164B4A7D77C4192A101B2 /* Chameleon_.m */; }; - 41E19345B5C2331DAA02119D782F4E5F /* ChameleonMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = E53E3E29FA4700206FA5FCE7A2D5AA44 /* ChameleonMacros.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */; }; - 47AA23417A685F05101D15EC460CB47D /* SDWebImageCompat.h in Headers */ = {isa = PBXBuildFile; fileRef = DD5F57CC97DDA8D1E51B8EDDD831DEEB /* SDWebImageCompat.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 496EAAD1C143A65A472E3608A304B9ED /* SDImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 05B6626CFEA016FD3686FD61AACB99E2 /* SDImageCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 4B181B0AC8894DE05050B3F6718D392C /* ChameleonConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = D055FD8546FD0A7A7F2A866580DF6D70 /* ChameleonConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4C7693E445B4CB82373B51070BF02A25 /* UIImage+GIF.m in Sources */ = {isa = PBXBuildFile; fileRef = 2CCF7F19CBF343BEAB190F6A3D8590B0 /* UIImage+GIF.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 4E53C48294089DC928E3A7BD1C2DE4D7 /* UIColor+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 303DC378B147C2CEC758E6A49E7BAB60 /* UIColor+Chameleon.m */; }; - 4EB05894369FE44A1888EE54C5759C6D /* SDWebImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6982EAB876A02A41D6D03F18B685B0F2 /* SDWebImage-dummy.m */; }; - 533A479FC58F45247F1ECFCAA79D7B74 /* SIAlertView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BB881DE45F24AC18F6BD8395BA7F8F5 /* SIAlertView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 57746C807D65489603A9A03D31D83A16 /* SIAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = FA01E5115F18442BDD74FDDC1234044F /* SIAlertView.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 5BF38591007E7E4ADAD878E405949598 /* ChameleonConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 13F33452E7DC73D25C439B3EE161031D /* ChameleonConstants.m */; }; - 5FDB921B4BC34F0DC8D49F0EE09AA480 /* SIAlertView.h in Headers */ = {isa = PBXBuildFile; fileRef = D7A4494FDCCE7F35E230B327EDEFE974 /* SIAlertView.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6A18459365A7A4D7194E44485E438FB1 /* SDWebImageDownloaderOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = D57F9E761FCADDA381E71051C9B745C8 /* SDWebImageDownloaderOperation.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 6A5341B140DDD23A98FE35D1F0D7F1E1 /* NSData+ImageContentType.h in Headers */ = {isa = PBXBuildFile; fileRef = 3C2A8059BB067700E7CF9AB733273230 /* NSData+ImageContentType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6AE6E45376A8AA254180D4BC783364F2 /* UIImage+GIF.h in Headers */ = {isa = PBXBuildFile; fileRef = A93C96500F819366DC994F801AEE156D /* UIImage+GIF.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6B0D062D37EE811CA1DE3A8B4957DAD1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */; }; - 78938D3A6C0594E00EAF7B7C08096F3E /* UIImageView+HighlightedWebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = BA868DBAB3092447E3A8D571B56EB0FC /* UIImageView+HighlightedWebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7A8C05065D9F9BA2C218F75AD6B1F798 /* UIAppearance+Swift.m in Sources */ = {isa = PBXBuildFile; fileRef = 323CD44DF03F1F5045E03EC34F5ADA19 /* UIAppearance+Swift.m */; }; - 7D170DF0FF9019D90823DD77B84B7EF0 /* SIAlertView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F6AF9BE66813C632656F360AA424150 /* SIAlertView-dummy.m */; }; - 7EDDB8F47291F592694D7135A10DAFFF /* UIViewController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F92368F678D13E3714EFA343FB2A783 /* UIViewController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8065167822F2EDEEF0E2FE0B96E2E070 /* UIImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 07EE69ECDEA7693EF03DE91C167A68EE /* UIImageView+WebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 89A9A4C02E18C33AAA979B6AF4AF17BC /* NSData+ImageContentType.m in Sources */ = {isa = PBXBuildFile; fileRef = 99368DF2D677613AD7167C03C9A37A1F /* NSData+ImageContentType.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 8DF9CF0E92A3F3F2C528297BFE5C07FE /* SDWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 73A10ACDA6882A9C61137D287679E10E /* SDWebImageManager.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 9EEBF7B1602C1C17236C4EA0DD9717E2 /* UILabel+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DE61DA631F337D8F2B46D2071A8F1A7 /* UILabel+Chameleon.m */; }; - A5F9AC13FA6BF01E6F3B499700F155F4 /* SDWebImagePrefetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 4961AF5D2E8F5D6F461F2A295A9DDEDD /* SDWebImagePrefetcher.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - AF60D02AC1A46C24879EF9695AB56E73 /* SDWebImageOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F2F69722304A7D87A94A1AD628A8BC7 /* SDWebImageOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B17E7DBB9CAA675D3D5284FB518969CF /* UIButton+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 39B3902B2B8899153E334515F7E3A670 /* UIButton+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B3429381360BE9C37D00301284E4B63A /* UIView+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = D0D38C3553BA1AA28F201ED777AB34A8 /* UIView+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B8CEB43EA5BD878837FF5EACC5EEF129 /* SDWebImage-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 91610C6C6E0405467D4B4D22DCB1774B /* SDWebImage-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BB81DFA16158411B513CDFA52A5E64D9 /* UIView+WebCacheOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B9FA0477764F043CF5D8C90B0807754 /* UIView+WebCacheOperation.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - BD13937D6C14769537A8C2500DD04FBE /* SDWebImageDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B114A3846AD55D8643F2E94E1BEEE1F /* SDWebImageDecoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BE598F51B12A56E284BB006CE53FA59C /* UIButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = D48F91F4DA72C043D337A71BC3D798BE /* UIButton+WebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - BE77048A297D0556E37EA7E204BA5014 /* SDWebImageDownloaderOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2180619517DEB62C3A471DB211D8581E /* SDWebImageDownloaderOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C59BDDFAE4346C5C1ACE4C3356169582 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 62E04B0A969E8434BEFC2CEBECA0E25B /* ImageIO.framework */; }; - C5D22B9D6600C31DC02CEC59BDA086B0 /* UIColor+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = FAEC9EFD902EF361F4F57B9D54EC4088 /* UIColor+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C61ED2CF225C6D9872D34F5455C945D4 /* NSArray+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = E7EF91A108BE27CCDBAEF91859A5FC65 /* NSArray+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A77E87BE879DB03C9F4B2A9216335D9 /* UIKit.framework */; }; - C84DFC79CACF46C6275670861ADBA6D4 /* UINavigationController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = D58CC7A9560BB1E5D129554FD0EF75E3 /* UINavigationController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CC51E5C010ABC87B9CAAA1CB721A6A94 /* UIColor+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = BF81A64ACF93AA31F448375E3EFB3C24 /* UIColor+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D275DA2188BB5140497E48CD91898F50 /* SDWebImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C6742BFF027BED2775A8DAE34160C11 /* SDWebImageDownloader.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - D4ED219E7003518D7BD507679F744B70 /* SDWebImageDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = C9AB49A41BBB4BA3BEC7DCB7B2EFCBC3 /* SDWebImageDecoder.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - DA28C2BF038E9128C7BD68A4C70544B5 /* UIImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BADA9BC1A98AEC4A52530476FBBA596 /* UIImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DBFEDCE004FCD8CB19250B521B35D531 /* SDWebImageManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 4148F9CF08249453966BAE8386A12D8E /* SDWebImageManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DDD470435EE37EBA46CD0FF081559295 /* ChameleonFramework-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 01382D0C06FC94ABD2764C0168858875 /* ChameleonFramework-dummy.m */; }; - DFFBF54E1E95B95E735FC750027A188F /* UIImage+MultiFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 52D2AF0410FBB0492ED1ED06A9B4B752 /* UIImage+MultiFormat.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - E04963F0C6D76377186361A0AF79A4C6 /* Chameleon_.h in Headers */ = {isa = PBXBuildFile; fileRef = 801CA98FD26D5B8668B9D8A9AA2F8675 /* Chameleon_.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E53E2CD0E939A133E73880E7B3BB4DBF /* ChameleonEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = 2BFAA85DE14D98A2D89E73EF8F7E28D9 /* ChameleonEnums.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E76CD2E17767B7762E43508844DF60B8 /* UIImageView+HighlightedWebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 16A668F868EB2FE7FC611AA59BC1144A /* UIImageView+HighlightedWebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 727D930779DA5D7AF5E2A2E0E434F345 /* CoreGraphics.framework */; }; - F32D7BD1DA58639964C91FA86A002AB4 /* UIView+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C03E9B90B8517EB74BC3D82B8FE79E1 /* UIView+ChameleonPrivate.m */; }; - F5CC9B27F3CF472FE72A905E8C2D7A9D /* Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DAA3520457BC2876CD6EE44F44ED48F /* Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F7AF361257539E785C16CDF250B3F24E /* Pods-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F85099F6E9B7DB837BAB856EB61A6F07 /* UIAppearance+Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = DC210CBCF7423A03CCD47F4835F0D226 /* UIAppearance+Swift.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FA90B7D6EBE7A289796856FF2B310FC0 /* ChameleonFramework-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CEC7AB1811B9AEE20BED4DE6FFA6B39E /* ChameleonFramework-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 00E3A68D030F24BE47B99D1D1A1720E2 /* UIColor+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = BE4DF15D2CD93F28E93E0255333E8AF2 /* UIColor+ChameleonPrivate.m */; }; + 072BEEF7E71F00675E87028A9A668B84 /* UIImage+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 32D2B7187E8CD92B370BDED591331791 /* UIImage+ChameleonPrivate.m */; }; + 0B7BBE1823A00619148E2C6CF9BDEA2C /* SIAlertView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D6DFDBCA26FE67CFAAF748ACE2B398CC /* SIAlertView-dummy.m */; }; + 0BCEB4526A2E5952C5A58A347D6C3D06 /* SDWebImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 79C6BE498D9F6870CF1E2565FFACFB10 /* SDWebImageDownloader.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 10F4AA3E8A1DE840EB69CDA0CD0BE848 /* NSData+ImageContentType.h in Headers */ = {isa = PBXBuildFile; fileRef = 14B310D1EE4EEAB229349E0FB55039EA /* NSData+ImageContentType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 131F64370D44DB8EAF6D1046ED2CFB3A /* SDWebImageDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = E07B6ECF12F149E697A66A3C985463AF /* SDWebImageDecoder.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 13AE3036636034BB4E50A218D3EE27CD /* UIImage+MultiFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 3B8B39F9BFE1B49BAD4FFE8014C78C0F /* UIImage+MultiFormat.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 1480F4923DBBF217F60572EEECB4027C /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3678A579063EE57B009031ECAB496DAB /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1584A0B442DA93BF1AF49A8D82432AF4 /* SIAlertView.h in Headers */ = {isa = PBXBuildFile; fileRef = 71C2519592D6ABFB2BE4CECD790B9C60 /* SIAlertView.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 160634C0F5454A32E810DDF5BA9E5985 /* NSArray+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 40FEEC272573BE197E4BBB1FC139FDC2 /* NSArray+Chameleon.m */; }; + 1716FA0939818C49FE4BBE6A658E9834 /* UIButton+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BF8991AAEDDC5F26734BCAC875F4A7B /* UIButton+Chameleon.m */; }; + 174202BD6AE0E4A41F5CE66E975EAE52 /* UIRefreshControl+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD17CF93C3CD37548ACAB340BD0B279 /* UIRefreshControl+AFNetworking.m */; }; + 1A19A456017D2EB235DA00961A8A664F /* SDWebImage-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0222DD3060B4FDB5F67C0B9E73EF62E4 /* SDWebImage-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1DE26E57570167EE496080D68F855A01 /* UIImage+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 6DF518081FD49CFD1C5E46CC45689EAA /* UIImage+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1E5B8F12ED7CC40ECDB9B1F755F387E5 /* UIActivityIndicatorView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 13F0254858ED1938ED0DDDC534E0AFC7 /* UIActivityIndicatorView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 20607BE2B1E5F31765026E5AC64DB27D /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C9432229A2D2E8D7B1339B6FCE39B08 /* AFSecurityPolicy.m */; }; + 20EE8030FCF2402DAC7F1C9B9DDAEF79 /* AFURLRequestSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 4C1D56168357FBA6F995515CF005A94F /* AFURLRequestSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1441BB11E4761F1BC04D6C0E00872AEC /* QuartzCore.framework */; }; + 21D927B42CB12293E5E57756F9F5D943 /* SDWebImageCompat.h in Headers */ = {isa = PBXBuildFile; fileRef = DBEB0DA0ECC4FCD504E89FE705872E88 /* SDWebImageCompat.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 233031A4C2D25B3DD6515CC3C3FEA4F8 /* SDWebImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BE151AA560C3E90597FE53A05954A7 /* SDWebImage-dummy.m */; }; + 23795D7EC1AF274A6AFF4233B1E84C4C /* UINavigationController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E308322DA038B33575B3583CA0798A8 /* UINavigationController+Chameleon.m */; }; + 2E2946436612A5B920BE18E09BF80CAF /* UIViewController+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 292B12936E492B93444D42044987B350 /* UIViewController+Chameleon.m */; }; + 2E8A32ED46194EDBE22146271F6D26DE /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 05149083EA6274F979042D7B5A1BE849 /* UIImageView+AFNetworking.m */; }; + 3132A9EBC1F85B6971B934C88914CD58 /* UILabel+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AE55F1DC9E05C9F1B8AEC331057C952 /* UILabel+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 33413A8B4EF4F2D0D463271F93B090B4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */; }; + 3751DD3EE60E97490755E539B619A01C /* SDWebImageDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 261824B849239DE2DFF2B95C452EC74C /* SDWebImageDecoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3997DB2DDBBA43002E76791E759AD67F /* SIAlertView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = F904731712EE1E15DE07E4A384C387D0 /* SIAlertView.bundle */; }; + 3A10EF6ABF51D1D00B06AC5EF3A8C28C /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AEE6A3B7D517C1E9D060E13F636167F0 /* SystemConfiguration.framework */; }; + 3CC775A00BF15E8E6B6E495741E64A85 /* UIView+WebCacheOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 8986E57FEDECCECA19D6F456A7F810DF /* UIView+WebCacheOperation.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 3CCCC6F0C10F65283522C54CF1D6E761 /* UIButton+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 4C9ED7629FB1AB491D321D2665095792 /* UIButton+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3D1FF907F6AD5186FAF926C0F20083AE /* Chameleon_.m in Sources */ = {isa = PBXBuildFile; fileRef = 222696BBCD1EADA99117A5586F2182C4 /* Chameleon_.m */; }; + 3D2789FC760A97301909F0B1201626CD /* AFNetworking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EF8296E82FB9AA440D7FDFDE07B59DB /* AFNetworking-dummy.m */; }; + 3F1BC9BAFFEEABB1ABC7614DF0FC97D5 /* AFAutoPurgingImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = AB0FE5062FDEF326A4028F2F7D543045 /* AFAutoPurgingImageCache.m */; }; + 3F380B6D0B4DD2E6D87AA320AFC86D09 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */; }; + 41E19345B5C2331DAA02119D782F4E5F /* ChameleonMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F6A620F784540CCAC8826D3F35BC267 /* ChameleonMacros.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */; }; + 4605EEF216A3BAC0CC1F6F5F133A80CE /* SDWebImageManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7254B6EBAAA3E58D8E0BD374F0AB6A26 /* SDWebImageManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 481D2695D475A2BC649D64D2D1C6A03E /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40182B7FF44217D3F633FF36BE3E4831 /* ImageIO.framework */; }; + 4B181B0AC8894DE05050B3F6718D392C /* ChameleonConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C924B0030AA0F805839E520FEBDA66C /* ChameleonConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4E53C48294089DC928E3A7BD1C2DE4D7 /* UIColor+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = 47331CFA95DE5A83D806E6213F4C871B /* UIColor+Chameleon.m */; }; + 4FEB67CF6D76321459C7DF80EE6F92CD /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */; }; + 560698A4D707DCBCC1C8F98BC9B89B23 /* AFURLSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 671E7BEAD7E869CB593B71038B4DE327 /* AFURLSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5808B477EFF509D810B5CDCFDC944F80 /* AFImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 92A6631228DA9142C15A208B112CBE85 /* AFImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 59DCF5EA20D577A83170787EB14A7C5B /* SDWebImagePrefetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = D75CEC495D289B978D7FC3454DFA2A64 /* SDWebImagePrefetcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5A6D94B2D866B061E659E29D8B332063 /* UIImage+GIF.h in Headers */ = {isa = PBXBuildFile; fileRef = 8559AD718FB3DDF73F7E35A6030BEE57 /* UIImage+GIF.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5BF38591007E7E4ADAD878E405949598 /* ChameleonConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = FE7083BC499DDD66A7582D2C7478E2A7 /* ChameleonConstants.m */; }; + 5C65C36731C43213CDF68B10802AA2DB /* SDWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 061891051576CD0D66997B91A922A3C1 /* SDWebImageManager.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 5E1AB9270BCE9081098EDB82F9A8B511 /* SDWebImageDownloaderOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC26E4849C4688AB2833C0203BD5EFD /* SDWebImageDownloaderOperation.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 5FF6453E55785669885F626B853FD2AA /* UIProgressView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = C2F1201EEE0CA2057A3219FF00CC9BFA /* UIProgressView+AFNetworking.m */; }; + 60E3009342BEE96D32C546BE2DB60052 /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 29391A1EC984788CE098CAED891CB388 /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63460DFE31F42291286A2B2BB53A8553 /* UIImage+GIF.m in Sources */ = {isa = PBXBuildFile; fileRef = 19DDE813B74AB915ED3F8EE1B38E8188 /* UIImage+GIF.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 6497DED0C01B70FA6A79A4FC392EE473 /* SDWebImagePrefetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = F45CBFA61BA8D483714567618CC670FE /* SDWebImagePrefetcher.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 659960F7E28E993E08CCC1E8A383E710 /* UIKit+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 77F5211664F5579DF283409D0A987B58 /* UIKit+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 68152D921ABF6A423C192C04FDF94F0F /* AFNetworkReachabilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 8C933923BF252C9E19340FF630BA1D5F /* AFNetworkReachabilityManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 68A38977EBAE334DC3C22386D00D2622 /* AFNetworkReachabilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AB99830EE90188AF93FA50631EA5E1CD /* AFNetworkReachabilityManager.m */; }; + 6ED4ABEE8A5F51F5ECB59FA1781D29C6 /* UIActivityIndicatorView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = F5502E8D9885E107FB9D917CBD17C9CA /* UIActivityIndicatorView+AFNetworking.m */; }; + 707B1A7541C8DBDDE8C27896A61370BE /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F4E4B5EA42C02400CF305F1468B26C /* AFURLSessionManager.m */; }; + 7332F15718920917F544F35CE2C038AA /* AFURLResponseSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 1684D4556D43287C736258444195B29C /* AFURLResponseSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7A8C05065D9F9BA2C218F75AD6B1F798 /* UIAppearance+Swift.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E2E35694543CC52199588655D064843 /* UIAppearance+Swift.m */; }; + 7AF712E95A1110B47775A10777DA6CFE /* Pods-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E6A4EFA32969CDB9F9C57903152BA54 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EEC0CA412D7FB80A0AB6CD28BD7C44E /* CoreGraphics.framework */; }; + 7EDDB8F47291F592694D7135A10DAFFF /* UIViewController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 301EE93398BD24FF57949ADFAC7555E5 /* UIViewController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7F17EA5E2787B6F2BBB359854B42A0E3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */; }; + 81B617F8D26BB10C5726D75E85D21EB7 /* UIButton+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B22AD40C656C5C8EF7BC256A3AAC50 /* UIButton+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8AAC2FBF0DE93A078EBDEFF92CF0D4F7 /* UIImage+MultiFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = A3CA95455AD72EA80ABD1A120C4650E1 /* UIImage+MultiFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8D261B47DAB28AB33C79C140A39EA3F8 /* SIAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 78A4335ADD114F848EAC73C718093613 /* SIAlertView.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 932E320A9BBD2B15F8823A2AF7382C2F /* SDWebImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = A2BD16ECE03FDEF2DC51C919647943D5 /* SDWebImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 99C65AA7B2590E1151C5342409E4FD7B /* UIButton+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = A59E5B619A049EBE85BA63D35F3EB6B0 /* UIButton+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9DFA471A792EF016C2F1A672CF10CEBE /* UIImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = DB8A82F916E40BB68E0A31C09766D5BE /* UIImageView+WebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 9E1E90DED74B73ECE53C9AD76DE53E2D /* UIImage+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = F9B6FE84AFEF2AD2006E42F29AA5F117 /* UIImage+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9EEBF7B1602C1C17236C4EA0DD9717E2 /* UILabel+Chameleon.m in Sources */ = {isa = PBXBuildFile; fileRef = D9D179FF755EFD14DAE003FDB957D3ED /* UILabel+Chameleon.m */; }; + 9F10DE788137C16984164B6EA67B27EF /* SDWebImageCompat.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA00548D047B39D7865C7FB8F4CA45 /* SDWebImageCompat.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + A462945883F7729B185B64B679A6BFBE /* UIWebView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D0FEAA2EA123F086A95DE4443024BD5E /* UIWebView+AFNetworking.m */; }; + A6C6019D45BE62C61210A9CC619368EF /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A8808E8D69DB0F13C7D17978C1115D5 /* AFNetworkActivityIndicatorManager.m */; }; + A9EF5BAE4367A92E58C3BAE6B97E849B /* UIImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E69F80FBF41C5991FCEAFDD3F7D2998 /* UIImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AB39AC9746E7575D7449700475E41B0B /* AFHTTPSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 07AD017890591F8499F271B6A80DDA76 /* AFHTTPSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AE2A07407FB50BA249984DC0620E84C0 /* UIWebView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 94071DEE80170761AD89A23DAD197E95 /* UIWebView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AF03C11A1FAC8132AD3749D8F541701A /* UIButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 00928814FCF3BC55D5493A10707B40CB /* UIButton+AFNetworking.m */; }; + B3429381360BE9C37D00301284E4B63A /* UIView+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E142146DAE6D0F0F7D44656D80C9D6B /* UIView+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B5852322ADE88AAD56EE042B80BA81E4 /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 24C1F326D69F202E5391182C8199EA1C /* AFURLResponseSerialization.m */; }; + B8721458CA3A54F8241D117A718A08AE /* UIImageView+HighlightedWebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = EA4A2816CC27CC81B26803660B5DF9C4 /* UIImageView+HighlightedWebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + BF2143417C483F5D9D794113D5051BF0 /* UIView+WebCacheOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = C8AF67C0E1630C70E3C2C13563B6C01F /* UIView+WebCacheOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C01AC3BAD9037A8A1E45FD17336C15F3 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F7B9818167212F7413F0950564EDA45 /* Security.framework */; }; + C0F98157BC58FC156904C9198FDFC712 /* SDImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 96F35AD2449B9CB67A2ECC7726EE2A32 /* SDImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C2DD28375E1F0B1D0D1D2E4E607C499F /* AFSecurityPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 0548FC51C30DA6BA6A5CD9BAA8ECC879 /* AFSecurityPolicy.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C4D89B2B2A66551C30E50AA6277B490B /* SIAlertView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C002D5796E8DC72B699FBFD7CB0C2E83 /* SIAlertView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C5A569BD6FD764853397C8C6DCF32AD3 /* UIImageView+HighlightedWebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 36480C55417C1CE218EDC8C29D6DE27B /* UIImageView+HighlightedWebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C5D22B9D6600C31DC02CEC59BDA086B0 /* UIColor+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 3E892333521B02CED2C188199C4FC260 /* UIColor+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C61ED2CF225C6D9872D34F5455C945D4 /* NSArray+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = B3B3288E024D0F755C575B7D8450B667 /* NSArray+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C6354FEC7728A4C86DAD8092509BA7D4 /* UIRefreshControl+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 0256C091480F0D741C7251028BD1FCF1 /* UIRefreshControl+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8A566ABA6EE8D60B1990A0F955E25E76 /* UIKit.framework */; }; + C84DFC79CACF46C6275670861ADBA6D4 /* UINavigationController+Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = FA1A10E040B375EF112B41C4A0F58516 /* UINavigationController+Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C9CD229C670F4FD567692E66C8477577 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1441BB11E4761F1BC04D6C0E00872AEC /* QuartzCore.framework */; }; + CAC483EF637FB4A2C2E2FC75BA631B87 /* AFAutoPurgingImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = A0E0F24194609FBC5961FE88B29BADF0 /* AFAutoPurgingImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CC51E5C010ABC87B9CAAA1CB721A6A94 /* UIColor+ChameleonPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = A00447FDCEB071E39255C79188E58FE7 /* UIColor+ChameleonPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CDF0F982DFF346BC5CBB44DDD15AE9DA /* SDWebImageOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 86BD1FB960BE84CCA878F92E5A3CF958 /* SDWebImageOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CEB79FC05B4B5DC7AB1C60B17E206426 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */; }; + CFA8D6B529A0EBFF0316F2629AB2556E /* AFImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A42091A5CF7ACF7633FE12F30B5A96E /* AFImageDownloader.m */; }; + D04B84B53456B9CD8A7236126075571B /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6944ED9DFD7B5B9887BDA5FDA5193EF3 /* MobileCoreServices.framework */; }; + D9F4E833E37B611B432F6B5D7072DDA2 /* UIProgressView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = A1D4AD56677F149286A0500097D6A092 /* UIProgressView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + DDD470435EE37EBA46CD0FF081559295 /* ChameleonFramework-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DE85BCCC2A5129323CEEEC0AEC32027D /* ChameleonFramework-dummy.m */; }; + DFFA215EEAA8DDBD540076927535275C /* AFURLRequestSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A66B0E8FA78C381B0F7ECE70A5ED69D /* AFURLRequestSerialization.m */; }; + E04963F0C6D76377186361A0AF79A4C6 /* Chameleon_.h in Headers */ = {isa = PBXBuildFile; fileRef = 91E576039DB210C4C22154E3648739A1 /* Chameleon_.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E0D4045AC4C1B41917FCA23A042D18B2 /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 63B9F6CD8068797152C94DC8221A170A /* AFHTTPSessionManager.m */; }; + E1A9C067A09E9F17BEE220DD68EBCFC8 /* UIButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = AF2DD425FF9D3D40F9BBDEC2097BFC2C /* UIButton+WebCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + E53E2CD0E939A133E73880E7B3BB4DBF /* ChameleonEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = 6186E72B27ED368B2B15B2E59E9874CC /* ChameleonEnums.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E5A4261DB22000B4610387FA7BE880E3 /* SDImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 79F636878B51E135C2796D04FF25FFD9 /* SDImageCache.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + E7988678C81F7CCB95D239375FC6986D /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 09B5CAD28C440E32969A20EE7E7BE9D9 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E98AA3E890BE4D11B192EB37F6A4408C /* NSData+ImageContentType.m in Sources */ = {isa = PBXBuildFile; fileRef = DF7D3CD05575BD1BC15ED5C4B09B7D35 /* NSData+ImageContentType.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + EC7CADE416A78A1CD6936018A6695126 /* AFNetworking-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = ABA27B678AEF9BCDB3C7046D7F895A12 /* AFNetworking-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EEC0CA412D7FB80A0AB6CD28BD7C44E /* CoreGraphics.framework */; }; + F20F6CEB143FB1C11261424DBD6684B9 /* SDWebImageDownloaderOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = E4F4A9D5372ED87B652AF325B765CB3B /* SDWebImageDownloaderOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F32D7BD1DA58639964C91FA86A002AB4 /* UIView+ChameleonPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = B0156B96EE5A7F87BC5F7D5D68C45AE7 /* UIView+ChameleonPrivate.m */; }; + F5CC9B27F3CF472FE72A905E8C2D7A9D /* Chameleon.h in Headers */ = {isa = PBXBuildFile; fileRef = 9758519051975CBBF187957B9F45CD4A /* Chameleon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F85099F6E9B7DB837BAB856EB61A6F07 /* UIAppearance+Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = 045A0795AD66897AA232937311DCDD7B /* UIAppearance+Swift.h */; settings = {ATTRIBUTES = (Public, ); }; }; + FA90B7D6EBE7A289796856FF2B310FC0 /* ChameleonFramework-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4E972BD575C71E413202FB208CE11820 /* ChameleonFramework-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 547E597616AD1AAE25C84C6200EBC85F /* PBXContainerItemProxy */ = { + 21B1BF1CE89E3A0058A7A1C4A9D0254F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; proxyType = 1; - remoteGlobalIDString = 9B57F4EE4746045CEAE2D933A3C8EC9E; - remoteInfo = ChameleonFramework; + remoteGlobalIDString = F4A7EEEFE72653B329822E7F980DEB17; + remoteInfo = SIAlertView; }; - ADCAD8858D72088BA4F65801802F23B6 /* PBXContainerItemProxy */ = { + 87BBC3CF8F5719970699DD53DEB01BAD /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; proxyType = 1; - remoteGlobalIDString = 78280BD3EB57665A70DF98916878FF61; - remoteInfo = SIAlertView; + remoteGlobalIDString = B288D3B845DF95DB82ED94BED76C6960; + remoteInfo = SDWebImage; }; - B3A708E5D4937B9CD243D59B720582B0 /* PBXContainerItemProxy */ = { + A42011885E18F4AE5EA18396A9CB26C6 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; proxyType = 1; - remoteGlobalIDString = 9CFE1178BAA3ECC927676193BABF0180; - remoteInfo = SDWebImage; + remoteGlobalIDString = 1C3436CEA5C3D39764C5F54374794ECB; + remoteInfo = AFNetworking; + }; + E8795D0ED7A3D25C79B7F86CB32E1437 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B57F4EE4746045CEAE2D933A3C8EC9E; + remoteInfo = ChameleonFramework; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 01382D0C06FC94ABD2764C0168858875 /* ChameleonFramework-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ChameleonFramework-dummy.m"; sourceTree = ""; }; - 042A7507CDA83B33223A35258E7680CF /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 0456970BABB1A1EDC722A8AB50ECC984 /* UILabel+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UILabel+Chameleon.h"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.h"; sourceTree = ""; }; - 05B6626CFEA016FD3686FD61AACB99E2 /* SDImageCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDImageCache.m; path = SDWebImage/SDImageCache.m; sourceTree = ""; }; - 07EE69ECDEA7693EF03DE91C167A68EE /* UIImageView+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+WebCache.m"; path = "SDWebImage/UIImageView+WebCache.m"; sourceTree = ""; }; - 0C03E9B90B8517EB74BC3D82B8FE79E1 /* UIView+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.m"; sourceTree = ""; }; - 0DE61DA631F337D8F2B46D2071A8F1A7 /* UILabel+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UILabel+Chameleon.m"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.m"; sourceTree = ""; }; - 0F92368F678D13E3714EFA343FB2A783 /* UIViewController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIViewController+Chameleon.h"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.h"; sourceTree = ""; }; - 13F33452E7DC73D25C439B3EE161031D /* ChameleonConstants.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ChameleonConstants.m; path = "Pod/Classes/Objective-C/ChameleonConstants.m"; sourceTree = ""; }; - 16A668F868EB2FE7FC611AA59BC1144A /* UIImageView+HighlightedWebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+HighlightedWebCache.m"; path = "SDWebImage/UIImageView+HighlightedWebCache.m"; sourceTree = ""; }; - 1A77E87BE879DB03C9F4B2A9216335D9 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 1B10EEA72D3D415F007B508C41C303C6 /* SDWebImagePrefetcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImagePrefetcher.h; path = SDWebImage/SDWebImagePrefetcher.h; sourceTree = ""; }; - 1C6742BFF027BED2775A8DAE34160C11 /* SDWebImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloader.m; path = SDWebImage/SDWebImageDownloader.m; sourceTree = ""; }; - 2180619517DEB62C3A471DB211D8581E /* SDWebImageDownloaderOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloaderOperation.h; path = SDWebImage/SDWebImageDownloaderOperation.h; sourceTree = ""; }; - 2B839ED944C88F364EFAC861BEECB11F /* SDWebImage-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SDWebImage-prefix.pch"; sourceTree = ""; }; + 00928814FCF3BC55D5493A10707B40CB /* UIButton+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+AFNetworking.m"; path = "UIKit+AFNetworking/UIButton+AFNetworking.m"; sourceTree = ""; }; + 0222DD3060B4FDB5F67C0B9E73EF62E4 /* SDWebImage-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SDWebImage-umbrella.h"; sourceTree = ""; }; + 0256C091480F0D741C7251028BD1FCF1 /* UIRefreshControl+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIRefreshControl+AFNetworking.h"; path = "UIKit+AFNetworking/UIRefreshControl+AFNetworking.h"; sourceTree = ""; }; + 045A0795AD66897AA232937311DCDD7B /* UIAppearance+Swift.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIAppearance+Swift.h"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.h"; sourceTree = ""; }; + 05149083EA6274F979042D7B5A1BE849 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+AFNetworking.m"; path = "UIKit+AFNetworking/UIImageView+AFNetworking.m"; sourceTree = ""; }; + 0548FC51C30DA6BA6A5CD9BAA8ECC879 /* AFSecurityPolicy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFSecurityPolicy.h; path = AFNetworking/AFSecurityPolicy.h; sourceTree = ""; }; + 061891051576CD0D66997B91A922A3C1 /* SDWebImageManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageManager.m; path = SDWebImage/SDWebImageManager.m; sourceTree = ""; }; + 07AD017890591F8499F271B6A80DDA76 /* AFHTTPSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFHTTPSessionManager.h; path = AFNetworking/AFHTTPSessionManager.h; sourceTree = ""; }; + 09B5CAD28C440E32969A20EE7E7BE9D9 /* AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworking.h; path = AFNetworking/AFNetworking.h; sourceTree = ""; }; + 0C9432229A2D2E8D7B1339B6FCE39B08 /* AFSecurityPolicy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFSecurityPolicy.m; path = AFNetworking/AFSecurityPolicy.m; sourceTree = ""; }; + 133355A5A8E882B8C3C3996649C5D184 /* AFNetworking-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AFNetworking-prefix.pch"; sourceTree = ""; }; + 13F0254858ED1938ED0DDDC534E0AFC7 /* UIActivityIndicatorView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIActivityIndicatorView+AFNetworking.h"; path = "UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h"; sourceTree = ""; }; + 1441BB11E4761F1BC04D6C0E00872AEC /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; + 14B310D1EE4EEAB229349E0FB55039EA /* NSData+ImageContentType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSData+ImageContentType.h"; path = "SDWebImage/NSData+ImageContentType.h"; sourceTree = ""; }; + 1684D4556D43287C736258444195B29C /* AFURLResponseSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLResponseSerialization.h; path = AFNetworking/AFURLResponseSerialization.h; sourceTree = ""; }; + 19858785CC92C12C9FC67C1A3C448B71 /* ChameleonFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ChameleonFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 19DDE813B74AB915ED3F8EE1B38E8188 /* UIImage+GIF.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+GIF.m"; path = "SDWebImage/UIImage+GIF.m"; sourceTree = ""; }; + 1A66B0E8FA78C381B0F7ECE70A5ED69D /* AFURLRequestSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLRequestSerialization.m; path = AFNetworking/AFURLRequestSerialization.m; sourceTree = ""; }; + 1AE55F1DC9E05C9F1B8AEC331057C952 /* UILabel+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UILabel+Chameleon.h"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.h"; sourceTree = ""; }; + 1EF8296E82FB9AA440D7FDFDE07B59DB /* AFNetworking-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AFNetworking-dummy.m"; sourceTree = ""; }; + 222696BBCD1EADA99117A5586F2182C4 /* Chameleon_.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = Chameleon_.m; path = "Pod/Classes/Objective-C/Chameleon_.m"; sourceTree = ""; }; + 24C1F326D69F202E5391182C8199EA1C /* AFURLResponseSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLResponseSerialization.m; path = AFNetworking/AFURLResponseSerialization.m; sourceTree = ""; }; + 261824B849239DE2DFF2B95C452EC74C /* SDWebImageDecoder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDecoder.h; path = SDWebImage/SDWebImageDecoder.h; sourceTree = ""; }; + 27F4E4B5EA42C02400CF305F1468B26C /* AFURLSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLSessionManager.m; path = AFNetworking/AFURLSessionManager.m; sourceTree = ""; }; + 292B12936E492B93444D42044987B350 /* UIViewController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+Chameleon.m"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.m"; sourceTree = ""; }; + 29391A1EC984788CE098CAED891CB388 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+AFNetworking.h"; path = "UIKit+AFNetworking/UIImageView+AFNetworking.h"; sourceTree = ""; }; 2BCC458FDD5F692BBB2BFC64BB5701FC /* Pods-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-umbrella.h"; sourceTree = ""; }; - 2BFAA85DE14D98A2D89E73EF8F7E28D9 /* ChameleonEnums.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonEnums.h; path = "Pod/Classes/Objective-C/ChameleonEnums.h"; sourceTree = ""; }; - 2CCF7F19CBF343BEAB190F6A3D8590B0 /* UIImage+GIF.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+GIF.m"; path = "SDWebImage/UIImage+GIF.m"; sourceTree = ""; }; - 303DC378B147C2CEC758E6A49E7BAB60 /* UIColor+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+Chameleon.m"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.m"; sourceTree = ""; }; - 323CD44DF03F1F5045E03EC34F5ADA19 /* UIAppearance+Swift.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIAppearance+Swift.m"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.m"; sourceTree = ""; }; - 39B3902B2B8899153E334515F7E3A670 /* UIButton+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+WebCache.h"; path = "SDWebImage/UIButton+WebCache.h"; sourceTree = ""; }; - 3C2A8059BB067700E7CF9AB733273230 /* NSData+ImageContentType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSData+ImageContentType.h"; path = "SDWebImage/NSData+ImageContentType.h"; sourceTree = ""; }; - 4148F9CF08249453966BAE8386A12D8E /* SDWebImageManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageManager.h; path = SDWebImage/SDWebImageManager.h; sourceTree = ""; }; - 4961AF5D2E8F5D6F461F2A295A9DDEDD /* SDWebImagePrefetcher.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImagePrefetcher.m; path = SDWebImage/SDWebImagePrefetcher.m; sourceTree = ""; }; - 4A241A44A2A762A519BF9A0E80540E3B /* SIAlertView.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = SIAlertView.bundle; path = SIAlertView/SIAlertView.bundle; sourceTree = ""; }; - 4B9FA0477764F043CF5D8C90B0807754 /* UIView+WebCacheOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+WebCacheOperation.m"; path = "SDWebImage/UIView+WebCacheOperation.m"; sourceTree = ""; }; - 51281CFF0C2A6E54812EB0174765EA1E /* SIAlertView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-prefix.pch"; sourceTree = ""; }; - 520C2350B97777A9D9B2E53DFEF1B3CC /* ChameleonFramework.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ChameleonFramework.modulemap; sourceTree = ""; }; - 52D2AF0410FBB0492ED1ED06A9B4B752 /* UIImage+MultiFormat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+MultiFormat.m"; path = "SDWebImage/UIImage+MultiFormat.m"; sourceTree = ""; }; - 5491386D355164B4A7D77C4192A101B2 /* Chameleon_.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = Chameleon_.m; path = "Pod/Classes/Objective-C/Chameleon_.m"; sourceTree = ""; }; - 5679F61C93FA06AE85AD74EB0A841753 /* SIAlertView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SIAlertView.xcconfig; sourceTree = ""; }; - 5DAA3520457BC2876CD6EE44F44ED48F /* Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon.h; path = "Pod/Classes/Objective-C/Chameleon.h"; sourceTree = ""; }; - 5F2F69722304A7D87A94A1AD628A8BC7 /* SDWebImageOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageOperation.h; path = SDWebImage/SDWebImageOperation.h; sourceTree = ""; }; - 5F6AF9BE66813C632656F360AA424150 /* SIAlertView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SIAlertView-dummy.m"; sourceTree = ""; }; - 62E04B0A969E8434BEFC2CEBECA0E25B /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/ImageIO.framework; sourceTree = DEVELOPER_DIR; }; - 6982EAB876A02A41D6D03F18B685B0F2 /* SDWebImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SDWebImage-dummy.m"; sourceTree = ""; }; - 6B114A3846AD55D8643F2E94E1BEEE1F /* SDWebImageDecoder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDecoder.h; path = SDWebImage/SDWebImageDecoder.h; sourceTree = ""; }; - 6E5FAB8B8E3988DBA96FB1320C41D43D /* UIView+WebCacheOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+WebCacheOperation.h"; path = "SDWebImage/UIView+WebCacheOperation.h"; sourceTree = ""; }; - 6F98DF1B98D00EB385CE11FA9296CCAC /* UINavigationController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UINavigationController+Chameleon.m"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.m"; sourceTree = ""; }; - 727D930779DA5D7AF5E2A2E0E434F345 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; - 73A10ACDA6882A9C61137D287679E10E /* SDWebImageManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageManager.m; path = SDWebImage/SDWebImageManager.m; sourceTree = ""; }; + 2E69F80FBF41C5991FCEAFDD3F7D2998 /* UIImageView+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+WebCache.h"; path = "SDWebImage/UIImageView+WebCache.h"; sourceTree = ""; }; + 301EE93398BD24FF57949ADFAC7555E5 /* UIViewController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIViewController+Chameleon.h"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.h"; sourceTree = ""; }; + 32D2B7187E8CD92B370BDED591331791 /* UIImage+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m"; sourceTree = ""; }; + 36480C55417C1CE218EDC8C29D6DE27B /* UIImageView+HighlightedWebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+HighlightedWebCache.h"; path = "SDWebImage/UIImageView+HighlightedWebCache.h"; sourceTree = ""; }; + 3678A579063EE57B009031ECAB496DAB /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkActivityIndicatorManager.h; path = "UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h"; sourceTree = ""; }; + 3AC26E4849C4688AB2833C0203BD5EFD /* SDWebImageDownloaderOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloaderOperation.m; path = SDWebImage/SDWebImageDownloaderOperation.m; sourceTree = ""; }; + 3B8B39F9BFE1B49BAD4FFE8014C78C0F /* UIImage+MultiFormat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+MultiFormat.m"; path = "SDWebImage/UIImage+MultiFormat.m"; sourceTree = ""; }; + 3BCA564B0F4EEE904D7A979B401E9D66 /* AFNetworking.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = AFNetworking.modulemap; sourceTree = ""; }; + 3E892333521B02CED2C188199C4FC260 /* UIColor+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+Chameleon.h"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.h"; sourceTree = ""; }; + 40182B7FF44217D3F633FF36BE3E4831 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/ImageIO.framework; sourceTree = DEVELOPER_DIR; }; + 40FEEC272573BE197E4BBB1FC139FDC2 /* NSArray+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Chameleon.m"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.m"; sourceTree = ""; }; + 460B6F09D8F4B5F3B88C9D288514D92A /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 47331CFA95DE5A83D806E6213F4C871B /* UIColor+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+Chameleon.m"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.m"; sourceTree = ""; }; + 4A42091A5CF7ACF7633FE12F30B5A96E /* AFImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFImageDownloader.m; path = "UIKit+AFNetworking/AFImageDownloader.m"; sourceTree = ""; }; + 4C1D56168357FBA6F995515CF005A94F /* AFURLRequestSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLRequestSerialization.h; path = AFNetworking/AFURLRequestSerialization.h; sourceTree = ""; }; + 4C9ED7629FB1AB491D321D2665095792 /* UIButton+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+Chameleon.h"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.h"; sourceTree = ""; }; + 4D7681B7F660CCAC139F2E4A99B16D1E /* SDWebImage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SDWebImage.xcconfig; sourceTree = ""; }; + 4E972BD575C71E413202FB208CE11820 /* ChameleonFramework-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-umbrella.h"; sourceTree = ""; }; + 4F6A620F784540CCAC8826D3F35BC267 /* ChameleonMacros.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonMacros.h; path = "Pod/Classes/Objective-C/ChameleonMacros.h"; sourceTree = ""; }; + 507F3BC6B87E2835FF5F9ABF3A38E96D /* ChameleonFramework.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ChameleonFramework.modulemap; sourceTree = ""; }; + 5A8808E8D69DB0F13C7D17978C1115D5 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkActivityIndicatorManager.m; path = "UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m"; sourceTree = ""; }; + 5C924B0030AA0F805839E520FEBDA66C /* ChameleonConstants.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonConstants.h; path = "Pod/Classes/Objective-C/ChameleonConstants.h"; sourceTree = ""; }; + 5E2E35694543CC52199588655D064843 /* UIAppearance+Swift.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIAppearance+Swift.m"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.m"; sourceTree = ""; }; + 5F7B9818167212F7413F0950564EDA45 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; }; + 6186E72B27ED368B2B15B2E59E9874CC /* ChameleonEnums.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonEnums.h; path = "Pod/Classes/Objective-C/ChameleonEnums.h"; sourceTree = ""; }; + 63B9F6CD8068797152C94DC8221A170A /* AFHTTPSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFHTTPSessionManager.m; path = AFNetworking/AFHTTPSessionManager.m; sourceTree = ""; }; + 671E7BEAD7E869CB593B71038B4DE327 /* AFURLSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLSessionManager.h; path = AFNetworking/AFURLSessionManager.h; sourceTree = ""; }; + 6944ED9DFD7B5B9887BDA5FDA5193EF3 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = DEVELOPER_DIR; }; + 69B22AD40C656C5C8EF7BC256A3AAC50 /* UIButton+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+AFNetworking.h"; path = "UIKit+AFNetworking/UIButton+AFNetworking.h"; sourceTree = ""; }; + 6DF518081FD49CFD1C5E46CC45689EAA /* UIImage+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h"; sourceTree = ""; }; + 6E142146DAE6D0F0F7D44656D80C9D6B /* UIView+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.h"; sourceTree = ""; }; + 6EEC0CA412D7FB80A0AB6CD28BD7C44E /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; + 6F24ED243F51B6BE7F54947C7BFEA4CA /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 71C2519592D6ABFB2BE4CECD790B9C60 /* SIAlertView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SIAlertView.h; path = SIAlertView/SIAlertView.h; sourceTree = ""; }; + 7254B6EBAAA3E58D8E0BD374F0AB6A26 /* SDWebImageManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageManager.h; path = SDWebImage/SDWebImageManager.h; sourceTree = ""; }; + 77B67B56422B56FC9502C450AD6AABA0 /* ChameleonFramework.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ChameleonFramework.xcconfig; sourceTree = ""; }; + 77F5211664F5579DF283409D0A987B58 /* UIKit+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIKit+AFNetworking.h"; path = "UIKit+AFNetworking/UIKit+AFNetworking.h"; sourceTree = ""; }; + 78A4335ADD114F848EAC73C718093613 /* SIAlertView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SIAlertView.m; path = SIAlertView/SIAlertView.m; sourceTree = ""; }; 79A9DEDC89FE8336BF5FEDAAF75BF7FC /* Pods.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Pods.modulemap; sourceTree = ""; }; - 7BB881DE45F24AC18F6BD8395BA7F8F5 /* SIAlertView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-umbrella.h"; sourceTree = ""; }; - 7C4EB543532C4B3D99C7318F6656A511 /* SDWebImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloader.h; path = SDWebImage/SDWebImageDownloader.h; sourceTree = ""; }; - 7D3C51596B4824B86054F307CC3B43A4 /* SDWebImage.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImage.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E05420F43E2C534BC664F46764FF978 /* UIImage+MultiFormat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+MultiFormat.h"; path = "SDWebImage/UIImage+MultiFormat.h"; sourceTree = ""; }; - 801CA98FD26D5B8668B9D8A9AA2F8675 /* Chameleon_.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon_.h; path = "Pod/Classes/Objective-C/Chameleon_.h"; sourceTree = ""; }; + 79C6BE498D9F6870CF1E2565FFACFB10 /* SDWebImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloader.m; path = SDWebImage/SDWebImageDownloader.m; sourceTree = ""; }; + 79DA00548D047B39D7865C7FB8F4CA45 /* SDWebImageCompat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageCompat.m; path = SDWebImage/SDWebImageCompat.m; sourceTree = ""; }; + 79F636878B51E135C2796D04FF25FFD9 /* SDImageCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDImageCache.m; path = SDWebImage/SDImageCache.m; sourceTree = ""; }; + 7BF8991AAEDDC5F26734BCAC875F4A7B /* UIButton+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+Chameleon.m"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.m"; sourceTree = ""; }; + 8559AD718FB3DDF73F7E35A6030BEE57 /* UIImage+GIF.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+GIF.h"; path = "SDWebImage/UIImage+GIF.h"; sourceTree = ""; }; + 86BD1FB960BE84CCA878F92E5A3CF958 /* SDWebImageOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageOperation.h; path = SDWebImage/SDWebImageOperation.h; sourceTree = ""; }; 87B213035BAC5F75386F62D3C75D2342 /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; - 88AA6AB048B3414135DD0F53DAF7C62D /* SIAlertView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SIAlertView.modulemap; sourceTree = ""; }; + 87BCB10DAAAEF784FA72C9B3BF4A0AB0 /* SIAlertView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-prefix.pch"; sourceTree = ""; }; + 893A794918CF5C97A5D11D3F131F9F57 /* AFNetworking.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AFNetworking.xcconfig; sourceTree = ""; }; 894E5DA93A9F359521A89826BE6DA777 /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; - 8BADA9BC1A98AEC4A52530476FBBA596 /* UIImageView+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+WebCache.h"; path = "SDWebImage/UIImageView+WebCache.h"; sourceTree = ""; }; - 8C5C7FFDF288D227885A14D3662ACC3A /* SDWebImage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SDWebImage.xcconfig; sourceTree = ""; }; - 8C6C303A9A42A4A94E4148BE2BC34128 /* UIButton+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+Chameleon.m"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.m"; sourceTree = ""; }; - 909806AA2C930889B394D2D7097600B6 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; - 91610C6C6E0405467D4B4D22DCB1774B /* SDWebImage-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SDWebImage-umbrella.h"; sourceTree = ""; }; + 8986E57FEDECCECA19D6F456A7F810DF /* UIView+WebCacheOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+WebCacheOperation.m"; path = "SDWebImage/UIView+WebCacheOperation.m"; sourceTree = ""; }; + 8A566ABA6EE8D60B1990A0F955E25E76 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + 8AD17CF93C3CD37548ACAB340BD0B279 /* UIRefreshControl+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIRefreshControl+AFNetworking.m"; path = "UIKit+AFNetworking/UIRefreshControl+AFNetworking.m"; sourceTree = ""; }; + 8C933923BF252C9E19340FF630BA1D5F /* AFNetworkReachabilityManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkReachabilityManager.h; path = AFNetworking/AFNetworkReachabilityManager.h; sourceTree = ""; }; + 8E65E6E1484B97F7902E3B3A737FC3C1 /* AFNetworking.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 91E576039DB210C4C22154E3648739A1 /* Chameleon_.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon_.h; path = "Pod/Classes/Objective-C/Chameleon_.h"; sourceTree = ""; }; + 92895F469B2B958606141683B6F5DA1A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 92A6631228DA9142C15A208B112CBE85 /* AFImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFImageDownloader.h; path = "UIKit+AFNetworking/AFImageDownloader.h"; sourceTree = ""; }; + 94071DEE80170761AD89A23DAD197E95 /* UIWebView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIWebView+AFNetworking.h"; path = "UIKit+AFNetworking/UIWebView+AFNetworking.h"; sourceTree = ""; }; + 96F35AD2449B9CB67A2ECC7726EE2A32 /* SDImageCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDImageCache.h; path = SDWebImage/SDImageCache.h; sourceTree = ""; }; + 9758519051975CBBF187957B9F45CD4A /* Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Chameleon.h; path = "Pod/Classes/Objective-C/Chameleon.h"; sourceTree = ""; }; 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; - 99368DF2D677613AD7167C03C9A37A1F /* NSData+ImageContentType.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSData+ImageContentType.m"; path = "SDWebImage/NSData+ImageContentType.m"; sourceTree = ""; }; - 9AC7C5589D67942308F8C2180119BACB /* SDWebImage.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SDWebImage.modulemap; sourceTree = ""; }; - A76ECD2AFC40633C73EC2AAD6C9171AB /* UIImage+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h"; sourceTree = ""; }; - A93C96500F819366DC994F801AEE156D /* UIImage+GIF.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+GIF.h"; path = "SDWebImage/UIImage+GIF.h"; sourceTree = ""; }; - AD7249A5ABDB5E18FE5C7AF8C1608B2F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B0F3B0ECBE06A73D571E06AC8C71F856 /* SIAlertView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SIAlertView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - B377F543EA9E012D3A444C40E1074E91 /* UIButton+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+Chameleon.h"; path = "Pod/Classes/Objective-C/UIButton+Chameleon.h"; sourceTree = ""; }; - B7CD527CB1518E502ED2A6D47B20D620 /* ChameleonFramework.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ChameleonFramework.xcconfig; sourceTree = ""; }; + 9E308322DA038B33575B3583CA0798A8 /* UINavigationController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UINavigationController+Chameleon.m"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.m"; sourceTree = ""; }; + A00447FDCEB071E39255C79188E58FE7 /* UIColor+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h"; sourceTree = ""; }; + A0E0F24194609FBC5961FE88B29BADF0 /* AFAutoPurgingImageCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFAutoPurgingImageCache.h; path = "UIKit+AFNetworking/AFAutoPurgingImageCache.h"; sourceTree = ""; }; + A1D4AD56677F149286A0500097D6A092 /* UIProgressView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIProgressView+AFNetworking.h"; path = "UIKit+AFNetworking/UIProgressView+AFNetworking.h"; sourceTree = ""; }; + A1E782472E43D6E684C78520E0B31936 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A2BD16ECE03FDEF2DC51C919647943D5 /* SDWebImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloader.h; path = SDWebImage/SDWebImageDownloader.h; sourceTree = ""; }; + A3CA95455AD72EA80ABD1A120C4650E1 /* UIImage+MultiFormat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+MultiFormat.h"; path = "SDWebImage/UIImage+MultiFormat.h"; sourceTree = ""; }; + A59E5B619A049EBE85BA63D35F3EB6B0 /* UIButton+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+WebCache.h"; path = "SDWebImage/UIButton+WebCache.h"; sourceTree = ""; }; + A91DF00F58D2CD70592F12FAC84D3BC2 /* SIAlertView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SIAlertView.modulemap; sourceTree = ""; }; + A9BE151AA560C3E90597FE53A05954A7 /* SDWebImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SDWebImage-dummy.m"; sourceTree = ""; }; + AB0FE5062FDEF326A4028F2F7D543045 /* AFAutoPurgingImageCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFAutoPurgingImageCache.m; path = "UIKit+AFNetworking/AFAutoPurgingImageCache.m"; sourceTree = ""; }; + AB99830EE90188AF93FA50631EA5E1CD /* AFNetworkReachabilityManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkReachabilityManager.m; path = AFNetworking/AFNetworkReachabilityManager.m; sourceTree = ""; }; + ABA27B678AEF9BCDB3C7046D7F895A12 /* AFNetworking-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AFNetworking-umbrella.h"; sourceTree = ""; }; + AEE6A3B7D517C1E9D060E13F636167F0 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; }; + AF2DD425FF9D3D40F9BBDEC2097BFC2C /* UIButton+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+WebCache.m"; path = "SDWebImage/UIButton+WebCache.m"; sourceTree = ""; }; + B0156B96EE5A7F87BC5F7D5D68C45AE7 /* UIView+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.m"; sourceTree = ""; }; + B3B3288E024D0F755C575B7D8450B667 /* NSArray+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+Chameleon.h"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.h"; sourceTree = ""; }; + B8F637A66EE8F93892DB27F45CC5C8E3 /* ChameleonFramework-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-prefix.pch"; sourceTree = ""; }; BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - BA868DBAB3092447E3A8D571B56EB0FC /* UIImageView+HighlightedWebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+HighlightedWebCache.h"; path = "SDWebImage/UIImageView+HighlightedWebCache.h"; sourceTree = ""; }; - BAD43AB689B4F2A3D0DBB9D143BB5B7A /* UIColor+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m"; sourceTree = ""; }; - BB16B50F79890948FBA2D720CD014F83 /* UIViewController+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+Chameleon.m"; path = "Pod/Classes/Objective-C/UIViewController+Chameleon.m"; sourceTree = ""; }; - BD10FD63B1F2E3EFD1CB91DB4ADC7B8F /* SDImageCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDImageCache.h; path = SDWebImage/SDImageCache.h; sourceTree = ""; }; - BF81A64ACF93AA31F448375E3EFB3C24 /* UIColor+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h"; sourceTree = ""; }; - C067BD59DA173E53658568A11190B2D1 /* NSArray+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Chameleon.m"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.m"; sourceTree = ""; }; - C9AB49A41BBB4BA3BEC7DCB7B2EFCBC3 /* SDWebImageDecoder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDecoder.m; path = SDWebImage/SDWebImageDecoder.m; sourceTree = ""; }; - CAB7932EAA38777C3906E3B72C4362B6 /* UIImage+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImage+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m"; sourceTree = ""; }; + BB433473714BA06CCF41B7DBED90F88F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + BE4DF15D2CD93F28E93E0255333E8AF2 /* UIColor+ChameleonPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIColor+ChameleonPrivate.m"; path = "Pod/Classes/Objective-C/UIColor+ChameleonPrivate.m"; sourceTree = ""; }; + C002D5796E8DC72B699FBFD7CB0C2E83 /* SIAlertView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SIAlertView-umbrella.h"; sourceTree = ""; }; + C2F1201EEE0CA2057A3219FF00CC9BFA /* UIProgressView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIProgressView+AFNetworking.m"; path = "UIKit+AFNetworking/UIProgressView+AFNetworking.m"; sourceTree = ""; }; + C8AF67C0E1630C70E3C2C13563B6C01F /* UIView+WebCacheOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+WebCacheOperation.h"; path = "SDWebImage/UIView+WebCacheOperation.h"; sourceTree = ""; }; CBC0F7C552B739C909B650A0F42F7F38 /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; - CEC7AB1811B9AEE20BED4DE6FFA6B39E /* ChameleonFramework-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-umbrella.h"; sourceTree = ""; }; D0405803033A2A777B8E4DFA0C1800ED /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; - D055FD8546FD0A7A7F2A866580DF6D70 /* ChameleonConstants.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonConstants.h; path = "Pod/Classes/Objective-C/ChameleonConstants.h"; sourceTree = ""; }; - D0D38C3553BA1AA28F201ED777AB34A8 /* UIView+ChameleonPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+ChameleonPrivate.h"; path = "Pod/Classes/Objective-C/UIView+ChameleonPrivate.h"; sourceTree = ""; }; - D48F91F4DA72C043D337A71BC3D798BE /* UIButton+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+WebCache.m"; path = "SDWebImage/UIButton+WebCache.m"; sourceTree = ""; }; - D57F9E761FCADDA381E71051C9B745C8 /* SDWebImageDownloaderOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloaderOperation.m; path = SDWebImage/SDWebImageDownloaderOperation.m; sourceTree = ""; }; - D58CC7A9560BB1E5D129554FD0EF75E3 /* UINavigationController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UINavigationController+Chameleon.h"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.h"; sourceTree = ""; }; - D5A92D9C314D4A27EEA01A7F12F40FE9 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D7A4494FDCCE7F35E230B327EDEFE974 /* SIAlertView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SIAlertView.h; path = SIAlertView/SIAlertView.h; sourceTree = ""; }; + D0FEAA2EA123F086A95DE4443024BD5E /* UIWebView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIWebView+AFNetworking.m"; path = "UIKit+AFNetworking/UIWebView+AFNetworking.m"; sourceTree = ""; }; + D3E9928D614F687AE64723D366E4C025 /* SDWebImage-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SDWebImage-prefix.pch"; sourceTree = ""; }; + D6DFDBCA26FE67CFAAF748ACE2B398CC /* SIAlertView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SIAlertView-dummy.m"; sourceTree = ""; }; + D75CEC495D289B978D7FC3454DFA2A64 /* SDWebImagePrefetcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImagePrefetcher.h; path = SDWebImage/SDWebImagePrefetcher.h; sourceTree = ""; }; + D9D179FF755EFD14DAE003FDB957D3ED /* UILabel+Chameleon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UILabel+Chameleon.m"; path = "Pod/Classes/Objective-C/UILabel+Chameleon.m"; sourceTree = ""; }; DA312349A49333542E6F4B36B329960E /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; - DC210CBCF7423A03CCD47F4835F0D226 /* UIAppearance+Swift.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIAppearance+Swift.h"; path = "Pod/Classes/Objective-C/UIAppearance+Swift.h"; sourceTree = ""; }; - DC2C8737CFE936E50525FE0826432E57 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - DD5F57CC97DDA8D1E51B8EDDD831DEEB /* SDWebImageCompat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageCompat.h; path = SDWebImage/SDWebImageCompat.h; sourceTree = ""; }; - E31D286D0B75C2388DE8EA6B621D8210 /* ChameleonFramework-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ChameleonFramework-prefix.pch"; sourceTree = ""; }; - E53E3E29FA4700206FA5FCE7A2D5AA44 /* ChameleonMacros.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ChameleonMacros.h; path = "Pod/Classes/Objective-C/ChameleonMacros.h"; sourceTree = ""; }; - E787B2673C56F863935372445FE396EC /* ChameleonFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ChameleonFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - E7EF91A108BE27CCDBAEF91859A5FC65 /* NSArray+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+Chameleon.h"; path = "Pod/Classes/Objective-C/NSArray+Chameleon.h"; sourceTree = ""; }; + DB8A82F916E40BB68E0A31C09766D5BE /* UIImageView+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+WebCache.m"; path = "SDWebImage/UIImageView+WebCache.m"; sourceTree = ""; }; + DBEB0DA0ECC4FCD504E89FE705872E88 /* SDWebImageCompat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageCompat.h; path = SDWebImage/SDWebImageCompat.h; sourceTree = ""; }; + DE85BCCC2A5129323CEEEC0AEC32027D /* ChameleonFramework-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ChameleonFramework-dummy.m"; sourceTree = ""; }; + DF7D3CD05575BD1BC15ED5C4B09B7D35 /* NSData+ImageContentType.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSData+ImageContentType.m"; path = "SDWebImage/NSData+ImageContentType.m"; sourceTree = ""; }; + E07B6ECF12F149E697A66A3C985463AF /* SDWebImageDecoder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDecoder.m; path = SDWebImage/SDWebImageDecoder.m; sourceTree = ""; }; + E4F4A9D5372ED87B652AF325B765CB3B /* SDWebImageDownloaderOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloaderOperation.h; path = SDWebImage/SDWebImageDownloaderOperation.h; sourceTree = ""; }; + E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; E7F21354943D9F42A70697D5A5EF72E9 /* Pods-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-frameworks.sh"; sourceTree = ""; }; - E81879C879F8B7A7A0EC74D6D418300D /* SDWebImageCompat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageCompat.m; path = SDWebImage/SDWebImageCompat.m; sourceTree = ""; }; E8446514FBAD26C0E18F24A5715AEF67 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - FA01E5115F18442BDD74FDDC1234044F /* SIAlertView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SIAlertView.m; path = SIAlertView/SIAlertView.m; sourceTree = ""; }; - FAEC9EFD902EF361F4F57B9D54EC4088 /* UIColor+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIColor+Chameleon.h"; path = "Pod/Classes/Objective-C/UIColor+Chameleon.h"; sourceTree = ""; }; + EA4A2816CC27CC81B26803660B5DF9C4 /* UIImageView+HighlightedWebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+HighlightedWebCache.m"; path = "SDWebImage/UIImageView+HighlightedWebCache.m"; sourceTree = ""; }; + F003BD3E21CB9DB7488F151BE3608260 /* SDWebImage.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImage.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + F31677979CB7EFFAA1EB9BBE0FA2330B /* SIAlertView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SIAlertView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + F45CBFA61BA8D483714567618CC670FE /* SDWebImagePrefetcher.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImagePrefetcher.m; path = SDWebImage/SDWebImagePrefetcher.m; sourceTree = ""; }; + F5502E8D9885E107FB9D917CBD17C9CA /* UIActivityIndicatorView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIActivityIndicatorView+AFNetworking.m"; path = "UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m"; sourceTree = ""; }; + F5B6DF504037B1523126C71C6386DCD9 /* SDWebImage.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SDWebImage.modulemap; sourceTree = ""; }; + F904731712EE1E15DE07E4A384C387D0 /* SIAlertView.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = SIAlertView.bundle; path = SIAlertView/SIAlertView.bundle; sourceTree = ""; }; + F9486A437875BAA795DFEA8396B82E3D /* SIAlertView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SIAlertView.xcconfig; sourceTree = ""; }; + F9B6FE84AFEF2AD2006E42F29AA5F117 /* UIImage+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImage+AFNetworking.h"; path = "UIKit+AFNetworking/UIImage+AFNetworking.h"; sourceTree = ""; }; + FA1A10E040B375EF112B41C4A0F58516 /* UINavigationController+Chameleon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UINavigationController+Chameleon.h"; path = "Pod/Classes/Objective-C/UINavigationController+Chameleon.h"; sourceTree = ""; }; + FE7083BC499DDD66A7582D2C7478E2A7 /* ChameleonConstants.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ChameleonConstants.m; path = "Pod/Classes/Objective-C/ChameleonConstants.m"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 0239C14B2A8FE20E25913C475FF3946D /* Frameworks */ = { + 1F704B335FE4D11FE6DDC33D41D2CE38 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 00CF864282ECDA8F30090ED336028082 /* Foundation.framework in Frameworks */, + 3F380B6D0B4DD2E6D87AA320AFC86D09 /* Foundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; - 11D73249C3DF8FAFAEA86651250575F7 /* Frameworks */ = { + 3D0E661242C853E94F4299270086801D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 6B0D062D37EE811CA1DE3A8B4957DAD1 /* Foundation.framework in Frameworks */, - C59BDDFAE4346C5C1ACE4C3356169582 /* ImageIO.framework in Frameworks */, + ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */, + 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */, + 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */, + C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; - 3D0E661242C853E94F4299270086801D /* Frameworks */ = { + C151364F15F39F7CC60CBF9A3AB49B44 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - ED545537CDC6C83EBA629FE6524D550A /* CoreGraphics.framework in Frameworks */, - 42B81612C22744B21A3AC57DC36F7DD3 /* Foundation.framework in Frameworks */, - 2139B6A9B4241F53BB478C43D51921CC /* QuartzCore.framework in Frameworks */, - C67E03EC22D124DE998695EF86B99E25 /* UIKit.framework in Frameworks */, + 7E6A4EFA32969CDB9F9C57903152BA54 /* CoreGraphics.framework in Frameworks */, + 7F17EA5E2787B6F2BBB359854B42A0E3 /* Foundation.framework in Frameworks */, + D04B84B53456B9CD8A7236126075571B /* MobileCoreServices.framework in Frameworks */, + C01AC3BAD9037A8A1E45FD17336C15F3 /* Security.framework in Frameworks */, + 3A10EF6ABF51D1D00B06AC5EF3A8C28C /* SystemConfiguration.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D77C2CE6331C3B56EF41780CCF490502 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 33413A8B4EF4F2D0D463271F93B090B4 /* Foundation.framework in Frameworks */, + 481D2695D475A2BC649D64D2D1C6A03E /* ImageIO.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; - E3C9CF92D02394D858841EC9EE0A8872 /* Frameworks */ = { + DA18E87D6E7AACB2B2024ECD4CFDD0E6 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 195F17A03B0A9BC3BF9E8FAD12968C4A /* Foundation.framework in Frameworks */, - 3CA230A7D1C5DC9E995093A0CEF9B4AA /* QuartzCore.framework in Frameworks */, + CEB79FC05B4B5DC7AB1C60B17E206426 /* Foundation.framework in Frameworks */, + C9CD229C670F4FD567692E66C8477577 /* QuartzCore.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 010779B0885904EF03D5BAEF03B3EF69 /* Support Files */ = { + 10D0CF7566B1073CA2E9CFF57727C539 /* Support Files */ = { + isa = PBXGroup; + children = ( + 3BCA564B0F4EEE904D7A979B401E9D66 /* AFNetworking.modulemap */, + 893A794918CF5C97A5D11D3F131F9F57 /* AFNetworking.xcconfig */, + 1EF8296E82FB9AA440D7FDFDE07B59DB /* AFNetworking-dummy.m */, + 133355A5A8E882B8C3C3996649C5D184 /* AFNetworking-prefix.pch */, + ABA27B678AEF9BCDB3C7046D7F895A12 /* AFNetworking-umbrella.h */, + 6F24ED243F51B6BE7F54947C7BFEA4CA /* Info.plist */, + ); + name = "Support Files"; + path = "../Target Support Files/AFNetworking"; + sourceTree = ""; + }; + 12FF1B0D18F052F63614B7EEC50105E5 /* Pods */ = { + isa = PBXGroup; + children = ( + D245BEF9BCC0DD6A1D3ED96A61511EB4 /* AFNetworking */, + 266E28E647F70CA52FA8E54A41C150C6 /* ChameleonFramework */, + B9B60A1312696EE0FD7EDD089BD7A3BC /* SDWebImage */, + 1EA7ED024DCA2402C5FC8735F139123B /* SIAlertView */, + ); + name = Pods; + sourceTree = ""; + }; + 1EA7ED024DCA2402C5FC8735F139123B /* SIAlertView */ = { + isa = PBXGroup; + children = ( + 71C2519592D6ABFB2BE4CECD790B9C60 /* SIAlertView.h */, + 78A4335ADD114F848EAC73C718093613 /* SIAlertView.m */, + CB4F1CE2D0137DCFEA4A405493E3E6DC /* Resources */, + D183D1ADD9F21EAD429BEE97DF8B9789 /* Support Files */, + ); + path = SIAlertView; + sourceTree = ""; + }; + 23490FC4709A17FE75567BCC4A6E7F0F /* Support Files */ = { isa = PBXGroup; children = ( - 520C2350B97777A9D9B2E53DFEF1B3CC /* ChameleonFramework.modulemap */, - B7CD527CB1518E502ED2A6D47B20D620 /* ChameleonFramework.xcconfig */, - 01382D0C06FC94ABD2764C0168858875 /* ChameleonFramework-dummy.m */, - E31D286D0B75C2388DE8EA6B621D8210 /* ChameleonFramework-prefix.pch */, - CEC7AB1811B9AEE20BED4DE6FFA6B39E /* ChameleonFramework-umbrella.h */, - 042A7507CDA83B33223A35258E7680CF /* Info.plist */, + 507F3BC6B87E2835FF5F9ABF3A38E96D /* ChameleonFramework.modulemap */, + 77B67B56422B56FC9502C450AD6AABA0 /* ChameleonFramework.xcconfig */, + DE85BCCC2A5129323CEEEC0AEC32027D /* ChameleonFramework-dummy.m */, + B8F637A66EE8F93892DB27F45CC5C8E3 /* ChameleonFramework-prefix.pch */, + 4E972BD575C71E413202FB208CE11820 /* ChameleonFramework-umbrella.h */, + BB433473714BA06CCF41B7DBED90F88F /* Info.plist */, ); name = "Support Files"; path = "../Target Support Files/ChameleonFramework"; sourceTree = ""; }; - 0BFA9893B963F300E04E0BFABE8EC6CB /* SDWebImage */ = { + 266E28E647F70CA52FA8E54A41C150C6 /* ChameleonFramework */ = { isa = PBXGroup; children = ( - 372D956F2910BA17C1EA89C2F1DB6337 /* Core */, - BFD15A7943E513F8F44DF18974AABED5 /* Support Files */, + F70AECF279372D4F5818229CD53EBE2D /* Default */, + 23490FC4709A17FE75567BCC4A6E7F0F /* Support Files */, ); - path = SDWebImage; + path = ChameleonFramework; sourceTree = ""; }; - 20B56609144CE204DFA8221F742B2D76 /* Frameworks */ = { + 29DC22EAF1296C7886ECA3704AAD3093 /* Security */ = { isa = PBXGroup; children = ( - 9647B7B264950E4491614EDCA04BE81E /* iOS */, + 0548FC51C30DA6BA6A5CD9BAA8ECC879 /* AFSecurityPolicy.h */, + 0C9432229A2D2E8D7B1339B6FCE39B08 /* AFSecurityPolicy.m */, ); - name = Frameworks; + name = Security; sourceTree = ""; }; - 372D956F2910BA17C1EA89C2F1DB6337 /* Core */ = { + 2A23C0A3C752A894BC28FF0765851596 /* Serialization */ = { isa = PBXGroup; children = ( - 3C2A8059BB067700E7CF9AB733273230 /* NSData+ImageContentType.h */, - 99368DF2D677613AD7167C03C9A37A1F /* NSData+ImageContentType.m */, - BD10FD63B1F2E3EFD1CB91DB4ADC7B8F /* SDImageCache.h */, - 05B6626CFEA016FD3686FD61AACB99E2 /* SDImageCache.m */, - DD5F57CC97DDA8D1E51B8EDDD831DEEB /* SDWebImageCompat.h */, - E81879C879F8B7A7A0EC74D6D418300D /* SDWebImageCompat.m */, - 6B114A3846AD55D8643F2E94E1BEEE1F /* SDWebImageDecoder.h */, - C9AB49A41BBB4BA3BEC7DCB7B2EFCBC3 /* SDWebImageDecoder.m */, - 7C4EB543532C4B3D99C7318F6656A511 /* SDWebImageDownloader.h */, - 1C6742BFF027BED2775A8DAE34160C11 /* SDWebImageDownloader.m */, - 2180619517DEB62C3A471DB211D8581E /* SDWebImageDownloaderOperation.h */, - D57F9E761FCADDA381E71051C9B745C8 /* SDWebImageDownloaderOperation.m */, - 4148F9CF08249453966BAE8386A12D8E /* SDWebImageManager.h */, - 73A10ACDA6882A9C61137D287679E10E /* SDWebImageManager.m */, - 5F2F69722304A7D87A94A1AD628A8BC7 /* SDWebImageOperation.h */, - 1B10EEA72D3D415F007B508C41C303C6 /* SDWebImagePrefetcher.h */, - 4961AF5D2E8F5D6F461F2A295A9DDEDD /* SDWebImagePrefetcher.m */, - 39B3902B2B8899153E334515F7E3A670 /* UIButton+WebCache.h */, - D48F91F4DA72C043D337A71BC3D798BE /* UIButton+WebCache.m */, - A93C96500F819366DC994F801AEE156D /* UIImage+GIF.h */, - 2CCF7F19CBF343BEAB190F6A3D8590B0 /* UIImage+GIF.m */, - 7E05420F43E2C534BC664F46764FF978 /* UIImage+MultiFormat.h */, - 52D2AF0410FBB0492ED1ED06A9B4B752 /* UIImage+MultiFormat.m */, - BA868DBAB3092447E3A8D571B56EB0FC /* UIImageView+HighlightedWebCache.h */, - 16A668F868EB2FE7FC611AA59BC1144A /* UIImageView+HighlightedWebCache.m */, - 8BADA9BC1A98AEC4A52530476FBBA596 /* UIImageView+WebCache.h */, - 07EE69ECDEA7693EF03DE91C167A68EE /* UIImageView+WebCache.m */, - 6E5FAB8B8E3988DBA96FB1320C41D43D /* UIView+WebCacheOperation.h */, - 4B9FA0477764F043CF5D8C90B0807754 /* UIView+WebCacheOperation.m */, + 4C1D56168357FBA6F995515CF005A94F /* AFURLRequestSerialization.h */, + 1A66B0E8FA78C381B0F7ECE70A5ED69D /* AFURLRequestSerialization.m */, + 1684D4556D43287C736258444195B29C /* AFURLResponseSerialization.h */, + 24C1F326D69F202E5391182C8199EA1C /* AFURLResponseSerialization.m */, ); - name = Core; + name = Serialization; sourceTree = ""; }; - 3AE8755C865672DA17A09452BF1AD080 /* Pods */ = { + 405545D026BE28B54B2EE45D2E942C6D /* Support Files */ = { isa = PBXGroup; children = ( - 97836865BB9684C1F4D998745EB5EE07 /* ChameleonFramework */, - 0BFA9893B963F300E04E0BFABE8EC6CB /* SDWebImage */, - 6A0AF6A79026BA21BE796F10A52FEDB2 /* SIAlertView */, + A1E782472E43D6E684C78520E0B31936 /* Info.plist */, + F5B6DF504037B1523126C71C6386DCD9 /* SDWebImage.modulemap */, + 4D7681B7F660CCAC139F2E4A99B16D1E /* SDWebImage.xcconfig */, + A9BE151AA560C3E90597FE53A05954A7 /* SDWebImage-dummy.m */, + D3E9928D614F687AE64723D366E4C025 /* SDWebImage-prefix.pch */, + 0222DD3060B4FDB5F67C0B9E73EF62E4 /* SDWebImage-umbrella.h */, ); - name = Pods; + name = "Support Files"; + path = "../Target Support Files/SDWebImage"; sourceTree = ""; }; - 5B57F17104329E226EF5A886DE8C031F /* Products */ = { + 50CA3C815548D8CA4FFFFC34D66643D6 /* iOS */ = { isa = PBXGroup; children = ( - E787B2673C56F863935372445FE396EC /* ChameleonFramework.framework */, - D5A92D9C314D4A27EEA01A7F12F40FE9 /* Pods.framework */, - 7D3C51596B4824B86054F307CC3B43A4 /* SDWebImage.framework */, - B0F3B0ECBE06A73D571E06AC8C71F856 /* SIAlertView.framework */, + 6EEC0CA412D7FB80A0AB6CD28BD7C44E /* CoreGraphics.framework */, + E69C6C2578C5EE54655B31E8BD7F779B /* Foundation.framework */, + 40182B7FF44217D3F633FF36BE3E4831 /* ImageIO.framework */, + 6944ED9DFD7B5B9887BDA5FDA5193EF3 /* MobileCoreServices.framework */, + 1441BB11E4761F1BC04D6C0E00872AEC /* QuartzCore.framework */, + 5F7B9818167212F7413F0950564EDA45 /* Security.framework */, + AEE6A3B7D517C1E9D060E13F636167F0 /* SystemConfiguration.framework */, + 8A566ABA6EE8D60B1990A0F955E25E76 /* UIKit.framework */, ); - name = Products; + name = iOS; sourceTree = ""; }; - 6A0AF6A79026BA21BE796F10A52FEDB2 /* SIAlertView */ = { + 5797A23E100940F524B9CDD398914EC5 /* UIKit */ = { isa = PBXGroup; children = ( - D7A4494FDCCE7F35E230B327EDEFE974 /* SIAlertView.h */, - FA01E5115F18442BDD74FDDC1234044F /* SIAlertView.m */, - 86702652BDD6F821C60BE40D0E6E8714 /* Resources */, - ECCC83203329A5E78422864DCD0E3E13 /* Support Files */, + A0E0F24194609FBC5961FE88B29BADF0 /* AFAutoPurgingImageCache.h */, + AB0FE5062FDEF326A4028F2F7D543045 /* AFAutoPurgingImageCache.m */, + 92A6631228DA9142C15A208B112CBE85 /* AFImageDownloader.h */, + 4A42091A5CF7ACF7633FE12F30B5A96E /* AFImageDownloader.m */, + 3678A579063EE57B009031ECAB496DAB /* AFNetworkActivityIndicatorManager.h */, + 5A8808E8D69DB0F13C7D17978C1115D5 /* AFNetworkActivityIndicatorManager.m */, + 13F0254858ED1938ED0DDDC534E0AFC7 /* UIActivityIndicatorView+AFNetworking.h */, + F5502E8D9885E107FB9D917CBD17C9CA /* UIActivityIndicatorView+AFNetworking.m */, + 69B22AD40C656C5C8EF7BC256A3AAC50 /* UIButton+AFNetworking.h */, + 00928814FCF3BC55D5493A10707B40CB /* UIButton+AFNetworking.m */, + F9B6FE84AFEF2AD2006E42F29AA5F117 /* UIImage+AFNetworking.h */, + 29391A1EC984788CE098CAED891CB388 /* UIImageView+AFNetworking.h */, + 05149083EA6274F979042D7B5A1BE849 /* UIImageView+AFNetworking.m */, + 77F5211664F5579DF283409D0A987B58 /* UIKit+AFNetworking.h */, + A1D4AD56677F149286A0500097D6A092 /* UIProgressView+AFNetworking.h */, + C2F1201EEE0CA2057A3219FF00CC9BFA /* UIProgressView+AFNetworking.m */, + 0256C091480F0D741C7251028BD1FCF1 /* UIRefreshControl+AFNetworking.h */, + 8AD17CF93C3CD37548ACAB340BD0B279 /* UIRefreshControl+AFNetworking.m */, + 94071DEE80170761AD89A23DAD197E95 /* UIWebView+AFNetworking.h */, + D0FEAA2EA123F086A95DE4443024BD5E /* UIWebView+AFNetworking.m */, ); - path = SIAlertView; + name = UIKit; + sourceTree = ""; + }; + 69001B73BC89C4419DA782EE8005EFB5 /* Reachability */ = { + isa = PBXGroup; + children = ( + 8C933923BF252C9E19340FF630BA1D5F /* AFNetworkReachabilityManager.h */, + AB99830EE90188AF93FA50631EA5E1CD /* AFNetworkReachabilityManager.m */, + ); + name = Reachability; sourceTree = ""; }; 75D98FF52E597A11900E131B6C4E1ADA /* Pods */ = { @@ -367,119 +514,182 @@ path = "Target Support Files/Pods"; sourceTree = ""; }; + 785553737B06AFC3DA711DDEB7D56194 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 50CA3C815548D8CA4FFFFC34D66643D6 /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; 7DB346D0F39D3F0E887471402A8071AB = { isa = PBXGroup; children = ( BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, - 20B56609144CE204DFA8221F742B2D76 /* Frameworks */, - 3AE8755C865672DA17A09452BF1AD080 /* Pods */, - 5B57F17104329E226EF5A886DE8C031F /* Products */, + 785553737B06AFC3DA711DDEB7D56194 /* Frameworks */, + 12FF1B0D18F052F63614B7EEC50105E5 /* Pods */, + DAC06A2E43582354E7B862D3D23312D8 /* Products */, B7B80995527643776607AFFA75B91E24 /* Targets Support Files */, ); sourceTree = ""; }; - 86702652BDD6F821C60BE40D0E6E8714 /* Resources */ = { + B519D279A67361AB74C228B713353CDF /* Core */ = { isa = PBXGroup; children = ( - 4A241A44A2A762A519BF9A0E80540E3B /* SIAlertView.bundle */, + 14B310D1EE4EEAB229349E0FB55039EA /* NSData+ImageContentType.h */, + DF7D3CD05575BD1BC15ED5C4B09B7D35 /* NSData+ImageContentType.m */, + 96F35AD2449B9CB67A2ECC7726EE2A32 /* SDImageCache.h */, + 79F636878B51E135C2796D04FF25FFD9 /* SDImageCache.m */, + DBEB0DA0ECC4FCD504E89FE705872E88 /* SDWebImageCompat.h */, + 79DA00548D047B39D7865C7FB8F4CA45 /* SDWebImageCompat.m */, + 261824B849239DE2DFF2B95C452EC74C /* SDWebImageDecoder.h */, + E07B6ECF12F149E697A66A3C985463AF /* SDWebImageDecoder.m */, + A2BD16ECE03FDEF2DC51C919647943D5 /* SDWebImageDownloader.h */, + 79C6BE498D9F6870CF1E2565FFACFB10 /* SDWebImageDownloader.m */, + E4F4A9D5372ED87B652AF325B765CB3B /* SDWebImageDownloaderOperation.h */, + 3AC26E4849C4688AB2833C0203BD5EFD /* SDWebImageDownloaderOperation.m */, + 7254B6EBAAA3E58D8E0BD374F0AB6A26 /* SDWebImageManager.h */, + 061891051576CD0D66997B91A922A3C1 /* SDWebImageManager.m */, + 86BD1FB960BE84CCA878F92E5A3CF958 /* SDWebImageOperation.h */, + D75CEC495D289B978D7FC3454DFA2A64 /* SDWebImagePrefetcher.h */, + F45CBFA61BA8D483714567618CC670FE /* SDWebImagePrefetcher.m */, + A59E5B619A049EBE85BA63D35F3EB6B0 /* UIButton+WebCache.h */, + AF2DD425FF9D3D40F9BBDEC2097BFC2C /* UIButton+WebCache.m */, + 8559AD718FB3DDF73F7E35A6030BEE57 /* UIImage+GIF.h */, + 19DDE813B74AB915ED3F8EE1B38E8188 /* UIImage+GIF.m */, + A3CA95455AD72EA80ABD1A120C4650E1 /* UIImage+MultiFormat.h */, + 3B8B39F9BFE1B49BAD4FFE8014C78C0F /* UIImage+MultiFormat.m */, + 36480C55417C1CE218EDC8C29D6DE27B /* UIImageView+HighlightedWebCache.h */, + EA4A2816CC27CC81B26803660B5DF9C4 /* UIImageView+HighlightedWebCache.m */, + 2E69F80FBF41C5991FCEAFDD3F7D2998 /* UIImageView+WebCache.h */, + DB8A82F916E40BB68E0A31C09766D5BE /* UIImageView+WebCache.m */, + C8AF67C0E1630C70E3C2C13563B6C01F /* UIView+WebCacheOperation.h */, + 8986E57FEDECCECA19D6F456A7F810DF /* UIView+WebCacheOperation.m */, ); - name = Resources; + name = Core; sourceTree = ""; }; - 8D175D969D70CD0A47B374C37234C0C6 /* Default */ = { + B7B80995527643776607AFFA75B91E24 /* Targets Support Files */ = { isa = PBXGroup; children = ( - 5DAA3520457BC2876CD6EE44F44ED48F /* Chameleon.h */, - 801CA98FD26D5B8668B9D8A9AA2F8675 /* Chameleon_.h */, - 5491386D355164B4A7D77C4192A101B2 /* Chameleon_.m */, - D055FD8546FD0A7A7F2A866580DF6D70 /* ChameleonConstants.h */, - 13F33452E7DC73D25C439B3EE161031D /* ChameleonConstants.m */, - 2BFAA85DE14D98A2D89E73EF8F7E28D9 /* ChameleonEnums.h */, - E53E3E29FA4700206FA5FCE7A2D5AA44 /* ChameleonMacros.h */, - E7EF91A108BE27CCDBAEF91859A5FC65 /* NSArray+Chameleon.h */, - C067BD59DA173E53658568A11190B2D1 /* NSArray+Chameleon.m */, - DC210CBCF7423A03CCD47F4835F0D226 /* UIAppearance+Swift.h */, - 323CD44DF03F1F5045E03EC34F5ADA19 /* UIAppearance+Swift.m */, - B377F543EA9E012D3A444C40E1074E91 /* UIButton+Chameleon.h */, - 8C6C303A9A42A4A94E4148BE2BC34128 /* UIButton+Chameleon.m */, - FAEC9EFD902EF361F4F57B9D54EC4088 /* UIColor+Chameleon.h */, - 303DC378B147C2CEC758E6A49E7BAB60 /* UIColor+Chameleon.m */, - BF81A64ACF93AA31F448375E3EFB3C24 /* UIColor+ChameleonPrivate.h */, - BAD43AB689B4F2A3D0DBB9D143BB5B7A /* UIColor+ChameleonPrivate.m */, - A76ECD2AFC40633C73EC2AAD6C9171AB /* UIImage+ChameleonPrivate.h */, - CAB7932EAA38777C3906E3B72C4362B6 /* UIImage+ChameleonPrivate.m */, - 0456970BABB1A1EDC722A8AB50ECC984 /* UILabel+Chameleon.h */, - 0DE61DA631F337D8F2B46D2071A8F1A7 /* UILabel+Chameleon.m */, - D58CC7A9560BB1E5D129554FD0EF75E3 /* UINavigationController+Chameleon.h */, - 6F98DF1B98D00EB385CE11FA9296CCAC /* UINavigationController+Chameleon.m */, - D0D38C3553BA1AA28F201ED777AB34A8 /* UIView+ChameleonPrivate.h */, - 0C03E9B90B8517EB74BC3D82B8FE79E1 /* UIView+ChameleonPrivate.m */, - 0F92368F678D13E3714EFA343FB2A783 /* UIViewController+Chameleon.h */, - BB16B50F79890948FBA2D720CD014F83 /* UIViewController+Chameleon.m */, + 75D98FF52E597A11900E131B6C4E1ADA /* Pods */, ); - name = Default; + name = "Targets Support Files"; sourceTree = ""; }; - 9647B7B264950E4491614EDCA04BE81E /* iOS */ = { + B9B60A1312696EE0FD7EDD089BD7A3BC /* SDWebImage */ = { isa = PBXGroup; children = ( - 727D930779DA5D7AF5E2A2E0E434F345 /* CoreGraphics.framework */, - DC40B9DD184C5B299E211E323331ED14 /* Foundation.framework */, - 62E04B0A969E8434BEFC2CEBECA0E25B /* ImageIO.framework */, - 909806AA2C930889B394D2D7097600B6 /* QuartzCore.framework */, - 1A77E87BE879DB03C9F4B2A9216335D9 /* UIKit.framework */, + B519D279A67361AB74C228B713353CDF /* Core */, + 405545D026BE28B54B2EE45D2E942C6D /* Support Files */, ); - name = iOS; + path = SDWebImage; sourceTree = ""; }; - 97836865BB9684C1F4D998745EB5EE07 /* ChameleonFramework */ = { + CB4F1CE2D0137DCFEA4A405493E3E6DC /* Resources */ = { isa = PBXGroup; children = ( - 8D175D969D70CD0A47B374C37234C0C6 /* Default */, - 010779B0885904EF03D5BAEF03B3EF69 /* Support Files */, + F904731712EE1E15DE07E4A384C387D0 /* SIAlertView.bundle */, ); - path = ChameleonFramework; + name = Resources; sourceTree = ""; }; - B7B80995527643776607AFFA75B91E24 /* Targets Support Files */ = { + D183D1ADD9F21EAD429BEE97DF8B9789 /* Support Files */ = { isa = PBXGroup; children = ( - 75D98FF52E597A11900E131B6C4E1ADA /* Pods */, + 92895F469B2B958606141683B6F5DA1A /* Info.plist */, + A91DF00F58D2CD70592F12FAC84D3BC2 /* SIAlertView.modulemap */, + F9486A437875BAA795DFEA8396B82E3D /* SIAlertView.xcconfig */, + D6DFDBCA26FE67CFAAF748ACE2B398CC /* SIAlertView-dummy.m */, + 87BCB10DAAAEF784FA72C9B3BF4A0AB0 /* SIAlertView-prefix.pch */, + C002D5796E8DC72B699FBFD7CB0C2E83 /* SIAlertView-umbrella.h */, ); - name = "Targets Support Files"; + name = "Support Files"; + path = "../Target Support Files/SIAlertView"; sourceTree = ""; }; - BFD15A7943E513F8F44DF18974AABED5 /* Support Files */ = { + D245BEF9BCC0DD6A1D3ED96A61511EB4 /* AFNetworking */ = { isa = PBXGroup; children = ( - DC2C8737CFE936E50525FE0826432E57 /* Info.plist */, - 9AC7C5589D67942308F8C2180119BACB /* SDWebImage.modulemap */, - 8C5C7FFDF288D227885A14D3662ACC3A /* SDWebImage.xcconfig */, - 6982EAB876A02A41D6D03F18B685B0F2 /* SDWebImage-dummy.m */, - 2B839ED944C88F364EFAC861BEECB11F /* SDWebImage-prefix.pch */, - 91610C6C6E0405467D4B4D22DCB1774B /* SDWebImage-umbrella.h */, + 09B5CAD28C440E32969A20EE7E7BE9D9 /* AFNetworking.h */, + FD79642518C50C08534DD3DDC842A8AE /* NSURLSession */, + 69001B73BC89C4419DA782EE8005EFB5 /* Reachability */, + 29DC22EAF1296C7886ECA3704AAD3093 /* Security */, + 2A23C0A3C752A894BC28FF0765851596 /* Serialization */, + 10D0CF7566B1073CA2E9CFF57727C539 /* Support Files */, + 5797A23E100940F524B9CDD398914EC5 /* UIKit */, ); - name = "Support Files"; - path = "../Target Support Files/SDWebImage"; + path = AFNetworking; sourceTree = ""; }; - ECCC83203329A5E78422864DCD0E3E13 /* Support Files */ = { + DAC06A2E43582354E7B862D3D23312D8 /* Products */ = { isa = PBXGroup; children = ( - AD7249A5ABDB5E18FE5C7AF8C1608B2F /* Info.plist */, - 88AA6AB048B3414135DD0F53DAF7C62D /* SIAlertView.modulemap */, - 5679F61C93FA06AE85AD74EB0A841753 /* SIAlertView.xcconfig */, - 5F6AF9BE66813C632656F360AA424150 /* SIAlertView-dummy.m */, - 51281CFF0C2A6E54812EB0174765EA1E /* SIAlertView-prefix.pch */, - 7BB881DE45F24AC18F6BD8395BA7F8F5 /* SIAlertView-umbrella.h */, + 8E65E6E1484B97F7902E3B3A737FC3C1 /* AFNetworking.framework */, + 19858785CC92C12C9FC67C1A3C448B71 /* ChameleonFramework.framework */, + 460B6F09D8F4B5F3B88C9D288514D92A /* Pods.framework */, + F003BD3E21CB9DB7488F151BE3608260 /* SDWebImage.framework */, + F31677979CB7EFFAA1EB9BBE0FA2330B /* SIAlertView.framework */, ); - name = "Support Files"; - path = "../Target Support Files/SIAlertView"; + name = Products; + sourceTree = ""; + }; + F70AECF279372D4F5818229CD53EBE2D /* Default */ = { + isa = PBXGroup; + children = ( + 9758519051975CBBF187957B9F45CD4A /* Chameleon.h */, + 91E576039DB210C4C22154E3648739A1 /* Chameleon_.h */, + 222696BBCD1EADA99117A5586F2182C4 /* Chameleon_.m */, + 5C924B0030AA0F805839E520FEBDA66C /* ChameleonConstants.h */, + FE7083BC499DDD66A7582D2C7478E2A7 /* ChameleonConstants.m */, + 6186E72B27ED368B2B15B2E59E9874CC /* ChameleonEnums.h */, + 4F6A620F784540CCAC8826D3F35BC267 /* ChameleonMacros.h */, + B3B3288E024D0F755C575B7D8450B667 /* NSArray+Chameleon.h */, + 40FEEC272573BE197E4BBB1FC139FDC2 /* NSArray+Chameleon.m */, + 045A0795AD66897AA232937311DCDD7B /* UIAppearance+Swift.h */, + 5E2E35694543CC52199588655D064843 /* UIAppearance+Swift.m */, + 4C9ED7629FB1AB491D321D2665095792 /* UIButton+Chameleon.h */, + 7BF8991AAEDDC5F26734BCAC875F4A7B /* UIButton+Chameleon.m */, + 3E892333521B02CED2C188199C4FC260 /* UIColor+Chameleon.h */, + 47331CFA95DE5A83D806E6213F4C871B /* UIColor+Chameleon.m */, + A00447FDCEB071E39255C79188E58FE7 /* UIColor+ChameleonPrivate.h */, + BE4DF15D2CD93F28E93E0255333E8AF2 /* UIColor+ChameleonPrivate.m */, + 6DF518081FD49CFD1C5E46CC45689EAA /* UIImage+ChameleonPrivate.h */, + 32D2B7187E8CD92B370BDED591331791 /* UIImage+ChameleonPrivate.m */, + 1AE55F1DC9E05C9F1B8AEC331057C952 /* UILabel+Chameleon.h */, + D9D179FF755EFD14DAE003FDB957D3ED /* UILabel+Chameleon.m */, + FA1A10E040B375EF112B41C4A0F58516 /* UINavigationController+Chameleon.h */, + 9E308322DA038B33575B3583CA0798A8 /* UINavigationController+Chameleon.m */, + 6E142146DAE6D0F0F7D44656D80C9D6B /* UIView+ChameleonPrivate.h */, + B0156B96EE5A7F87BC5F7D5D68C45AE7 /* UIView+ChameleonPrivate.m */, + 301EE93398BD24FF57949ADFAC7555E5 /* UIViewController+Chameleon.h */, + 292B12936E492B93444D42044987B350 /* UIViewController+Chameleon.m */, + ); + name = Default; + sourceTree = ""; + }; + FD79642518C50C08534DD3DDC842A8AE /* NSURLSession */ = { + isa = PBXGroup; + children = ( + 07AD017890591F8499F271B6A80DDA76 /* AFHTTPSessionManager.h */, + 63B9F6CD8068797152C94DC8221A170A /* AFHTTPSessionManager.m */, + 671E7BEAD7E869CB593B71038B4DE327 /* AFURLSessionManager.h */, + 27F4E4B5EA42C02400CF305F1468B26C /* AFURLSessionManager.m */, + ); + name = NSURLSession; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ + 21AB9F16B3D90A4367B8ECDC9DBD6CB4 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7AF712E95A1110B47775A10777DA6CFE /* Pods-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 40F639DE65D946A85FEBA9C514E7C1F4 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -503,85 +713,103 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 635271FC5D52F54819C80A2BFA337B88 /* Headers */ = { + 4BECEFD0377C4335C2B6E45810E955BA /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 6A5341B140DDD23A98FE35D1F0D7F1E1 /* NSData+ImageContentType.h in Headers */, - 2445B317E0DC60B3F5D77378BB506397 /* SDImageCache.h in Headers */, - B8CEB43EA5BD878837FF5EACC5EEF129 /* SDWebImage-umbrella.h in Headers */, - 47AA23417A685F05101D15EC460CB47D /* SDWebImageCompat.h in Headers */, - BD13937D6C14769537A8C2500DD04FBE /* SDWebImageDecoder.h in Headers */, - 37CC739F61F0CFC3A1683437D43434D7 /* SDWebImageDownloader.h in Headers */, - BE77048A297D0556E37EA7E204BA5014 /* SDWebImageDownloaderOperation.h in Headers */, - DBFEDCE004FCD8CB19250B521B35D531 /* SDWebImageManager.h in Headers */, - AF60D02AC1A46C24879EF9695AB56E73 /* SDWebImageOperation.h in Headers */, - 163DB6CC013CEBBD45937C92B13814C7 /* SDWebImagePrefetcher.h in Headers */, - B17E7DBB9CAA675D3D5284FB518969CF /* UIButton+WebCache.h in Headers */, - 6AE6E45376A8AA254180D4BC783364F2 /* UIImage+GIF.h in Headers */, - 15C0CB40F4D15C81E735F4DBAC4E1A61 /* UIImage+MultiFormat.h in Headers */, - 78938D3A6C0594E00EAF7B7C08096F3E /* UIImageView+HighlightedWebCache.h in Headers */, - DA28C2BF038E9128C7BD68A4C70544B5 /* UIImageView+WebCache.h in Headers */, - 05E2FF2E083CC870EBFF437DC41A838A /* UIView+WebCacheOperation.h in Headers */, + C4D89B2B2A66551C30E50AA6277B490B /* SIAlertView-umbrella.h in Headers */, + 1584A0B442DA93BF1AF49A8D82432AF4 /* SIAlertView.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; - D30B6D36A36AD6297D23D2022AB93E04 /* Headers */ = { + 7C6A0D99A9CC32A19A92A62F8A941139 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 533A479FC58F45247F1ECFCAA79D7B74 /* SIAlertView-umbrella.h in Headers */, - 5FDB921B4BC34F0DC8D49F0EE09AA480 /* SIAlertView.h in Headers */, + CAC483EF637FB4A2C2E2FC75BA631B87 /* AFAutoPurgingImageCache.h in Headers */, + AB39AC9746E7575D7449700475E41B0B /* AFHTTPSessionManager.h in Headers */, + 5808B477EFF509D810B5CDCFDC944F80 /* AFImageDownloader.h in Headers */, + 1480F4923DBBF217F60572EEECB4027C /* AFNetworkActivityIndicatorManager.h in Headers */, + EC7CADE416A78A1CD6936018A6695126 /* AFNetworking-umbrella.h in Headers */, + E7988678C81F7CCB95D239375FC6986D /* AFNetworking.h in Headers */, + 68152D921ABF6A423C192C04FDF94F0F /* AFNetworkReachabilityManager.h in Headers */, + C2DD28375E1F0B1D0D1D2E4E607C499F /* AFSecurityPolicy.h in Headers */, + 20EE8030FCF2402DAC7F1C9B9DDAEF79 /* AFURLRequestSerialization.h in Headers */, + 7332F15718920917F544F35CE2C038AA /* AFURLResponseSerialization.h in Headers */, + 560698A4D707DCBCC1C8F98BC9B89B23 /* AFURLSessionManager.h in Headers */, + 1E5B8F12ED7CC40ECDB9B1F755F387E5 /* UIActivityIndicatorView+AFNetworking.h in Headers */, + 81B617F8D26BB10C5726D75E85D21EB7 /* UIButton+AFNetworking.h in Headers */, + 9E1E90DED74B73ECE53C9AD76DE53E2D /* UIImage+AFNetworking.h in Headers */, + 60E3009342BEE96D32C546BE2DB60052 /* UIImageView+AFNetworking.h in Headers */, + 659960F7E28E993E08CCC1E8A383E710 /* UIKit+AFNetworking.h in Headers */, + D9F4E833E37B611B432F6B5D7072DDA2 /* UIProgressView+AFNetworking.h in Headers */, + C6354FEC7728A4C86DAD8092509BA7D4 /* UIRefreshControl+AFNetworking.h in Headers */, + AE2A07407FB50BA249984DC0620E84C0 /* UIWebView+AFNetworking.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; - F74F4825CBC3A760DD01F1C517EF3B35 /* Headers */ = { + ED1DBE69C009B1DEF41FF44193AB584C /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - F7AF361257539E785C16CDF250B3F24E /* Pods-umbrella.h in Headers */, + 10F4AA3E8A1DE840EB69CDA0CD0BE848 /* NSData+ImageContentType.h in Headers */, + C0F98157BC58FC156904C9198FDFC712 /* SDImageCache.h in Headers */, + 1A19A456017D2EB235DA00961A8A664F /* SDWebImage-umbrella.h in Headers */, + 21D927B42CB12293E5E57756F9F5D943 /* SDWebImageCompat.h in Headers */, + 3751DD3EE60E97490755E539B619A01C /* SDWebImageDecoder.h in Headers */, + 932E320A9BBD2B15F8823A2AF7382C2F /* SDWebImageDownloader.h in Headers */, + F20F6CEB143FB1C11261424DBD6684B9 /* SDWebImageDownloaderOperation.h in Headers */, + 4605EEF216A3BAC0CC1F6F5F133A80CE /* SDWebImageManager.h in Headers */, + CDF0F982DFF346BC5CBB44DDD15AE9DA /* SDWebImageOperation.h in Headers */, + 59DCF5EA20D577A83170787EB14A7C5B /* SDWebImagePrefetcher.h in Headers */, + 99C65AA7B2590E1151C5342409E4FD7B /* UIButton+WebCache.h in Headers */, + 5A6D94B2D866B061E659E29D8B332063 /* UIImage+GIF.h in Headers */, + 8AAC2FBF0DE93A078EBDEFF92CF0D4F7 /* UIImage+MultiFormat.h in Headers */, + C5A569BD6FD764853397C8C6DCF32AD3 /* UIImageView+HighlightedWebCache.h in Headers */, + A9EF5BAE4367A92E58C3BAE6B97E849B /* UIImageView+WebCache.h in Headers */, + BF2143417C483F5D9D794113D5051BF0 /* UIView+WebCacheOperation.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 09A888AC56EE9BB177A9FA20643D5E61 /* Pods */ = { + 1C3436CEA5C3D39764C5F54374794ECB /* AFNetworking */ = { isa = PBXNativeTarget; - buildConfigurationList = 1BDACAFDCE7FE2AF9FBF11B0A2F03EDF /* Build configuration list for PBXNativeTarget "Pods" */; + buildConfigurationList = 57800A0D1724774333EF09E83030AA81 /* Build configuration list for PBXNativeTarget "AFNetworking" */; buildPhases = ( - F852B36CC2264988E7D050F34936360A /* Sources */, - 0239C14B2A8FE20E25913C475FF3946D /* Frameworks */, - F74F4825CBC3A760DD01F1C517EF3B35 /* Headers */, + 1F17F426378DF5EC8DFB10304B8C4BA4 /* Sources */, + C151364F15F39F7CC60CBF9A3AB49B44 /* Frameworks */, + 7C6A0D99A9CC32A19A92A62F8A941139 /* Headers */, ); buildRules = ( ); dependencies = ( - 68D0BF7CF5C02EF22CD88596B6F8F944 /* PBXTargetDependency */, - 41B07F21BA912842883444874539FBEC /* PBXTargetDependency */, - 5D2AEC7D99CE8F52AFB59B0D28C23AEA /* PBXTargetDependency */, ); - name = Pods; - productName = Pods; - productReference = D5A92D9C314D4A27EEA01A7F12F40FE9 /* Pods.framework */; + name = AFNetworking; + productName = AFNetworking; + productReference = 8E65E6E1484B97F7902E3B3A737FC3C1 /* AFNetworking.framework */; productType = "com.apple.product-type.framework"; }; - 78280BD3EB57665A70DF98916878FF61 /* SIAlertView */ = { + 6E803FEE2E9A15DD81D02620FD16AC5B /* Pods */ = { isa = PBXNativeTarget; - buildConfigurationList = 1DEF5193581676080DDC0F6CE0C44151 /* Build configuration list for PBXNativeTarget "SIAlertView" */; + buildConfigurationList = 82A4C7A608BCE950E0EDB91562C64979 /* Build configuration list for PBXNativeTarget "Pods" */; buildPhases = ( - 61074DC8BD1F4D03834B874E7F3BC998 /* Sources */, - E3C9CF92D02394D858841EC9EE0A8872 /* Frameworks */, - D30B6D36A36AD6297D23D2022AB93E04 /* Headers */, - 86DAAA64843375007729EFF081D1BE0D /* Resources */, + BC3F84363C8739E9797B2CC91A9B561B /* Sources */, + 1F704B335FE4D11FE6DDC33D41D2CE38 /* Frameworks */, + 21AB9F16B3D90A4367B8ECDC9DBD6CB4 /* Headers */, ); buildRules = ( ); dependencies = ( + BD49CD9083D8BF6A703DD12FE5D1ACFF /* PBXTargetDependency */, + 95640556C9C51694907A2B03FBDAA79F /* PBXTargetDependency */, + 76715492F935BADEFB551E4ED96BC2EF /* PBXTargetDependency */, + BC221AA9E7B5ABAA8A8D172B8EC4F1AE /* PBXTargetDependency */, ); - name = SIAlertView; - productName = SIAlertView; - productReference = B0F3B0ECBE06A73D571E06AC8C71F856 /* SIAlertView.framework */; + name = Pods; + productName = Pods; + productReference = 460B6F09D8F4B5F3B88C9D288514D92A /* Pods.framework */; productType = "com.apple.product-type.framework"; }; 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */ = { @@ -598,16 +826,16 @@ ); name = ChameleonFramework; productName = ChameleonFramework; - productReference = E787B2673C56F863935372445FE396EC /* ChameleonFramework.framework */; + productReference = 19858785CC92C12C9FC67C1A3C448B71 /* ChameleonFramework.framework */; productType = "com.apple.product-type.framework"; }; - 9CFE1178BAA3ECC927676193BABF0180 /* SDWebImage */ = { + B288D3B845DF95DB82ED94BED76C6960 /* SDWebImage */ = { isa = PBXNativeTarget; - buildConfigurationList = DEFF6EBE266E0BB993668B659772B7CF /* Build configuration list for PBXNativeTarget "SDWebImage" */; + buildConfigurationList = F88F3E78659566AF8FF03C461B5393F4 /* Build configuration list for PBXNativeTarget "SDWebImage" */; buildPhases = ( - 1D570DFF87F558649E7D244877302BA9 /* Sources */, - 11D73249C3DF8FAFAEA86651250575F7 /* Frameworks */, - 635271FC5D52F54819C80A2BFA337B88 /* Headers */, + FAFA922A1C6837EC2F214D40C59FA585 /* Sources */, + D77C2CE6331C3B56EF41780CCF490502 /* Frameworks */, + ED1DBE69C009B1DEF41FF44193AB584C /* Headers */, ); buildRules = ( ); @@ -615,7 +843,25 @@ ); name = SDWebImage; productName = SDWebImage; - productReference = 7D3C51596B4824B86054F307CC3B43A4 /* SDWebImage.framework */; + productReference = F003BD3E21CB9DB7488F151BE3608260 /* SDWebImage.framework */; + productType = "com.apple.product-type.framework"; + }; + F4A7EEEFE72653B329822E7F980DEB17 /* SIAlertView */ = { + isa = PBXNativeTarget; + buildConfigurationList = F50F318150C6D07FFB8D7FF0AFD126DF /* Build configuration list for PBXNativeTarget "SIAlertView" */; + buildPhases = ( + 4A4E0D0A41F0C1BD3C804F761DBBACC2 /* Sources */, + DA18E87D6E7AACB2B2024ECD4CFDD0E6 /* Frameworks */, + 4BECEFD0377C4335C2B6E45810E955BA /* Headers */, + 8872033A7E1D09CB5901202389465E4A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SIAlertView; + productName = SIAlertView; + productReference = F31677979CB7EFFAA1EB9BBE0FA2330B /* SIAlertView.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ @@ -635,58 +881,60 @@ en, ); mainGroup = 7DB346D0F39D3F0E887471402A8071AB; - productRefGroup = 5B57F17104329E226EF5A886DE8C031F /* Products */; + productRefGroup = DAC06A2E43582354E7B862D3D23312D8 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( + 1C3436CEA5C3D39764C5F54374794ECB /* AFNetworking */, 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */, - 09A888AC56EE9BB177A9FA20643D5E61 /* Pods */, - 9CFE1178BAA3ECC927676193BABF0180 /* SDWebImage */, - 78280BD3EB57665A70DF98916878FF61 /* SIAlertView */, + 6E803FEE2E9A15DD81D02620FD16AC5B /* Pods */, + B288D3B845DF95DB82ED94BED76C6960 /* SDWebImage */, + F4A7EEEFE72653B329822E7F980DEB17 /* SIAlertView */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 86DAAA64843375007729EFF081D1BE0D /* Resources */ = { + 8872033A7E1D09CB5901202389465E4A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 02C1675874157E02BA65CD6E5395FBED /* SIAlertView.bundle in Resources */, + 3997DB2DDBBA43002E76791E759AD67F /* SIAlertView.bundle in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 1D570DFF87F558649E7D244877302BA9 /* Sources */ = { + 1F17F426378DF5EC8DFB10304B8C4BA4 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 89A9A4C02E18C33AAA979B6AF4AF17BC /* NSData+ImageContentType.m in Sources */, - 496EAAD1C143A65A472E3608A304B9ED /* SDImageCache.m in Sources */, - 4EB05894369FE44A1888EE54C5759C6D /* SDWebImage-dummy.m in Sources */, - 188A57B8E96DE5B6B33CFF9C204280BE /* SDWebImageCompat.m in Sources */, - D4ED219E7003518D7BD507679F744B70 /* SDWebImageDecoder.m in Sources */, - D275DA2188BB5140497E48CD91898F50 /* SDWebImageDownloader.m in Sources */, - 6A18459365A7A4D7194E44485E438FB1 /* SDWebImageDownloaderOperation.m in Sources */, - 8DF9CF0E92A3F3F2C528297BFE5C07FE /* SDWebImageManager.m in Sources */, - A5F9AC13FA6BF01E6F3B499700F155F4 /* SDWebImagePrefetcher.m in Sources */, - BE598F51B12A56E284BB006CE53FA59C /* UIButton+WebCache.m in Sources */, - 4C7693E445B4CB82373B51070BF02A25 /* UIImage+GIF.m in Sources */, - DFFBF54E1E95B95E735FC750027A188F /* UIImage+MultiFormat.m in Sources */, - E76CD2E17767B7762E43508844DF60B8 /* UIImageView+HighlightedWebCache.m in Sources */, - 8065167822F2EDEEF0E2FE0B96E2E070 /* UIImageView+WebCache.m in Sources */, - BB81DFA16158411B513CDFA52A5E64D9 /* UIView+WebCacheOperation.m in Sources */, + 3F1BC9BAFFEEABB1ABC7614DF0FC97D5 /* AFAutoPurgingImageCache.m in Sources */, + E0D4045AC4C1B41917FCA23A042D18B2 /* AFHTTPSessionManager.m in Sources */, + CFA8D6B529A0EBFF0316F2629AB2556E /* AFImageDownloader.m in Sources */, + A6C6019D45BE62C61210A9CC619368EF /* AFNetworkActivityIndicatorManager.m in Sources */, + 3D2789FC760A97301909F0B1201626CD /* AFNetworking-dummy.m in Sources */, + 68A38977EBAE334DC3C22386D00D2622 /* AFNetworkReachabilityManager.m in Sources */, + 20607BE2B1E5F31765026E5AC64DB27D /* AFSecurityPolicy.m in Sources */, + DFFA215EEAA8DDBD540076927535275C /* AFURLRequestSerialization.m in Sources */, + B5852322ADE88AAD56EE042B80BA81E4 /* AFURLResponseSerialization.m in Sources */, + 707B1A7541C8DBDDE8C27896A61370BE /* AFURLSessionManager.m in Sources */, + 6ED4ABEE8A5F51F5ECB59FA1781D29C6 /* UIActivityIndicatorView+AFNetworking.m in Sources */, + AF03C11A1FAC8132AD3749D8F541701A /* UIButton+AFNetworking.m in Sources */, + 2E8A32ED46194EDBE22146271F6D26DE /* UIImageView+AFNetworking.m in Sources */, + 5FF6453E55785669885F626B853FD2AA /* UIProgressView+AFNetworking.m in Sources */, + 174202BD6AE0E4A41F5CE66E975EAE52 /* UIRefreshControl+AFNetworking.m in Sources */, + A462945883F7729B185B64B679A6BFBE /* UIWebView+AFNetworking.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 61074DC8BD1F4D03834B874E7F3BC998 /* Sources */ = { + 4A4E0D0A41F0C1BD3C804F761DBBACC2 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 7D170DF0FF9019D90823DD77B84B7EF0 /* SIAlertView-dummy.m in Sources */, - 57746C807D65489603A9A03D31D83A16 /* SIAlertView.m in Sources */, + 0B7BBE1823A00619148E2C6CF9BDEA2C /* SIAlertView-dummy.m in Sources */, + 8D261B47DAB28AB33C79C140A39EA3F8 /* SIAlertView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -710,41 +958,69 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - F852B36CC2264988E7D050F34936360A /* Sources */ = { + BC3F84363C8739E9797B2CC91A9B561B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4FEB67CF6D76321459C7DF80EE6F92CD /* Pods-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + FAFA922A1C6837EC2F214D40C59FA585 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 0B4D8B848DF0CE45617056CD9B7D91A3 /* Pods-dummy.m in Sources */, + E98AA3E890BE4D11B192EB37F6A4408C /* NSData+ImageContentType.m in Sources */, + E5A4261DB22000B4610387FA7BE880E3 /* SDImageCache.m in Sources */, + 233031A4C2D25B3DD6515CC3C3FEA4F8 /* SDWebImage-dummy.m in Sources */, + 9F10DE788137C16984164B6EA67B27EF /* SDWebImageCompat.m in Sources */, + 131F64370D44DB8EAF6D1046ED2CFB3A /* SDWebImageDecoder.m in Sources */, + 0BCEB4526A2E5952C5A58A347D6C3D06 /* SDWebImageDownloader.m in Sources */, + 5E1AB9270BCE9081098EDB82F9A8B511 /* SDWebImageDownloaderOperation.m in Sources */, + 5C65C36731C43213CDF68B10802AA2DB /* SDWebImageManager.m in Sources */, + 6497DED0C01B70FA6A79A4FC392EE473 /* SDWebImagePrefetcher.m in Sources */, + E1A9C067A09E9F17BEE220DD68EBCFC8 /* UIButton+WebCache.m in Sources */, + 63460DFE31F42291286A2B2BB53A8553 /* UIImage+GIF.m in Sources */, + 13AE3036636034BB4E50A218D3EE27CD /* UIImage+MultiFormat.m in Sources */, + B8721458CA3A54F8241D117A718A08AE /* UIImageView+HighlightedWebCache.m in Sources */, + 9DFA471A792EF016C2F1A672CF10CEBE /* UIImageView+WebCache.m in Sources */, + 3CC775A00BF15E8E6B6E495741E64A85 /* UIView+WebCacheOperation.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 41B07F21BA912842883444874539FBEC /* PBXTargetDependency */ = { + 76715492F935BADEFB551E4ED96BC2EF /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = SDWebImage; - target = 9CFE1178BAA3ECC927676193BABF0180 /* SDWebImage */; - targetProxy = B3A708E5D4937B9CD243D59B720582B0 /* PBXContainerItemProxy */; + target = B288D3B845DF95DB82ED94BED76C6960 /* SDWebImage */; + targetProxy = 87BBC3CF8F5719970699DD53DEB01BAD /* PBXContainerItemProxy */; + }; + 95640556C9C51694907A2B03FBDAA79F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = ChameleonFramework; + target = 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */; + targetProxy = E8795D0ED7A3D25C79B7F86CB32E1437 /* PBXContainerItemProxy */; }; - 5D2AEC7D99CE8F52AFB59B0D28C23AEA /* PBXTargetDependency */ = { + BC221AA9E7B5ABAA8A8D172B8EC4F1AE /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = SIAlertView; - target = 78280BD3EB57665A70DF98916878FF61 /* SIAlertView */; - targetProxy = ADCAD8858D72088BA4F65801802F23B6 /* PBXContainerItemProxy */; + target = F4A7EEEFE72653B329822E7F980DEB17 /* SIAlertView */; + targetProxy = 21B1BF1CE89E3A0058A7A1C4A9D0254F /* PBXContainerItemProxy */; }; - 68D0BF7CF5C02EF22CD88596B6F8F944 /* PBXTargetDependency */ = { + BD49CD9083D8BF6A703DD12FE5D1ACFF /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = ChameleonFramework; - target = 9B57F4EE4746045CEAE2D933A3C8EC9E /* ChameleonFramework */; - targetProxy = 547E597616AD1AAE25C84C6200EBC85F /* PBXContainerItemProxy */; + name = AFNetworking; + target = 1C3436CEA5C3D39764C5F54374794ECB /* AFNetworking */; + targetProxy = A42011885E18F4AE5EA18396A9CB26C6 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ 0B5D563BF2710D60DE742D336E8B2033 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B7CD527CB1518E502ED2A6D47B20D620 /* ChameleonFramework.xcconfig */; + baseConfigurationReference = 77B67B56422B56FC9502C450AD6AABA0 /* ChameleonFramework.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -771,7 +1047,7 @@ }; 32D9715C38DF7558D7169BD6DA3D6586 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B7CD527CB1518E502ED2A6D47B20D620 /* ChameleonFramework.xcconfig */; + baseConfigurationReference = 77B67B56422B56FC9502C450AD6AABA0 /* ChameleonFramework.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -796,7 +1072,7 @@ }; name = Release; }; - 4F818E5BF4AE05DC0BD372EE276C3EE0 /* Release */ = { + 81BDF4D1C815B1B241AB05259E621D63 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = DA312349A49333542E6F4B36B329960E /* Pods.release.xcconfig */; buildSettings = { @@ -826,48 +1102,36 @@ }; name = Release; }; - 9EB645C612834738B99727720210C23E /* Debug */ = { + 939844BA2F3145A178F677BD3A16C350 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = F9486A437875BAA795DFEA8396B82E3D /* SIAlertView.xcconfig */; buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/SIAlertView/SIAlertView-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/SIAlertView/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.1; - ONLY_ACTIVE_ARCH = YES; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/SIAlertView/SIAlertView.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = SIAlertView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; }; - name = Debug; + name = Release; }; - C09EB08EFC8A833494447E0556D0A156 /* Debug */ = { + 94FBD736C6FE11D5D827D73D1D053D05 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */; + baseConfigurationReference = 893A794918CF5C97A5D11D3F131F9F57 /* AFNetworking.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -876,28 +1140,25 @@ DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods/Info.plist"; + GCC_PREFIX_HEADER = "Target Support Files/AFNetworking/AFNetworking-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/AFNetworking/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods/Pods.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods; + MODULEMAP_FILE = "Target Support Files/AFNetworking/AFNetworking.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = AFNetworking; SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; - name = Debug; + name = Release; }; - C13B8D72DD312C7A08A4996BEE90AB08 /* Release */ = { + 993F4C81BF62BA1916F3808216C7A5F9 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8C5C7FFDF288D227885A14D3662ACC3A /* SDWebImage.xcconfig */; + baseConfigurationReference = 4D7681B7F660CCAC139F2E4A99B16D1E /* SDWebImage.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -922,9 +1183,48 @@ }; name = Release; }; - DC3EB43D95858A2418799DFE814F3943 /* Debug */ = { + 9EB645C612834738B99727720210C23E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8C5C7FFDF288D227885A14D3662ACC3A /* SDWebImage.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + ONLY_ACTIVE_ARCH = YES; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + B8B7E75EEC9B1A716DCB133B30AE41EE /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4D7681B7F660CCAC139F2E4A99B16D1E /* SDWebImage.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -949,9 +1249,9 @@ }; name = Debug; }; - DC8E7C902D748E9FE2E2F87D2A3A41B8 /* Debug */ = { + C887752198ABE1F29935C2718E933EAC /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5679F61C93FA06AE85AD74EB0A841753 /* SIAlertView.xcconfig */; + baseConfigurationReference = 893A794918CF5C97A5D11D3F131F9F57 /* AFNetworking.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -960,14 +1260,14 @@ DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/SIAlertView/SIAlertView-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/SIAlertView/Info.plist"; + GCC_PREFIX_HEADER = "Target Support Files/AFNetworking/AFNetworking-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/AFNetworking/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/SIAlertView/SIAlertView.modulemap"; + MODULEMAP_FILE = "Target Support Files/AFNetworking/AFNetworking.modulemap"; MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = SIAlertView; + PRODUCT_NAME = AFNetworking; SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -1010,9 +1310,39 @@ }; name = Release; }; - F55CF408B2550F721A0593829BCF4804 /* Release */ = { + EA2A44D378A01FD36B885CC9BDF92F68 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5679F61C93FA06AE85AD74EB0A841753 /* SIAlertView.xcconfig */; + baseConfigurationReference = 977577C045EDA9D9D1F46E2598D19FC7 /* Pods.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + INFOPLIST_FILE = "Target Support Files/Pods/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods/Pods.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_NAME = Pods; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + F5AECEA9DABEC880AEAF6F3FD2EB06E6 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F9486A437875BAA795DFEA8396B82E3D /* SIAlertView.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; @@ -1027,7 +1357,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = "Target Support Files/SIAlertView/SIAlertView.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; + MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_NAME = SIAlertView; SDKROOT = iphoneos; SKIP_INSTALL = YES; @@ -1035,7 +1365,7 @@ VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; - name = Release; + name = Debug; }; /* End XCBuildConfiguration section */ @@ -1049,38 +1379,47 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 1BDACAFDCE7FE2AF9FBF11B0A2F03EDF /* Build configuration list for PBXNativeTarget "Pods" */ = { + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { isa = XCConfigurationList; buildConfigurations = ( - C09EB08EFC8A833494447E0556D0A156 /* Debug */, - 4F818E5BF4AE05DC0BD372EE276C3EE0 /* Release */, + 9EB645C612834738B99727720210C23E /* Debug */, + E39CD1E764776175CB82EEC82A6C9948 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 1DEF5193581676080DDC0F6CE0C44151 /* Build configuration list for PBXNativeTarget "SIAlertView" */ = { + 57800A0D1724774333EF09E83030AA81 /* Build configuration list for PBXNativeTarget "AFNetworking" */ = { isa = XCConfigurationList; buildConfigurations = ( - DC8E7C902D748E9FE2E2F87D2A3A41B8 /* Debug */, - F55CF408B2550F721A0593829BCF4804 /* Release */, + C887752198ABE1F29935C2718E933EAC /* Debug */, + 94FBD736C6FE11D5D827D73D1D053D05 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + 82A4C7A608BCE950E0EDB91562C64979 /* Build configuration list for PBXNativeTarget "Pods" */ = { isa = XCConfigurationList; buildConfigurations = ( - 9EB645C612834738B99727720210C23E /* Debug */, - E39CD1E764776175CB82EEC82A6C9948 /* Release */, + EA2A44D378A01FD36B885CC9BDF92F68 /* Debug */, + 81BDF4D1C815B1B241AB05259E621D63 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F50F318150C6D07FFB8D7FF0AFD126DF /* Build configuration list for PBXNativeTarget "SIAlertView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F5AECEA9DABEC880AEAF6F3FD2EB06E6 /* Debug */, + 939844BA2F3145A178F677BD3A16C350 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DEFF6EBE266E0BB993668B659772B7CF /* Build configuration list for PBXNativeTarget "SDWebImage" */ = { + F88F3E78659566AF8FF03C461B5393F4 /* Build configuration list for PBXNativeTarget "SDWebImage" */ = { isa = XCConfigurationList; buildConfigurations = ( - DC3EB43D95858A2418799DFE814F3943 /* Debug */, - C13B8D72DD312C7A08A4996BEE90AB08 /* Release */, + B8B7E75EEC9B1A716DCB133B30AE41EE /* Debug */, + 993F4C81BF62BA1916F3808216C7A5F9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m new file mode 100644 index 0000000..6a29cf8 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_AFNetworking : NSObject +@end +@implementation PodsDummy_AFNetworking +@end diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch new file mode 100644 index 0000000..b52cf0d --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch @@ -0,0 +1,15 @@ +#ifdef __OBJC__ +#import +#endif + +#ifndef TARGET_OS_IOS + #define TARGET_OS_IOS TARGET_OS_IPHONE +#endif + +#ifndef TARGET_OS_WATCH + #define TARGET_OS_WATCH 0 +#endif + +#ifndef TARGET_OS_TV + #define TARGET_OS_TV 0 +#endif diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-umbrella.h b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-umbrella.h new file mode 100644 index 0000000..a0f6f34 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking-umbrella.h @@ -0,0 +1,24 @@ +#import + +#import "AFNetworking.h" +#import "AFHTTPSessionManager.h" +#import "AFURLSessionManager.h" +#import "AFNetworkReachabilityManager.h" +#import "AFSecurityPolicy.h" +#import "AFURLRequestSerialization.h" +#import "AFURLResponseSerialization.h" +#import "AFAutoPurgingImageCache.h" +#import "AFImageDownloader.h" +#import "AFNetworkActivityIndicatorManager.h" +#import "UIActivityIndicatorView+AFNetworking.h" +#import "UIButton+AFNetworking.h" +#import "UIImage+AFNetworking.h" +#import "UIImageView+AFNetworking.h" +#import "UIKit+AFNetworking.h" +#import "UIProgressView+AFNetworking.h" +#import "UIRefreshControl+AFNetworking.h" +#import "UIWebView+AFNetworking.h" + +FOUNDATION_EXPORT double AFNetworkingVersionNumber; +FOUNDATION_EXPORT const unsigned char AFNetworkingVersionString[]; + diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.modulemap b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.modulemap new file mode 100644 index 0000000..5892cd3 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.modulemap @@ -0,0 +1,6 @@ +framework module AFNetworking { + umbrella header "AFNetworking-umbrella.h" + + export * + module * { export * } +} diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig new file mode 100644 index 0000000..95fce75 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig @@ -0,0 +1,5 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" +OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" +PODS_ROOT = ${SRCROOT} +SKIP_INSTALL = YES \ No newline at end of file diff --git a/HeadsUpper/Pods/Target Support Files/AFNetworking/Info.plist b/HeadsUpper/Pods/Target Support Files/AFNetworking/Info.plist new file mode 100644 index 0000000..c8db180 --- /dev/null +++ b/HeadsUpper/Pods/Target Support Files/AFNetworking/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 3.0.4 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown index fd77e27..53df0ea 100644 --- a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown @@ -1,6 +1,29 @@ # Acknowledgements This application makes use of the following third party libraries: +## AFNetworking + +Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + ## ChameleonFramework ##The MIT License (MIT) diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist index 72aa642..32c39e4 100644 --- a/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-acknowledgements.plist @@ -12,6 +12,33 @@ Type PSGroupSpecifier + + FooterText + Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + Title + AFNetworking + Type + PSGroupSpecifier + FooterText ##The MIT License (MIT) diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh b/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh index 73c80ac..88c948b 100755 --- a/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods-frameworks.sh @@ -84,11 +84,13 @@ strip_invalid_archs() { if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "Pods/AFNetworking.framework" install_framework "Pods/ChameleonFramework.framework" install_framework "Pods/SDWebImage.framework" install_framework "Pods/SIAlertView.framework" fi if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "Pods/AFNetworking.framework" install_framework "Pods/ChameleonFramework.framework" install_framework "Pods/SDWebImage.framework" install_framework "Pods/SIAlertView.framework" diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig b/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig index 03e94b7..c64fc47 100644 --- a/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods.debug.xcconfig @@ -1,6 +1,6 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SDWebImage.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "ChameleonFramework" -framework "SDWebImage" -framework "SIAlertView" +OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SDWebImage.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "ChameleonFramework" -framework "SDWebImage" -framework "SIAlertView" PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig b/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig index 03e94b7..c64fc47 100644 --- a/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig +++ b/HeadsUpper/Pods/Target Support Files/Pods/Pods.release.xcconfig @@ -1,6 +1,6 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SDWebImage.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "ChameleonFramework" -framework "SDWebImage" -framework "SIAlertView" +OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/ChameleonFramework.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SDWebImage.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/SIAlertView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "ChameleonFramework" -framework "SDWebImage" -framework "SIAlertView" PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file From 17ba64812411ab4dea3cb59ded5122b8568cee21 Mon Sep 17 00:00:00 2001 From: Henna Date: Sun, 21 Feb 2016 17:54:51 -0500 Subject: [PATCH 4/4] setting image to blank on next guess --- HeadsUpper/.DS_Store | Bin 6148 -> 6148 bytes HeadsUpper/HeadsUpper/ViewController.m | 1 + 2 files changed, 1 insertion(+) diff --git a/HeadsUpper/.DS_Store b/HeadsUpper/.DS_Store index bd0020f9a0280ea7973eae477c4ef42dee0db1f5..14b43a6c0b2a94f8814148e2ff5b75351f352e47 100644 GIT binary patch delta 14 VcmZoMXffDe&CFP_*@pRq2mmAW1fBo@ delta 14 VcmZoMXffDe&CJ-m*@pRq2mmBD1gQW3 diff --git a/HeadsUpper/HeadsUpper/ViewController.m b/HeadsUpper/HeadsUpper/ViewController.m index 0b7f13e..f3ea235 100644 --- a/HeadsUpper/HeadsUpper/ViewController.m +++ b/HeadsUpper/HeadsUpper/ViewController.m @@ -92,6 +92,7 @@ - (void) handleSwipe: (UISwipeGestureRecognizer *) gesture { -(void) showNextGuess{ NSString *currGuess = self.answers[self.whichAnswerAreWeAt]; + self.backgroundImage.image = nil; self.guess.text = currGuess; NSString * url = [[NSString stringWithFormat:@"http://api.duckduckgo.com/?q=%@&format=json", currGuess] stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding];