Skip to content

Commit

Permalink
CoreGraphics系列二:gradient和context
Browse files Browse the repository at this point in the history
  • Loading branch information
pro648 committed Oct 10, 2021
1 parent 3394e35 commit aa9b2e4
Show file tree
Hide file tree
Showing 16 changed files with 1,230 additions and 1 deletion.
370 changes: 370 additions & 0 deletions CoreGraphics-2/CoreGraphics-1.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
60073B262712B67F008F2B3E /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 60073B252712B67F008F2B3E /* README.md */; };
60B15F3726EDEB0F00DF2CE5 /* CounterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60B15F3626EDEB0F00DF2CE5 /* CounterView.swift */; };
60B759E726F55CD900F64E94 /* GraphView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60B759E626F55CD900F64E94 /* GraphView.swift */; };
60F2106B26E19FA8006395FE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60F2106A26E19FA8006395FE /* AppDelegate.swift */; };
60F2106D26E19FA8006395FE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60F2106C26E19FA8006395FE /* SceneDelegate.swift */; };
60F2106F26E19FA8006395FE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60F2106E26E19FA8006395FE /* ViewController.swift */; };
60F2107226E19FA8006395FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 60F2107026E19FA8006395FE /* Main.storyboard */; };
60F2107426E19FA8006395FE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 60F2107326E19FA8006395FE /* Assets.xcassets */; };
60F2107726E19FA8006395FE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 60F2107526E19FA8006395FE /* LaunchScreen.storyboard */; };
60F2107F26E1A513006395FE /* PushButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60F2107E26E1A513006395FE /* PushButton.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
60073B252712B67F008F2B3E /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
60B15F3626EDEB0F00DF2CE5 /* CounterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CounterView.swift; sourceTree = "<group>"; };
60B759E626F55CD900F64E94 /* GraphView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GraphView.swift; sourceTree = "<group>"; };
60F2106726E19FA8006395FE /* CoreGraphics-1.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CoreGraphics-1.app"; sourceTree = BUILT_PRODUCTS_DIR; };
60F2106A26E19FA8006395FE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
60F2106C26E19FA8006395FE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
60F2106E26E19FA8006395FE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
60F2107126E19FA8006395FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
60F2107326E19FA8006395FE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
60F2107626E19FA8006395FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
60F2107826E19FA8006395FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
60F2107E26E1A513006395FE /* PushButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PushButton.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
6097AE2A26F2C6F50083F967 /* Line&Arc */ = {
isa = PBXGroup;
children = (
60F2107E26E1A513006395FE /* PushButton.swift */,
60B15F3626EDEB0F00DF2CE5 /* CounterView.swift */,
);
path = "Line&Arc";
sourceTree = "<group>";
};
60F2105E26E19FA8006395FE = {
isa = PBXGroup;
children = (
60073B252712B67F008F2B3E /* README.md */,
60F2106926E19FA8006395FE /* CoreGraphics-1 */,
60F2106826E19FA8006395FE /* Products */,
);
sourceTree = "<group>";
};
60F2106826E19FA8006395FE /* Products */ = {
isa = PBXGroup;
children = (
60F2106726E19FA8006395FE /* CoreGraphics-1.app */,
);
name = Products;
sourceTree = "<group>";
};
60F2106926E19FA8006395FE /* CoreGraphics-1 */ = {
isa = PBXGroup;
children = (
60F2106A26E19FA8006395FE /* AppDelegate.swift */,
60F2106C26E19FA8006395FE /* SceneDelegate.swift */,
60F2106E26E19FA8006395FE /* ViewController.swift */,
60B759E626F55CD900F64E94 /* GraphView.swift */,
6097AE2A26F2C6F50083F967 /* Line&Arc */,
60F2107026E19FA8006395FE /* Main.storyboard */,
60F2107326E19FA8006395FE /* Assets.xcassets */,
60F2107526E19FA8006395FE /* LaunchScreen.storyboard */,
60F2107826E19FA8006395FE /* Info.plist */,
);
path = "CoreGraphics-1";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
60F2106626E19FA8006395FE /* CoreGraphics-1 */ = {
isa = PBXNativeTarget;
buildConfigurationList = 60F2107B26E19FA8006395FE /* Build configuration list for PBXNativeTarget "CoreGraphics-1" */;
buildPhases = (
60F2106326E19FA8006395FE /* Sources */,
60F2106426E19FA8006395FE /* Frameworks */,
60F2106526E19FA8006395FE /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "CoreGraphics-1";
productName = "CoreGraphics-1";
productReference = 60F2106726E19FA8006395FE /* CoreGraphics-1.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
60F2105F26E19FA8006395FE /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
60F2106626E19FA8006395FE = {
CreatedOnToolsVersion = 12.5.1;
};
};
};
buildConfigurationList = 60F2106226E19FA8006395FE /* Build configuration list for PBXProject "CoreGraphics-1" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 60F2105E26E19FA8006395FE;
productRefGroup = 60F2106826E19FA8006395FE /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
60F2106626E19FA8006395FE /* CoreGraphics-1 */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
60F2106526E19FA8006395FE /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
60F2107726E19FA8006395FE /* LaunchScreen.storyboard in Resources */,
60F2107426E19FA8006395FE /* Assets.xcassets in Resources */,
60073B262712B67F008F2B3E /* README.md in Resources */,
60F2107226E19FA8006395FE /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
60F2106326E19FA8006395FE /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
60F2106F26E19FA8006395FE /* ViewController.swift in Sources */,
60F2106B26E19FA8006395FE /* AppDelegate.swift in Sources */,
60F2106D26E19FA8006395FE /* SceneDelegate.swift in Sources */,
60F2107F26E1A513006395FE /* PushButton.swift in Sources */,
60B15F3726EDEB0F00DF2CE5 /* CounterView.swift in Sources */,
60B759E726F55CD900F64E94 /* GraphView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
60F2107026E19FA8006395FE /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
60F2107126E19FA8006395FE /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
60F2107526E19FA8006395FE /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
60F2107626E19FA8006395FE /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
60F2107926E19FA8006395FE /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
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;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
60F2107A26E19FA8006395FE /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
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;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
60F2107C26E19FA8006395FE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 59A3Y4PDPJ;
INFOPLIST_FILE = "CoreGraphics-1/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "pro648.CoreGraphics-1";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
60F2107D26E19FA8006395FE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 59A3Y4PDPJ;
INFOPLIST_FILE = "CoreGraphics-1/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "pro648.CoreGraphics-1";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
60F2106226E19FA8006395FE /* Build configuration list for PBXProject "CoreGraphics-1" */ = {
isa = XCConfigurationList;
buildConfigurations = (
60F2107926E19FA8006395FE /* Debug */,
60F2107A26E19FA8006395FE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
60F2107B26E19FA8006395FE /* Build configuration list for PBXNativeTarget "CoreGraphics-1" */ = {
isa = XCConfigurationList;
buildConfigurations = (
60F2107C26E19FA8006395FE /* Debug */,
60F2107D26E19FA8006395FE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 60F2105F26E19FA8006395FE /* Project object */;
}

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

Loading

0 comments on commit aa9b2e4

Please sign in to comment.