Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'deploy/1.2.1' into productive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Feb 17, 2017
2 parents 2c12e3a + 2049145 commit a6dd505
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions HandyUIKit.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"

Expand Down
12 changes: 5 additions & 7 deletions HandyUIKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@
TargetAttributes = {
A14E0ABB1E1F986A00DFC788 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 767S6EFMJ8;
LastSwiftMigration = 0820;
ProvisioningStyle = Automatic;
};
Expand All @@ -316,7 +315,6 @@
};
A14E0ADA1E1F987C00DFC788 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 767S6EFMJ8;
LastSwiftMigration = 0820;
ProvisioningStyle = Automatic;
};
Expand Down Expand Up @@ -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 */

Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ alt="Build Status">
alt="codebeat badge">
</a>
<a href="https://github.com/Flinesoft/HandyUIKit/releases">
<img src="https://img.shields.io/badge/Version-1.2.0-blue.svg"
alt="Version: 1.2.0">
<img src="https://img.shields.io/badge/Version-1.2.1-blue.svg"
alt="Version: 1.2.1">
</a>
<img src="https://img.shields.io/badge/Swift-3.0-FFAC45.svg"
alt="Swift: 3.0">
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions Sources/Code/Extensions/UIColorExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>1.2.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit a6dd505

Please sign in to comment.