Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to support Swift 2.3 #22

Merged
merged 2 commits into from
Oct 9, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Updates to support Swift 2.3
  • Loading branch information
dudash committed Oct 8, 2016
commit 0335ac704e761f54a99898a66e3e5c8937d61e17
6 changes: 6 additions & 0 deletions Example/LiquidLoader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -494,6 +496,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 2.3;
};
name = Debug;
};
Expand All @@ -507,6 +510,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 2.3;
};
name = Release;
};
Expand All @@ -527,6 +531,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 2.3;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LiquidLoader_Example.app/LiquidLoader_Example";
};
name = Debug;
Expand All @@ -544,6 +549,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 2.3;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LiquidLoader_Example.app/LiquidLoader_Example";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- LiquidLoader (0.1.1)
- LiquidLoader (1.2.1)

DEPENDENCIES:
- LiquidLoader (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
LiquidLoader: cf49954a6643f610c06a7db45da2da81a68a154b
LiquidLoader: 73adf4f43b260ecb9dae807064e566d72c629dfd

PODFILE CHECKSUM: 45161a1a5c5a941a9031074d8a3962f9f4583638

Expand Down
11 changes: 3 additions & 8 deletions Example/Pods/Local Podspecs/LiquidLoader.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

458 changes: 181 additions & 277 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Target Support Files/LiquidLoader/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 1 addition & 1 deletion Pod/Classes/CircularGradientLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class CircularGradientLayer : CALayer {
var locations = CGMath.linSpace(0.0, to: 1.0, n: colors.count)
locations = Array(locations.map { 1.0 - $0 * $0 }.reverse())
let gradients = CGGradientCreateWithColors(CGColorSpaceCreateDeviceRGB(), colors.map { $0.CGColor }, locations)
CGContextDrawRadialGradient(ctx, gradients, self.frame.center, CGFloat(0.0), self.frame.center, max(self.frame.width, self.frame.height), CGGradientDrawingOptions(rawValue: 10))
CGContextDrawRadialGradient(ctx, gradients!, self.frame.center, CGFloat(0.0), self.frame.center, max(self.frame.width, self.frame.height), CGGradientDrawingOptions(rawValue: 10))
}
}
4 changes: 2 additions & 2 deletions Pod/Classes/LiquidLoadEffect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class LiquidLoadEffect : NSObject {
}
resize()

timer = CADisplayLink(target: self, selector: "update")
timer = CADisplayLink(target: self, selector: #selector(LiquidLoadEffect.update))
timer?.addToRunLoop(NSRunLoop.mainRunLoop(), forMode: NSRunLoopCommonModes)
}

Expand Down Expand Up @@ -130,4 +130,4 @@ class LiquidLoadEffect : NSObject {
func stopTimer() {
timer?.invalidate()
}
}
}