diff --git a/SCLAlertView.podspec b/SCLAlertView.podspec index 90c3252..211375c 100644 --- a/SCLAlertView.podspec +++ b/SCLAlertView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SCLAlertView" - s.version = "0.5.6" + s.version = "0.5.7" s.summary = "Beautiful Alert View. Written in Swift" s.homepage = "https://github.com/vikmeup/SCLAlertView-Swift" s.screenshots = "https://raw.githubusercontent.com/vikmeup/SCPopUpView/master/errorScreenshot.png", "https://raw.githubusercontent.com/vikmeup/SCPopUpView/master/successScreenshot.png" diff --git a/SCLAlertView.xcodeproj/project.pbxproj b/SCLAlertView.xcodeproj/project.pbxproj index 9e43dcc..8cd8ccb 100644 --- a/SCLAlertView.xcodeproj/project.pbxproj +++ b/SCLAlertView.xcodeproj/project.pbxproj @@ -185,7 +185,7 @@ attributes = { LastSwiftMigration = 0700; LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0630; + LastUpgradeCheck = 0730; ORGANIZATIONNAME = "Alexey Poimtsev"; TargetAttributes = { 70264EF61B0F588700B32B18 = { @@ -287,6 +287,7 @@ CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -366,6 +367,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = ""; + PRODUCT_BUNDLE_IDENTIFIER = "com.alec-c4.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; }; @@ -383,6 +385,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = ""; + PRODUCT_BUNDLE_IDENTIFIER = "com.alec-c4.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; }; @@ -398,6 +401,7 @@ ); INFOPLIST_FILE = SCLAlertViewTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ""; + PRODUCT_BUNDLE_IDENTIFIER = "com.alec-c4.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -408,6 +412,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = SCLAlertViewTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ""; + PRODUCT_BUNDLE_IDENTIFIER = "com.alec-c4.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; diff --git a/SCLAlertView.xcodeproj/xcshareddata/xcschemes/SCLAlertView.xcscheme b/SCLAlertView.xcodeproj/xcshareddata/xcschemes/SCLAlertView.xcscheme index c533dfd..ca95d17 100644 --- a/SCLAlertView.xcodeproj/xcshareddata/xcschemes/SCLAlertView.xcscheme +++ b/SCLAlertView.xcodeproj/xcshareddata/xcschemes/SCLAlertView.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -62,15 +62,18 @@ ReferencedContainer = "container:SCLAlertView.xcodeproj"> + + CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.alec-c4.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/SCLAlertView/SCLAlertView.swift b/SCLAlertView/SCLAlertView.swift index 2cd9efb..5db9f69 100644 --- a/SCLAlertView/SCLAlertView.swift +++ b/SCLAlertView/SCLAlertView.swift @@ -455,7 +455,7 @@ public class SCLAlertView: UIViewController { var saturation : CGFloat = 0 var brightness : CGFloat = 0 var alpha : CGFloat = 0 - var pressBrightnessFactor = 0.85 + let pressBrightnessFactor = 0.85 btn.backgroundColor?.getHue(&hue, saturation: &saturation, brightness: &brightness, alpha: &alpha) brightness = brightness * CGFloat(pressBrightnessFactor) btn.backgroundColor = UIColor(hue: hue, saturation: saturation, brightness: brightness, alpha: alpha) diff --git a/SCLAlertViewTests/Info.plist b/SCLAlertViewTests/Info.plist index 87c33bc..ba72822 100644 --- a/SCLAlertViewTests/Info.plist +++ b/SCLAlertViewTests/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.alec-c4.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName