From 9fd14b08037b086140108c723ccec4b3b74625a9 Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Tue, 2 Jun 2015 09:38:16 -0300 Subject: [PATCH 1/3] Check for modules feature --- SCLAlertView/SCLAlertView.h | 4 ++++ SCLAlertView/SCLAlertView.m | 5 +++++ SCLAlertView/SCLAlertViewResponder.h | 4 ++++ SCLAlertView/SCLAlertViewStyleKit.h | 6 ++++++ SCLAlertView/SCLButton.h | 4 ++++ SCLAlertView/UIImage+ImageEffects.h | 4 ++++ SCLAlertView/UIImage+ImageEffects.m | 4 ++++ 7 files changed, 31 insertions(+) diff --git a/SCLAlertView/SCLAlertView.h b/SCLAlertView/SCLAlertView.h index 74f2d1c..d273dba 100755 --- a/SCLAlertView/SCLAlertView.h +++ b/SCLAlertView/SCLAlertView.h @@ -6,7 +6,11 @@ // Copyright (c) 2014 AnyKey Entertainment. All rights reserved. // +#if defined(__has_feature) && __has_feature(modules) @import UIKit; +#else +#import +#endif #import "SCLButton.h" typedef NSAttributedString* (^SCLAttributedFormatBlock)(NSString *value); diff --git a/SCLAlertView/SCLAlertView.m b/SCLAlertView/SCLAlertView.m index 977c49c..518e984 100755 --- a/SCLAlertView/SCLAlertView.m +++ b/SCLAlertView/SCLAlertView.m @@ -11,7 +11,12 @@ #import "SCLAlertViewStyleKit.h" #import "UIImage+ImageEffects.h" #import "SCLMacros.h" + +#if defined(__has_feature) && __has_feature(modules) @import AVFoundation; +#else +#import +#endif #define KEYBOARD_HEIGHT 80 #define PREDICTION_BAR_HEIGHT 40 diff --git a/SCLAlertView/SCLAlertViewResponder.h b/SCLAlertView/SCLAlertViewResponder.h index 81a11f3..eecaddf 100644 --- a/SCLAlertView/SCLAlertViewResponder.h +++ b/SCLAlertView/SCLAlertViewResponder.h @@ -6,7 +6,11 @@ // Copyright (c) 2014 AnyKey Entertainment. All rights reserved. // +#if defined(__has_feature) && __has_feature(modules) @import Foundation; +#else +#import +#endif #import "SCLAlertView.h" @interface SCLAlertViewResponder : NSObject diff --git a/SCLAlertView/SCLAlertViewStyleKit.h b/SCLAlertView/SCLAlertViewStyleKit.h index cac9f13..8c0209e 100644 --- a/SCLAlertView/SCLAlertViewStyleKit.h +++ b/SCLAlertView/SCLAlertViewStyleKit.h @@ -6,8 +6,14 @@ // Copyright (c) 2014 AnyKey Entertainment. All rights reserved. // +#if defined(__has_feature) && __has_feature(modules) @import Foundation; @import UIKit; +#else +#import +#import +#endif +#import "SCLButton.h" @interface SCLAlertViewStyleKit : NSObject diff --git a/SCLAlertView/SCLButton.h b/SCLAlertView/SCLButton.h index 29ca55c..f4253c6 100644 --- a/SCLAlertView/SCLButton.h +++ b/SCLAlertView/SCLButton.h @@ -6,7 +6,11 @@ // Copyright (c) 2014 AnyKey Entertainment. All rights reserved. // +#if defined(__has_feature) && __has_feature(modules) @import UIKit; +#else +#import +#endif @interface SCLButton : UIButton diff --git a/SCLAlertView/UIImage+ImageEffects.h b/SCLAlertView/UIImage+ImageEffects.h index 85aba44..e5fd509 100755 --- a/SCLAlertView/UIImage+ImageEffects.h +++ b/SCLAlertView/UIImage+ImageEffects.h @@ -93,7 +93,11 @@ 5/3/2013 */ +#if defined(__has_feature) && __has_feature(modules) @import UIKit; +#else +#import +#endif @interface UIImage (ImageEffects) diff --git a/SCLAlertView/UIImage+ImageEffects.m b/SCLAlertView/UIImage+ImageEffects.m index e4df3aa..280560e 100755 --- a/SCLAlertView/UIImage+ImageEffects.m +++ b/SCLAlertView/UIImage+ImageEffects.m @@ -96,7 +96,11 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF #import "UIImage+ImageEffects.h" #import "SCLMacros.h" +#if defined(__has_feature) && __has_feature(modules) @import Accelerate; +#else +#import +#endif #import From ab6968448f918215352e5186aecfde1f8c06e1ff Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Tue, 9 Jun 2015 12:33:50 -0300 Subject: [PATCH 2/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6ccba95..9aa6e79 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,9 @@ alert.iconTintColor = [UIColor purpleColor]; //Overwrite SCLAlertView background color alert.backgroundViewColor = [UIColor cyanColor]; +//Returns if the alert is visible or not. +alert.isVisible; + //Using sound alert.soundURL = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/right_answer.mp3", [[NSBundle mainBundle] resourcePath]]]; ``` From f4794f1302337be4a69ec1ded9e9fa98f4c67a80 Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Wed, 10 Jun 2015 15:58:36 -0300 Subject: [PATCH 3/3] Bump version --- SCLAlertView-Objective-C.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCLAlertView-Objective-C.podspec b/SCLAlertView-Objective-C.podspec index 2eece13..c69b45a 100644 --- a/SCLAlertView-Objective-C.podspec +++ b/SCLAlertView-Objective-C.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "SCLAlertView-Objective-C" - spec.version = "0.7.2" + spec.version = "0.7.3" spec.summary = "Beautiful animated Alert View. Written in Swift but ported to Objective-C" spec.homepage = "https://github.com/dogo/SCLAlertView" spec.screenshots = "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot.png", "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot2.png"