diff --git a/HandyUIKit.podspec b/HandyUIKit.podspec index fe65037..00cbb31 100644 --- a/HandyUIKit.podspec +++ b/HandyUIKit.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "HandyUIKit" - s.version = "1.2.0" + s.version = "1.2.1" s.summary = "Handy UI features that should have been part of UIKit in the first place." s.description = <<-DESC @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = "8.0" s.tvos.deployment_target = "9.0" - s.source = { :git => "https://github.com/Flinesoft/HandyUIKit.git", :tag => "1.2.0" } + s.source = { :git => "https://github.com/Flinesoft/HandyUIKit.git", :tag => "#{s.version}" } s.source_files = "Sources", "Sources/**/*.swift" s.framework = "UIKit" diff --git a/HandyUIKit.xcodeproj/project.pbxproj b/HandyUIKit.xcodeproj/project.pbxproj index d843aec..1bd5116 100644 --- a/HandyUIKit.xcodeproj/project.pbxproj +++ b/HandyUIKit.xcodeproj/project.pbxproj @@ -305,7 +305,6 @@ TargetAttributes = { A14E0ABB1E1F986A00DFC788 = { CreatedOnToolsVersion = 8.2.1; - DevelopmentTeam = 767S6EFMJ8; LastSwiftMigration = 0820; ProvisioningStyle = Automatic; }; @@ -316,7 +315,6 @@ }; A14E0ADA1E1F987C00DFC788 = { CreatedOnToolsVersion = 8.2.1; - DevelopmentTeam = 767S6EFMJ8; LastSwiftMigration = 0820; ProvisioningStyle = Automatic; }; @@ -405,7 +403,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if which swiftlint > /dev/null; then\n swiftlint\nelse\n echo \"SwiftLint not installed, download it from https://github.com/realm/SwiftLint\"\nfi"; + shellScript = "if [ \"${CONFIGURATION}\" = \"Debug\" ]; then\n if which swiftlint > /dev/null; then\n swiftlint\n else\n echo \"SwiftLint not installed, download it from https://github.com/realm/SwiftLint\"\n fi\nfi"; }; /* End PBXShellScriptBuildPhase section */ @@ -571,7 +569,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 767S6EFMJ8; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -593,7 +591,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 767S6EFMJ8; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -640,7 +638,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 767S6EFMJ8; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -664,7 +662,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 767S6EFMJ8; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; diff --git a/README.md b/README.md index 1aebfc7..9a8da23 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ alt="Build Status"> alt="codebeat badge"> - + Swift: 3.0 @@ -50,7 +50,7 @@ You can of course also just include this framework manually into your project by ### Carthage -Place one of the following lines to your Cartfile: +Place the following line to your Cartfile: ``` Swift github "Flinesoft/HandyUIKit" diff --git a/Sources/Code/Extensions/UIColorExtension.swift b/Sources/Code/Extensions/UIColorExtension.swift index f0d2610..61015e0 100644 --- a/Sources/Code/Extensions/UIColorExtension.swift +++ b/Sources/Code/Extensions/UIColorExtension.swift @@ -31,20 +31,20 @@ extension UIColor { // MARK: - Computed Properties /// The HLC & alpha attributes of the `UIColor` instance. - public var hlca: (hue: CGFloat, luminance: CGFloat, chroma: CGFloat, alpha: CGFloat) { + public var hlca: (hue: CGFloat, luminance: CGFloat, chroma: CGFloat, alpha: CGFloat) { // swiftlint:disable:this large_tuple let lch = rgbColor().toLCH() return (hue: lch.h / 360, luminance: lch.l / 100, chroma: lch.c / 128, alpha: lch.alpha) } /// The HSB & alpha attributes of the `UIColor` instance. - public var hsba: (hue: CGFloat, saturation: CGFloat, brightness: CGFloat, alpha: CGFloat) { + public var hsba: (hue: CGFloat, saturation: CGFloat, brightness: CGFloat, alpha: CGFloat) { // swiftlint:disable:this large_tuple var hsba: (hue: CGFloat, saturation: CGFloat, brightness: CGFloat, alpha: CGFloat) = (0, 0, 0, 0) getHue(&(hsba.hue), saturation: &(hsba.saturation), brightness: &(hsba.brightness), alpha: &(hsba.alpha)) return hsba } /// The RGB & alpha attributes of the `UIColor` instance. - public var rgba: (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) { + public var rgba: (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) { // swiftlint:disable:this large_tuple var rgba: (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) = (0, 0, 0, 0) getRed(&rgba.red, green: &rgba.green, blue: &rgba.blue, alpha: &rgba.alpha) return rgba diff --git a/Sources/Supporting Files/Info.plist b/Sources/Supporting Files/Info.plist index d7fb954..1e79e1d 100644 --- a/Sources/Supporting Files/Info.plist +++ b/Sources/Supporting Files/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.2.0 + 1.2.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass