Skip to content

Commit

Permalink
add project Scratch Card
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdon committed Dec 26, 2017
1 parent 1ba5d48 commit 7f9b3d8
Show file tree
Hide file tree
Showing 25 changed files with 954 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@
# Parallax Scrolling
![Parallax Scrolling](Resources/ParallaxScrolling.gif)

[Blog](https://ios.devdon.com/archives/987) / [Source Code]()
[Blog](https://ios.devdon.com/archives/987) / [Source Code](https://github.com/slamdon/Swift-Layout-Animation-Transition-30days/tree/master/ParallaxScrolling)

# Scratch Card
![Scratch Card](Resources/ScratchCard.gif)

[Blog]() / [Source Code]()
Binary file added Resources/ScratchCard.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/ScratchCard.mov
Binary file not shown.
355 changes: 355 additions & 0 deletions ScratchCard/ScratchCard.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,355 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {

/* Begin PBXBuildFile section */
1A51587E1FF1CB2300210A21 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A51587D1FF1CB2300210A21 /* AppDelegate.swift */; };
1A5158831FF1CB2300210A21 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A5158811FF1CB2300210A21 /* Main.storyboard */; };
1A5158851FF1CB2300210A21 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1A5158841FF1CB2300210A21 /* Assets.xcassets */; };
1A5158881FF1CB2300210A21 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A5158861FF1CB2300210A21 /* LaunchScreen.storyboard */; };
1A5158921FF1CB3F00210A21 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A5158901FF1CB3F00210A21 /* HomeViewController.swift */; };
1A5158931FF1CB3F00210A21 /* HomeViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1A5158911FF1CB3F00210A21 /* HomeViewController.xib */; };
1A5158961FF1CEBD00210A21 /* SKScratchCardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A5158951FF1CEBD00210A21 /* SKScratchCardView.swift */; };
1AB939EE1FF215F90097DF3F /* SKScratchCardMaskView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AB939ED1FF215F90097DF3F /* SKScratchCardMaskView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1A51587A1FF1CB2300210A21 /* ScratchCard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ScratchCard.app; sourceTree = BUILT_PRODUCTS_DIR; };
1A51587D1FF1CB2300210A21 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
1A5158821FF1CB2300210A21 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
1A5158841FF1CB2300210A21 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
1A5158871FF1CB2300210A21 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
1A5158891FF1CB2300210A21 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
1A5158901FF1CB3F00210A21 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; };
1A5158911FF1CB3F00210A21 /* HomeViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeViewController.xib; sourceTree = "<group>"; };
1A5158951FF1CEBD00210A21 /* SKScratchCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SKScratchCardView.swift; sourceTree = "<group>"; };
1AB939ED1FF215F90097DF3F /* SKScratchCardMaskView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SKScratchCardMaskView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
1A5158771FF1CB2300210A21 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
1A5158711FF1CB2300210A21 = {
isa = PBXGroup;
children = (
1A51587C1FF1CB2300210A21 /* ScratchCard */,
1A51587B1FF1CB2300210A21 /* Products */,
);
sourceTree = "<group>";
};
1A51587B1FF1CB2300210A21 /* Products */ = {
isa = PBXGroup;
children = (
1A51587A1FF1CB2300210A21 /* ScratchCard.app */,
);
name = Products;
sourceTree = "<group>";
};
1A51587C1FF1CB2300210A21 /* ScratchCard */ = {
isa = PBXGroup;
children = (
1A51587D1FF1CB2300210A21 /* AppDelegate.swift */,
1A5158941FF1CEAC00210A21 /* SKScratchCardView */,
1A51588F1FF1CB2E00210A21 /* ViewController */,
1A5158811FF1CB2300210A21 /* Main.storyboard */,
1A5158841FF1CB2300210A21 /* Assets.xcassets */,
1A5158861FF1CB2300210A21 /* LaunchScreen.storyboard */,
1A5158891FF1CB2300210A21 /* Info.plist */,
);
path = ScratchCard;
sourceTree = "<group>";
};
1A51588F1FF1CB2E00210A21 /* ViewController */ = {
isa = PBXGroup;
children = (
1A5158901FF1CB3F00210A21 /* HomeViewController.swift */,
1A5158911FF1CB3F00210A21 /* HomeViewController.xib */,
);
path = ViewController;
sourceTree = "<group>";
};
1A5158941FF1CEAC00210A21 /* SKScratchCardView */ = {
isa = PBXGroup;
children = (
1A5158951FF1CEBD00210A21 /* SKScratchCardView.swift */,
1AB939ED1FF215F90097DF3F /* SKScratchCardMaskView.swift */,
);
path = SKScratchCardView;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
1A5158791FF1CB2300210A21 /* ScratchCard */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1A51588C1FF1CB2300210A21 /* Build configuration list for PBXNativeTarget "ScratchCard" */;
buildPhases = (
1A5158761FF1CB2300210A21 /* Sources */,
1A5158771FF1CB2300210A21 /* Frameworks */,
1A5158781FF1CB2300210A21 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = ScratchCard;
productName = ScratchCard;
productReference = 1A51587A1FF1CB2300210A21 /* ScratchCard.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
1A5158721FF1CB2300210A21 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 0920;
ORGANIZATIONNAME = "Don Chen";
TargetAttributes = {
1A5158791FF1CB2300210A21 = {
CreatedOnToolsVersion = 9.2;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 1A5158751FF1CB2300210A21 /* Build configuration list for PBXProject "ScratchCard" */;
compatibilityVersion = "Xcode 8.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 1A5158711FF1CB2300210A21;
productRefGroup = 1A51587B1FF1CB2300210A21 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
1A5158791FF1CB2300210A21 /* ScratchCard */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
1A5158781FF1CB2300210A21 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A5158881FF1CB2300210A21 /* LaunchScreen.storyboard in Resources */,
1A5158851FF1CB2300210A21 /* Assets.xcassets in Resources */,
1A5158831FF1CB2300210A21 /* Main.storyboard in Resources */,
1A5158931FF1CB3F00210A21 /* HomeViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
1A5158761FF1CB2300210A21 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A5158961FF1CEBD00210A21 /* SKScratchCardView.swift in Sources */,
1AB939EE1FF215F90097DF3F /* SKScratchCardMaskView.swift in Sources */,
1A51587E1FF1CB2300210A21 /* AppDelegate.swift in Sources */,
1A5158921FF1CB3F00210A21 /* HomeViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
1A5158811FF1CB2300210A21 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
1A5158821FF1CB2300210A21 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
1A5158861FF1CB2300210A21 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
1A5158871FF1CB2300210A21 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
1A51588A1FF1CB2300210A21 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
1A51588B1FF1CB2300210A21 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
1A51588D1FF1CB2300210A21 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = DT8726CBX4;
INFOPLIST_FILE = ScratchCard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = ios.devdon.com.ScratchCard;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
1A51588E1FF1CB2300210A21 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = DT8726CBX4;
INFOPLIST_FILE = ScratchCard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = ios.devdon.com.ScratchCard;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
1A5158751FF1CB2300210A21 /* Build configuration list for PBXProject "ScratchCard" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1A51588A1FF1CB2300210A21 /* Debug */,
1A51588B1FF1CB2300210A21 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1A51588C1FF1CB2300210A21 /* Build configuration list for PBXNativeTarget "ScratchCard" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1A51588D1FF1CB2300210A21 /* Debug */,
1A51588E1FF1CB2300210A21 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 1A5158721FF1CB2300210A21 /* Project object */;
}

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

Loading

0 comments on commit 7f9b3d8

Please sign in to comment.