Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeJoe authored and JoeJoe committed Dec 15, 2016
1 parent 1831d8a commit b58e501
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 228 deletions.
16 changes: 8 additions & 8 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
B40A94AC1E0297F100D4550A /* ScratchCard.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B40A94AB1E0297F100D4550A /* ScratchCard.framework */; };
B40A94AD1E0297F500D4550A /* ScratchCard.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B40A94AB1E0297F100D4550A /* ScratchCard.framework */; };
B40A94AE1E0297F500D4550A /* ScratchCard.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B40A94AB1E0297F100D4550A /* ScratchCard.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
B4389DAD1DFFF7B100B3DDE4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4389DAC1DFFF7B100B3DDE4 /* AppDelegate.swift */; };
B4389DAF1DFFF7B100B3DDE4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4389DAE1DFFF7B100B3DDE4 /* ViewController.swift */; };
B4389DB21DFFF7B100B3DDE4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B4389DB01DFFF7B100B3DDE4 /* Main.storyboard */; };
Expand All @@ -15,9 +18,6 @@
B4389DC21DFFF7B100B3DDE4 /* ExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4389DC11DFFF7B100B3DDE4 /* ExampleTests.swift */; };
B4389DDB1DFFFC4C00B3DDE4 /* image.jpg in Resources */ = {isa = PBXBuildFile; fileRef = B4389DD91DFFFC4C00B3DDE4 /* image.jpg */; };
B4389DDC1DFFFC4C00B3DDE4 /* mask.png in Resources */ = {isa = PBXBuildFile; fileRef = B4389DDA1DFFFC4C00B3DDE4 /* mask.png */; };
B4A76CD91E01D9DD00A9D705 /* ScratchCard.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4A76CD81E01D9DD00A9D705 /* ScratchCard.framework */; };
B4A76CDA1E01D9E400A9D705 /* ScratchCard.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4A76CD81E01D9DD00A9D705 /* ScratchCard.framework */; };
B4A76CDB1E01D9E400A9D705 /* ScratchCard.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B4A76CD81E01D9DD00A9D705 /* ScratchCard.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -37,14 +37,15 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
B4A76CDB1E01D9E400A9D705 /* ScratchCard.framework in Embed Frameworks */,
B40A94AE1E0297F500D4550A /* ScratchCard.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
B40A94AB1E0297F100D4550A /* ScratchCard.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ScratchCard.framework; sourceTree = "<group>"; };
B4389DA91DFFF7B100B3DDE4 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
B4389DAC1DFFF7B100B3DDE4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
B4389DAE1DFFF7B100B3DDE4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand All @@ -57,16 +58,15 @@
B4389DC31DFFF7B100B3DDE4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B4389DD91DFFFC4C00B3DDE4 /* image.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image.jpg; sourceTree = "<group>"; };
B4389DDA1DFFFC4C00B3DDE4 /* mask.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mask.png; sourceTree = "<group>"; };
B4A76CD81E01D9DD00A9D705 /* ScratchCard.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ScratchCard.framework; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
B4389DA61DFFF7B100B3DDE4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B4A76CD91E01D9DD00A9D705 /* ScratchCard.framework in Frameworks */,
B4A76CDA1E01D9E400A9D705 /* ScratchCard.framework in Frameworks */,
B40A94AC1E0297F100D4550A /* ScratchCard.framework in Frameworks */,
B40A94AD1E0297F500D4550A /* ScratchCard.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -83,7 +83,7 @@
B4389DA01DFFF7B100B3DDE4 = {
isa = PBXGroup;
children = (
B4A76CD81E01D9DD00A9D705 /* ScratchCard.framework */,
B40A94AB1E0297F100D4550A /* ScratchCard.framework */,
B4389DAB1DFFF7B100B3DDE4 /* Example */,
B4389DC01DFFF7B100B3DDE4 /* ExampleTests */,
B4389DAA1DFFF7B100B3DDE4 /* Products */,
Expand Down
Binary file modified Example/ScratchCard.framework/ScratchCard
Binary file not shown.
216 changes: 0 additions & 216 deletions Example/ScratchCard.framework/_CodeSignature/CodeResources

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To use ScratchCard in your project add the following 'Podfile' to your project
platform :ios, '8.0'
use_frameworks!

pod 'ScratchCard', '~> 1.0.7
pod 'ScratchCard', '~> 1.0.8

Then run:

Expand Down
2 changes: 1 addition & 1 deletion ScratchCard.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ScratchCard"
s.version = "1.0.7"
s.version = "1.0.8"
s.license = "MIT"
s.summary = "A ScratchCard view on iOS(swift)."
s.homepage = "https://github.com/joehour/ScratchCard"
Expand Down
2 changes: 0 additions & 2 deletions ScratchCard/ScratchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ open class ScratchView: UIView {

override open func draw(_ rect: CGRect) {
UIGraphicsGetCurrentContext()?.saveGState()
UIGraphicsGetCurrentContext()?.translateBy(x: self.frame.origin.x, y: self.frame.origin.y)
UIGraphicsGetCurrentContext()?.translateBy(x: 0, y: self.frame.size.height)
UIGraphicsGetCurrentContext()?.scaleBy(x: 1.0, y: -1.0)
UIGraphicsGetCurrentContext()?.translateBy(x: -self.frame.origin.x, y: -self.frame.origin.y)
UIGraphicsGetCurrentContext()?.draw(scratched, in: self.frame)
UIGraphicsGetCurrentContext()?.restoreGState()
}
Expand Down

0 comments on commit b58e501

Please sign in to comment.