Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaprojects committed Jul 22, 2017
1 parent ee2d232 commit c2574ab
Show file tree
Hide file tree
Showing 18 changed files with 1,155 additions and 0 deletions.
264 changes: 264 additions & 0 deletions XSCircleView/XSCircleView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
7BEF44CE1F234B6B00EFDB8D /* XSCircleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BEF44CD1F234B6B00EFDB8D /* XSCircleView.m */; };
7BEF44CF1F234B6B00EFDB8D /* XSCircleView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 7BEF44CC1F234B6B00EFDB8D /* XSCircleView.h */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
7BEF44C71F234B6B00EFDB8D /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
7BEF44CF1F234B6B00EFDB8D /* XSCircleView.h in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
7BEF44C91F234B6B00EFDB8D /* libXSCircleView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libXSCircleView.a; sourceTree = BUILT_PRODUCTS_DIR; };
7BEF44CC1F234B6B00EFDB8D /* XSCircleView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XSCircleView.h; sourceTree = "<group>"; };
7BEF44CD1F234B6B00EFDB8D /* XSCircleView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XSCircleView.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
7BEF44C01F234B6B00EFDB8D = {
isa = PBXGroup;
children = (
7BEF44CB1F234B6B00EFDB8D /* XSCircleView */,
7BEF44CA1F234B6B00EFDB8D /* Products */,
);
sourceTree = "<group>";
};
7BEF44CA1F234B6B00EFDB8D /* Products */ = {
isa = PBXGroup;
children = (
7BEF44C91F234B6B00EFDB8D /* libXSCircleView.a */,
);
name = Products;
sourceTree = "<group>";
};
7BEF44CB1F234B6B00EFDB8D /* XSCircleView */ = {
isa = PBXGroup;
children = (
7BEF44CC1F234B6B00EFDB8D /* XSCircleView.h */,
7BEF44CD1F234B6B00EFDB8D /* XSCircleView.m */,
);
path = XSCircleView;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
7BEF44C81F234B6B00EFDB8D /* XSCircleView */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7BEF44D21F234B6B00EFDB8D /* Build configuration list for PBXNativeTarget "XSCircleView" */;
buildPhases = (
7BEF44C51F234B6B00EFDB8D /* Sources */,
7BEF44C61F234B6B00EFDB8D /* Frameworks */,
7BEF44C71F234B6B00EFDB8D /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = XSCircleView;
productName = XSCircleView;
productReference = 7BEF44C91F234B6B00EFDB8D /* libXSCircleView.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
7BEF44C11F234B6B00EFDB8D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0830;
ORGANIZATIONNAME = XIAPROJECTS;
TargetAttributes = {
7BEF44C81F234B6B00EFDB8D = {
CreatedOnToolsVersion = 8.3.3;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 7BEF44C41F234B6B00EFDB8D /* Build configuration list for PBXProject "XSCircleView" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 7BEF44C01F234B6B00EFDB8D;
productRefGroup = 7BEF44CA1F234B6B00EFDB8D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
7BEF44C81F234B6B00EFDB8D /* XSCircleView */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
7BEF44C51F234B6B00EFDB8D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7BEF44CE1F234B6B00EFDB8D /* XSCircleView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
7BEF44D01F234B6B00EFDB8D /* 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++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
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 = 10.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
7BEF44D11F234B6B00EFDB8D /* 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++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99;
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 = 10.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
7BEF44D31F234B6B00EFDB8D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
7BEF44D41F234B6B00EFDB8D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
7BEF44C41F234B6B00EFDB8D /* Build configuration list for PBXProject "XSCircleView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7BEF44D01F234B6B00EFDB8D /* Debug */,
7BEF44D11F234B6B00EFDB8D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7BEF44D21F234B6B00EFDB8D /* Build configuration list for PBXNativeTarget "XSCircleView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7BEF44D31F234B6B00EFDB8D /* Debug */,
7BEF44D41F234B6B00EFDB8D /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 7BEF44C11F234B6B00EFDB8D /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>XSCircleView.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>7BEF44C81F234B6B00EFDB8D</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
28 changes: 28 additions & 0 deletions XSCircleView/XSCircleView/XSCircleView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// XSCircleView.h
// XSCircleView
//
// Created by Stefano Zingarini on 22/07/2017.
// Copyright © 2017 XIAPROJECTS. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface XSCircleView : UIView
{
float _startAngle;
float _endAngle;
float _lineWidth;
float _animatingToAngle;
}
+(float)degreeToRadiant:(float)degree;
+(void)importThisClassToBinary;
-(void)reDrawShape;
-(void)setStartAngle:(float)radiant;
-(void)setEndAngle:(float)radiant;
-(void)setLineWidth:(float)pixels;
-(void)animateToAngle:(float)radiant completionHandler:(void (^)(XSCircleView *object))completion;
@property (strong, nonatomic) UIColor *fillColor;
@property (strong, nonatomic) UIColor *strokeColor;

@end
Loading

0 comments on commit c2574ab

Please sign in to comment.