8 Commits

Author SHA1 Message Date
Hamza Ghazouani 382dc0d0ac Add Podfile files 2016-11-16 01:41:13 +01:00
Hamza Ghazouani c1bc5db51a Update .gitignore
New Version
2016-11-16 01:30:22 +01:00
Hamza Ghazouani 57af6e538f Update .gitignore (ignore Pod folder)
Fix warnings
2016-11-16 01:17:43 +01:00
Hamza Ghazouani b537376107 Update O'clock Example
Run pod install
2016-11-15 23:18:38 +01:00
Hamza Ghazouani 178d58aa40 Update .swift-version 2016-11-10 23:41:20 +01:00
Hamza GHAZOUANI 38c9c1a7ed Merge branch 'master' into develop 2016-11-10 23:31:14 +01:00
Hamza GHAZOUANI 51a9a15737 * Support for Swift 3.0. 2016-11-10 23:29:52 +01:00
Hamza Ghazouani 498362d18d Update README.md 2016-11-10 22:51:27 +01:00
30 changed files with 1662 additions and 339 deletions
+1 -1
View File
@@ -62,4 +62,4 @@ Carthage/Build
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/test_output
+1 -1
View File
@@ -1 +1 @@
2.2
3.0
+16 -2
View File
@@ -1,6 +1,20 @@
# Change Log
All notable changes to this project will be documented in this file.
#### Added
- Initial release of HGCircularSlider.
## [1.0.0](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/1.0.0)
* Support for Swift 3.0.
## [0.1.2](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/0.1.2)
* Add documentation
* Last version that support Xcode 7.3.1
## [0.1.1](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/0.1.1)
* Add new examples
## [0.1.0](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/0.1.0)
* Initial release.
@@ -0,0 +1,607 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
2DF970E3D7BE7173DEC1D05C /* Pods_HGCircularSlider_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C7918EC49141F7F4652E8F1 /* Pods_HGCircularSlider_Tests.framework */; };
551FF6F21DD3BFE300BD5B76 /* OtherExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 551FF6F11DD3BFE300BD5B76 /* OtherExampleViewController.swift */; };
5539B1B91DD275250038D49D /* PlayerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5539B1B81DD275250038D49D /* PlayerViewController.swift */; };
5539B1BB1DD276C00038D49D /* StrangeZero.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 5539B1BA1DD276C00038D49D /* StrangeZero.mp3 */; };
55CE65391DD3D32100B0C2B2 /* OClockViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55CE65381DD3D32100B0C2B2 /* OClockViewController.swift */; };
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
607FACD81AFB9204008FA782 /* ClockViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ClockViewController.swift */; };
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
BDF84380A076F46A79D0C634 /* Pods_HGCircularSlider_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41A4019E034E0265198683A8 /* Pods_HGCircularSlider_Example.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 607FACCF1AFB9204008FA782;
remoteInfo = HGCircularSlider;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
04EAC630898381E6412A72E4 /* Pods-HGCircularSlider_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HGCircularSlider_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example.debug.xcconfig"; sourceTree = "<group>"; };
2A9608AFE40174911E5079C3 /* Pods-HGCircularSlider_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HGCircularSlider_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests.debug.xcconfig"; sourceTree = "<group>"; };
41A4019E034E0265198683A8 /* Pods_HGCircularSlider_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HGCircularSlider_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
47EC1122B43F882A3D3679B7 /* HGCircularSlider.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = HGCircularSlider.podspec; path = ../HGCircularSlider.podspec; sourceTree = "<group>"; };
551FF6F11DD3BFE300BD5B76 /* OtherExampleViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OtherExampleViewController.swift; sourceTree = "<group>"; };
5539B1B81DD275250038D49D /* PlayerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayerViewController.swift; sourceTree = "<group>"; };
5539B1BA1DD276C00038D49D /* StrangeZero.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = StrangeZero.mp3; sourceTree = "<group>"; };
55CE65381DD3D32100B0C2B2 /* OClockViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OClockViewController.swift; sourceTree = "<group>"; };
607FACD01AFB9204008FA782 /* HGCircularSlider_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HGCircularSlider_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
607FACD71AFB9204008FA782 /* ClockViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClockViewController.swift; sourceTree = "<group>"; };
607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
607FACE51AFB9204008FA782 /* HGCircularSlider_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HGCircularSlider_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
6C7918EC49141F7F4652E8F1 /* Pods_HGCircularSlider_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HGCircularSlider_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
99A3B0410141275989079EB6 /* Pods-HGCircularSlider_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HGCircularSlider_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests.release.xcconfig"; sourceTree = "<group>"; };
9BA305BCC009CE17283FE799 /* Pods-HGCircularSlider_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HGCircularSlider_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example.release.xcconfig"; sourceTree = "<group>"; };
E7D1A678D25EC3365B800DB3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
EEE4816CB037512E066C24A8 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
607FACCD1AFB9204008FA782 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BDF84380A076F46A79D0C634 /* Pods_HGCircularSlider_Example.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
607FACE21AFB9204008FA782 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2DF970E3D7BE7173DEC1D05C /* Pods_HGCircularSlider_Tests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
5B27ED662D1EECB9DB261057 /* Pods */ = {
isa = PBXGroup;
children = (
04EAC630898381E6412A72E4 /* Pods-HGCircularSlider_Example.debug.xcconfig */,
9BA305BCC009CE17283FE799 /* Pods-HGCircularSlider_Example.release.xcconfig */,
2A9608AFE40174911E5079C3 /* Pods-HGCircularSlider_Tests.debug.xcconfig */,
99A3B0410141275989079EB6 /* Pods-HGCircularSlider_Tests.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
607FACC71AFB9204008FA782 = {
isa = PBXGroup;
children = (
607FACF51AFB993E008FA782 /* Podspec Metadata */,
607FACD21AFB9204008FA782 /* Example for HGCircularSlider */,
607FACE81AFB9204008FA782 /* Tests */,
607FACD11AFB9204008FA782 /* Products */,
5B27ED662D1EECB9DB261057 /* Pods */,
DE059D042D578ECE6977B31D /* Frameworks */,
);
sourceTree = "<group>";
};
607FACD11AFB9204008FA782 /* Products */ = {
isa = PBXGroup;
children = (
607FACD01AFB9204008FA782 /* HGCircularSlider_Example.app */,
607FACE51AFB9204008FA782 /* HGCircularSlider_Tests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
607FACD21AFB9204008FA782 /* Example for HGCircularSlider */ = {
isa = PBXGroup;
children = (
607FACD51AFB9204008FA782 /* AppDelegate.swift */,
607FACD71AFB9204008FA782 /* ClockViewController.swift */,
5539B1B81DD275250038D49D /* PlayerViewController.swift */,
551FF6F11DD3BFE300BD5B76 /* OtherExampleViewController.swift */,
55CE65381DD3D32100B0C2B2 /* OClockViewController.swift */,
607FACD91AFB9204008FA782 /* Main.storyboard */,
5539B1BA1DD276C00038D49D /* StrangeZero.mp3 */,
607FACDC1AFB9204008FA782 /* Images.xcassets */,
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
607FACD31AFB9204008FA782 /* Supporting Files */,
);
name = "Example for HGCircularSlider";
path = HGCircularSlider;
sourceTree = "<group>";
};
607FACD31AFB9204008FA782 /* Supporting Files */ = {
isa = PBXGroup;
children = (
607FACD41AFB9204008FA782 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
607FACE81AFB9204008FA782 /* Tests */ = {
isa = PBXGroup;
children = (
607FACEB1AFB9204008FA782 /* Tests.swift */,
607FACE91AFB9204008FA782 /* Supporting Files */,
);
path = Tests;
sourceTree = "<group>";
};
607FACE91AFB9204008FA782 /* Supporting Files */ = {
isa = PBXGroup;
children = (
607FACEA1AFB9204008FA782 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
607FACF51AFB993E008FA782 /* Podspec Metadata */ = {
isa = PBXGroup;
children = (
47EC1122B43F882A3D3679B7 /* HGCircularSlider.podspec */,
EEE4816CB037512E066C24A8 /* README.md */,
E7D1A678D25EC3365B800DB3 /* LICENSE */,
);
name = "Podspec Metadata";
sourceTree = "<group>";
};
DE059D042D578ECE6977B31D /* Frameworks */ = {
isa = PBXGroup;
children = (
41A4019E034E0265198683A8 /* Pods_HGCircularSlider_Example.framework */,
6C7918EC49141F7F4652E8F1 /* Pods_HGCircularSlider_Tests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
607FACCF1AFB9204008FA782 /* HGCircularSlider_Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "HGCircularSlider_Example" */;
buildPhases = (
E9C30214565096BEB7531CD5 /* [CP] Check Pods Manifest.lock */,
607FACCC1AFB9204008FA782 /* Sources */,
607FACCD1AFB9204008FA782 /* Frameworks */,
607FACCE1AFB9204008FA782 /* Resources */,
91331C76A6F912B59276B544 /* [CP] Embed Pods Frameworks */,
C572B7AE48C46DE00B1465A4 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
);
name = HGCircularSlider_Example;
productName = HGCircularSlider;
productReference = 607FACD01AFB9204008FA782 /* HGCircularSlider_Example.app */;
productType = "com.apple.product-type.application";
};
607FACE41AFB9204008FA782 /* HGCircularSlider_Tests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "HGCircularSlider_Tests" */;
buildPhases = (
066A95928ECD5B97A483FA2F /* [CP] Check Pods Manifest.lock */,
607FACE11AFB9204008FA782 /* Sources */,
607FACE21AFB9204008FA782 /* Frameworks */,
607FACE31AFB9204008FA782 /* Resources */,
96068A55BF909CB70B285FE5 /* [CP] Embed Pods Frameworks */,
0F46583D66160DDAEA5B58FE /* [CP] Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
607FACE71AFB9204008FA782 /* PBXTargetDependency */,
);
name = HGCircularSlider_Tests;
productName = Tests;
productReference = 607FACE51AFB9204008FA782 /* HGCircularSlider_Tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
607FACC81AFB9204008FA782 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0800;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
};
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "HGCircularSlider" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 607FACC71AFB9204008FA782;
productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
607FACCF1AFB9204008FA782 /* HGCircularSlider_Example */,
607FACE41AFB9204008FA782 /* HGCircularSlider_Tests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
607FACCE1AFB9204008FA782 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
5539B1BB1DD276C00038D49D /* StrangeZero.mp3 in Resources */,
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
607FACE31AFB9204008FA782 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
066A95928ECD5B97A483FA2F /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
0F46583D66160DDAEA5B58FE /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
91331C76A6F912B59276B544 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
96068A55BF909CB70B285FE5 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
C572B7AE48C46DE00B1465A4 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example-resources.sh\"\n";
showEnvVarsInLog = 0;
};
E9C30214565096BEB7531CD5 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
607FACCC1AFB9204008FA782 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
551FF6F21DD3BFE300BD5B76 /* OtherExampleViewController.swift in Sources */,
607FACD81AFB9204008FA782 /* ClockViewController.swift in Sources */,
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
5539B1B91DD275250038D49D /* PlayerViewController.swift in Sources */,
55CE65391DD3D32100B0C2B2 /* OClockViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
607FACE11AFB9204008FA782 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
607FACE71AFB9204008FA782 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 607FACCF1AFB9204008FA782 /* HGCircularSlider_Example */;
targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
607FACD91AFB9204008FA782 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
607FACDA1AFB9204008FA782 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = {
isa = PBXVariantGroup;
children = (
607FACDF1AFB9204008FA782 /* Base */,
);
name = LaunchScreen.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
607FACED1AFB9204008FA782 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
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_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;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
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_SYMBOLS_PRIVATE_EXTERN = NO;
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 = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
607FACEE1AFB9204008FA782 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
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_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;
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 = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
607FACF01AFB9204008FA782 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 04EAC630898381E6412A72E4 /* Pods-HGCircularSlider_Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = HGCircularSlider/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "com.cocoapods.HGCircularSlider-Example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
607FACF11AFB9204008FA782 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9BA305BCC009CE17283FE799 /* Pods-HGCircularSlider_Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = HGCircularSlider/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "com.cocoapods.HGCircularSlider-Example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
607FACF31AFB9204008FA782 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2A9608AFE40174911E5079C3 /* Pods-HGCircularSlider_Tests.debug.xcconfig */;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
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 = 3.0;
};
name = Debug;
};
607FACF41AFB9204008FA782 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 99A3B0410141275989079EB6 /* Pods-HGCircularSlider_Tests.release.xcconfig */;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
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 = 3.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "HGCircularSlider" */ = {
isa = XCConfigurationList;
buildConfigurations = (
607FACED1AFB9204008FA782 /* Debug */,
607FACEE1AFB9204008FA782 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "HGCircularSlider_Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
607FACF01AFB9204008FA782 /* Debug */,
607FACF11AFB9204008FA782 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "HGCircularSlider_Tests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
607FACF31AFB9204008FA782 /* Debug */,
607FACF41AFB9204008FA782 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 607FACC81AFB9204008FA782 /* Project object */;
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:HGCircularSlider.xcodeproj">
</FileRef>
</Workspace>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:HGCircularSlider.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
+6 -6
View File
@@ -14,30 +14,30 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="sp2-vV-rZV">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="sp2-vV-rZV">
<dependencies>
<development version="7000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Clock-->
@@ -16,59 +16,47 @@
<viewControllerLayoutGuide type="bottom" id="lUY-qL-6BD"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="4jd-aQ-SwJ">
<rect key="frame" x="0.0" y="0.0" width="320" height="431"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="15" translatesAutoresizingMaskIntoConstraints="NO" id="dyk-gn-E0m">
<rect key="frame" x="26" y="-2" width="268" height="57"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" placeholderIntrinsicWidth="116" placeholderIntrinsicHeight="57" axis="vertical" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="DG9-tl-Yx0" userLabel="BedTime Stack View">
<rect key="frame" x="0.0" y="0.0" width="126.5" height="57"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="YwR-eO-oZe">
<rect key="frame" x="15" y="0.0" width="97" height="24"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="17" placeholderIntrinsicHeight="24" image="ic_bedtime" translatesAutoresizingMaskIntoConstraints="NO" id="KC4-Yz-4tg">
<rect key="frame" x="0.0" y="0.0" width="17" height="24"/>
<color key="tintColor" red="1" green="0.65098039220000004" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="tintColor" red="1" green="0.65098039220000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="75" placeholderIntrinsicHeight="24" text="Bedtime" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JV5-mg-K6N">
<rect key="frame" x="22" y="0.0" width="75" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" red="1" green="0.65098039215686276" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="1" green="0.65098039215686276" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="108" placeholderIntrinsicHeight="33" text="12:00 AM" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ode-Tz-DNv">
<rect key="frame" x="9" y="24" width="108" height="33"/>
<fontDescription key="fontDescription" type="system" pointSize="25"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" placeholderIntrinsicWidth="116" placeholderIntrinsicHeight="57" axis="vertical" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="pua-bm-FEt" userLabel="Wake Stack View">
<rect key="frame" x="141" y="0.0" width="126.5" height="57"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="GT6-Lu-cLO">
<rect key="frame" x="15" y="0.0" width="97" height="24"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="17" placeholderIntrinsicHeight="24" image="ic_wake" translatesAutoresizingMaskIntoConstraints="NO" id="yHs-NA-gtj">
<rect key="frame" x="0.0" y="0.0" width="17" height="24"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="17" placeholderIntrinsicHeight="24" image="ic_wake" translatesAutoresizingMaskIntoConstraints="NO" id="yHs-NA-gtj"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="75" placeholderIntrinsicHeight="24" text="Wake" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0hP-PD-D5h">
<rect key="frame" x="22" y="0.0" width="75" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="115" placeholderIntrinsicHeight="33" text="12:00 PM" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lh9-bX-Mdn">
<rect key="frame" x="6" y="24" width="115" height="33"/>
<fontDescription key="fontDescription" type="system" pointSize="27"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -76,8 +64,7 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B7k-gj-MGd" customClass="RangeCircularSlider" customModule="HGCircularSlider">
<rect key="frame" x="16" y="71.5" width="288" height="288"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="B7k-gj-MGd" secondAttribute="height" id="NVA-rO-PLq"/>
</constraints>
@@ -86,16 +73,16 @@
<real key="value" value="40"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackFillColor">
<color key="value" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskFillColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackColor">
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
@@ -103,14 +90,13 @@
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0:41" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Yn-91-Eq6">
<rect key="frame" x="119" y="188" width="82" height="55"/>
<fontDescription key="fontDescription" name="AvenirNext-Regular" family="Avenir Next" pointSize="40"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="tintColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="tintColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="dyk-gn-E0m" firstAttribute="leading" secondItem="4jd-aQ-SwJ" secondAttribute="leadingMargin" constant="10" id="Dl0-lI-EH6"/>
<constraint firstItem="B7k-gj-MGd" firstAttribute="leading" secondItem="4jd-aQ-SwJ" secondAttribute="leadingMargin" id="Jac-u5-3tf"/>
@@ -134,7 +120,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="IfT-Jw-FAY" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-234" y="1695"/>
<point key="canvasLocation" x="-1254" y="2468"/>
</scene>
<!--Tab Bar Controller-->
<scene sceneID="M9S-pb-Waq">
@@ -143,9 +129,9 @@
<tabBar key="tabBar" contentMode="scaleToFill" id="b7Z-PI-gCQ">
<rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="tintColor" red="0.89411764709999997" green="0.93333333330000001" blue="0.38823529410000002" alpha="1" colorSpace="calibratedRGB"/>
<color key="barTintColor" red="0.17254901960784313" green="0.15686274509803921" blue="0.16862745098039217" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<color key="tintColor" red="0.89411764709999997" green="0.93333333330000001" blue="0.38823529410000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="barTintColor" red="0.17254901960784313" green="0.15686274509803921" blue="0.16862745098039217" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</tabBar>
<connections>
<segue destination="CT4-vj-wFA" kind="relationship" relationship="viewControllers" id="pZZ-eo-szV"/>
@@ -156,7 +142,7 @@
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="gDj-DB-klF" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1113" y="2067"/>
<point key="canvasLocation" x="-562" y="1626"/>
</scene>
<!--Player-->
<scene sceneID="90r-0D-nKE">
@@ -167,15 +153,13 @@
<viewControllerLayoutGuide type="bottom" id="qfh-d6-sk8"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="neD-ad-Dbx">
<rect key="frame" x="0.0" y="0.0" width="320" height="431"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="c7m-F5-dgq">
<rect key="frame" x="40" y="43" width="240" height="345"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="x2l-Xh-2MZ" customClass="CircularSlider" customModule="HGCircularSlider">
<rect key="frame" x="0.0" y="0.0" width="240" height="240"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="x2l-Xh-2MZ" secondAttribute="height" priority="999" id="5ZH-Qv-URo"/>
</constraints>
@@ -184,25 +168,25 @@
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackFillColor">
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskFillColor">
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackColor">
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="thumbRadius">
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeHighlightedColor">
<color key="value" red="0.80000000000000004" green="0.5725490196078431" blue="0.88235294117647056" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.80000000000000004" green="0.5725490196078431" blue="0.88235294117647056" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeColor">
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
@@ -210,24 +194,20 @@
</connections>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="ynQ-4R-F24">
<rect key="frame" x="0.0" y="260" width="240" height="37"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="240" placeholderIntrinsicHeight="17" text="StrangeZero" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cRt-q4-UdR">
<rect key="frame" x="0.0" y="0.0" width="240" height="17"/>
<fontDescription key="fontDescription" type="system" weight="light" pointSize="14"/>
<color key="textColor" white="1" alpha="0.5" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="240" placeholderIntrinsicHeight="20" text="Burnin Star" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uAk-aN-SL3">
<rect key="frame" x="0.0" y="17" width="240" height="20"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="9nw-2D-CbD">
<rect key="frame" x="0.0" y="317" width="240" height="29"/>
<constraints>
<constraint firstAttribute="height" constant="28" id="Tdt-J7-hiZ"/>
</constraints>
@@ -242,14 +222,13 @@
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="167" placeholderIntrinsicHeight="48" text="0:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V2j-gL-XgV">
<rect key="frame" x="77" y="139" width="167" height="48"/>
<fontDescription key="fontDescription" type="system" weight="ultraLight" pointSize="40"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.49803921569999998" green="0.10980392160000001" blue="0.65098039220000004" alpha="1" colorSpace="calibratedRGB"/>
<color key="tintColor" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.49803921569999998" green="0.10980392160000001" blue="0.65098039220000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="tintColor" red="0.14901960780000001" green="0.83921568629999999" blue="0.99215686270000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="V2j-gL-XgV" firstAttribute="centerY" secondItem="x2l-Xh-2MZ" secondAttribute="centerY" id="3Cf-SB-Xap"/>
<constraint firstItem="V2j-gL-XgV" firstAttribute="centerX" secondItem="x2l-Xh-2MZ" secondAttribute="centerX" id="KeP-bj-vvP"/>
@@ -269,7 +248,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="LfZ-7G-N6b" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-251" y="2267"/>
<point key="canvasLocation" x="-794" y="2468"/>
</scene>
<!--Example-->
<scene sceneID="stQ-nu-pyE">
@@ -280,12 +259,11 @@
<viewControllerLayoutGuide type="bottom" id="I5G-Jl-WfO"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kxo-la-Q5X">
<rect key="frame" x="0.0" y="0.0" width="320" height="431"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P7G-Iv-4Jm" customClass="MidPointCircularSlider" customModule="HGCircularSlider">
<rect key="frame" x="46" y="101" width="228" height="228"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="228" id="Kx9-Mg-DfE"/>
<constraint firstAttribute="width" secondItem="P7G-Iv-4Jm" secondAttribute="height" id="aGA-yL-Kg8"/>
@@ -295,28 +273,28 @@
<real key="value" value="15"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackFillColor">
<color key="value" red="0.92156862745098034" green="0.18431372549019609" blue="0.38039215686274508" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.92156862745098034" green="0.18431372549019609" blue="0.38039215686274508" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackColor">
<color key="value" red="0.35686274509803922" green="0.70196078431372544" blue="0.92549019607843142" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.35686274509803922" green="0.70196078431372544" blue="0.92549019607843142" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="distance">
<real key="value" value="0.14999999999999999"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="midThumbStrokeHighlightedColor">
<color key="value" red="0.92156862750000001" green="0.1843137255" blue="0.3803921569" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.92156862750000001" green="0.1843137255" blue="0.3803921569" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="midThumbStrokeColor">
<color key="value" red="0.35686274509999999" green="0.70196078429999997" blue="0.92549019610000005" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="0.35686274509999999" green="0.70196078429999997" blue="0.92549019610000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="thumbRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskFillColor">
<color key="value" red="0.35686274509999999" green="0.70196078429999997" blue="0.92549019610000005" alpha="0.13957435344827587" colorSpace="calibratedRGB"/>
<color key="value" red="0.35686274509999999" green="0.70196078429999997" blue="0.92549019610000005" alpha="0.13957435344827587" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
@@ -324,13 +302,12 @@
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="April" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Cfm-Db-wi2">
<rect key="frame" x="85" y="140.5" width="150" height="150"/>
<constraints>
<constraint firstAttribute="width" constant="150" id="LDb-AT-qTm"/>
<constraint firstAttribute="width" secondItem="Cfm-Db-wi2" secondAttribute="height" id="sh3-2g-Wm9"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
@@ -340,12 +317,12 @@
<integer key="value" value="75"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="layer.borderUIColor">
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
</subviews>
<color key="backgroundColor" red="0.38039215686274508" green="0.33725490196078434" blue="0.43529411764705883" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.38039215686274508" green="0.33725490196078434" blue="0.43529411764705883" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Cfm-Db-wi2" firstAttribute="centerY" secondItem="kxo-la-Q5X" secondAttribute="centerY" id="PTz-yo-VP9"/>
<constraint firstItem="Cfm-Db-wi2" firstAttribute="centerX" secondItem="kxo-la-Q5X" secondAttribute="centerX" id="QSS-kS-W8Q"/>
@@ -358,7 +335,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="11N-ZE-qqz" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-274" y="2943"/>
<point key="canvasLocation" x="-326" y="2468"/>
</scene>
<!--OClock-->
<scene sceneID="qvZ-oN-u0x">
@@ -369,14 +346,12 @@
<viewControllerLayoutGuide type="bottom" id="zbM-Dt-5AV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="fAM-4k-cvc">
<rect key="frame" x="0.0" y="0.0" width="320" height="431"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="WRY-kB-aj8">
<rect key="frame" x="100" y="20" width="120" height="45"/>
<subviews>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="19A-pG-3td">
<rect key="frame" x="0.0" y="8.5" width="120" height="29"/>
<constraints>
<constraint firstAttribute="width" constant="120" id="3jN-4n-QeQ"/>
</constraints>
@@ -384,7 +359,7 @@
<segment title="AM"/>
<segment title="PM"/>
</segments>
<color key="tintColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="tintColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
<action selector="switchBetweenAMAndPM:" destination="fOf-1m-bg4" eventType="valueChanged" id="Ztd-XM-Khe"/>
</connections>
@@ -392,66 +367,57 @@
</subviews>
</stackView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="time_indicators" translatesAutoresizingMaskIntoConstraints="NO" id="iV1-rk-1SV">
<rect key="frame" x="9" y="65" width="301" height="301"/>
<constraints>
<constraint firstAttribute="width" secondItem="iV1-rk-1SV" secondAttribute="height" id="L3y-vK-lUp"/>
</constraints>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="Hes-2U-VeA">
<rect key="frame" x="100" y="136" width="120" height="159"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="92" placeholderIntrinsicHeight="53" text="AM" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jhh-41-cud">
<rect key="frame" x="0.0" y="0.0" width="120" height="53"/>
<fontDescription key="fontDescription" type="system" weight="ultraLight" pointSize="16"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="43q-ax-2ig">
<rect key="frame" x="0.0" y="53" width="120" height="53"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="54" placeholderIntrinsicHeight="53" text="06" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hbF-TF-3lB">
<rect key="frame" x="0.0" y="0.0" width="54" height="53"/>
<fontDescription key="fontDescription" type="system" weight="light" pointSize="44"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="12" placeholderIntrinsicHeight="53" text=":" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vth-jB-JLd">
<rect key="frame" x="54" y="0.0" width="12" height="53"/>
<fontDescription key="fontDescription" type="system" weight="light" pointSize="44"/>
<color key="textColor" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="54" placeholderIntrinsicHeight="53" text="35" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="t63-gB-ld3">
<rect key="frame" x="66" y="0.0" width="54" height="53"/>
<fontDescription key="fontDescription" type="system" weight="light" pointSize="44"/>
<color key="textColor" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="92" placeholderIntrinsicHeight="53" text="MONDAY" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="F6O-w8-ufI">
<rect key="frame" x="0.0" y="106" width="120" height="53"/>
<fontDescription key="fontDescription" type="system" weight="ultraLight" pointSize="16"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kWD-6U-Cha" customClass="CircularSlider" customModule="HGCircularSlider">
<rect key="frame" x="29" y="85" width="261" height="261"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="diskFillColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackFillColor">
<color key="value" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="0.79496228449999995" colorSpace="calibratedRGB"/>
<color key="value" red="0.87450980389999999" green="0.80000000000000004" blue="0.22352941179999999" alpha="0.79496228449999995" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackColor">
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="lineWidth">
<real key="value" value="2"/>
@@ -460,31 +426,30 @@
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbTintColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeHighlightedColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XLN-xb-Www" customClass="CircularSlider" customModule="HGCircularSlider">
<rect key="frame" x="54" y="110" width="211" height="211"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="diskFillColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="diskColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackFillColor">
<color key="value" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="0.79496228448275863" colorSpace="calibratedRGB"/>
<color key="value" red="0.87450980392156863" green="0.80000000000000004" blue="0.22352941176470587" alpha="0.79496228448275863" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="trackColor">
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<color key="value" red="1" green="1" blue="1" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="lineWidth">
<real key="value" value="4"/>
@@ -493,32 +458,28 @@
<real key="value" value="4"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbTintColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="endThumbStrokeHighlightedColor">
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="mzf-rC-Kpg">
<rect key="frame" x="94" y="366" width="132" height="65"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="i8l-FT-Qb1">
<rect key="frame" x="0.0" y="12.5" width="132" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="132" placeholderIntrinsicHeight="20" text="PARIS, FRANCE" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DSP-Eq-0z0">
<rect key="frame" x="0.0" y="0.0" width="132" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="0.61616379310344827" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="0.61616379310344827" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="132" placeholderIntrinsicHeight="20" text="November 9, 2016" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="f3J-m0-6t0">
<rect key="frame" x="0.0" y="20" width="132" height="20"/>
<fontDescription key="fontDescription" type="system" weight="ultraLight" pointSize="16"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="0.61616379310344827" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.99215686270000003" green="0.75294117650000003" blue="0.035294117649999998" alpha="0.61616379310344827" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -526,7 +487,7 @@
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" red="0.12549019607843137" green="0.14509803921568626" blue="0.21568627450980393" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.12549019607843137" green="0.14509803921568626" blue="0.21568627450980393" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kWD-6U-Cha" firstAttribute="top" secondItem="iV1-rk-1SV" secondAttribute="top" constant="20" id="0n6-Li-FgA"/>
<constraint firstItem="iV1-rk-1SV" firstAttribute="top" secondItem="WRY-kB-aj8" secondAttribute="bottom" id="3ax-Zd-hhc"/>
@@ -560,7 +521,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4jZ-R1-SB1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-288" y="3562"/>
<point key="canvasLocation" x="148" y="2468"/>
</scene>
</scenes>
<resources>
@@ -573,6 +534,6 @@
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
<simulatedScreenMetrics key="destination" type="retina4_7.fullscreen"/>
</simulatedMetricsContainer>
</document>
@@ -9,7 +9,7 @@
import UIKit
import HGCircularSlider
extension NSDate {
extension Date {
}
@@ -21,9 +21,9 @@ class ClockViewController: UIViewController {
@IBOutlet weak var wakeLabel: UILabel!
@IBOutlet weak var rangeCircularSlider: RangeCircularSlider!
lazy var dateFormatter: NSDateFormatter = {
let dateFormatter = NSDateFormatter()
dateFormatter.timeZone = NSTimeZone(abbreviation: "UTC")
lazy var dateFormatter: DateFormatter = {
let dateFormatter = DateFormatter()
dateFormatter.timeZone = TimeZone(abbreviation: "UTC")
dateFormatter.dateFormat = "hh:mm a"
return dateFormatter
}()
@@ -50,19 +50,19 @@ class ClockViewController: UIViewController {
// Dispose of any resources that can be recreated.
}
@IBAction func updateTexts(sender: AnyObject) {
let bedtime = NSTimeInterval(rangeCircularSlider.startPointValue)
let bedtimeDate = NSDate(timeIntervalSinceReferenceDate: bedtime)
bedtimeLabel.text = dateFormatter.stringFromDate(bedtimeDate)
@IBAction func updateTexts(_ sender: AnyObject) {
let bedtime = TimeInterval(rangeCircularSlider.startPointValue)
let bedtimeDate = Date(timeIntervalSinceReferenceDate: bedtime)
bedtimeLabel.text = dateFormatter.string(from: bedtimeDate)
let wake = NSTimeInterval(rangeCircularSlider.endPointValue)
let wakeDate = NSDate(timeIntervalSinceReferenceDate: wake)
wakeLabel.text = dateFormatter.stringFromDate(wakeDate)
let wake = TimeInterval(rangeCircularSlider.endPointValue)
let wakeDate = Date(timeIntervalSinceReferenceDate: wake)
wakeLabel.text = dateFormatter.string(from: wakeDate)
let duration = wake - bedtime
let durationDate = NSDate(timeIntervalSinceReferenceDate: duration)
let durationDate = Date(timeIntervalSinceReferenceDate: duration)
dateFormatter.dateFormat = "HH:mm"
durationLabel.text = dateFormatter.stringFromDate(durationDate)
durationLabel.text = dateFormatter.string(from: durationDate)
dateFormatter.dateFormat = "hh:mm a"
}
}
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
@@ -35,4 +45,4 @@
"version" : 1,
"author" : "xcode"
}
}
}
@@ -2,16 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "first.pdf",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"filename" : "first.pdf"
}
],
"info" : {
@@ -2,16 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "second.pdf",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"filename" : "second.pdf"
}
],
"info" : {
@@ -2,16 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "time_indicators.pdf",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"filename" : "time_indicators.pdf"
}
],
"info" : {
@@ -10,7 +10,7 @@ import UIKit
import HGCircularSlider
class OClockViewController: UIViewController {
@IBOutlet weak var minutesCircularSlider: CircularSlider!
@IBOutlet weak var hoursCircularSlider: CircularSlider!
@@ -20,10 +20,10 @@ class OClockViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
setupSliders()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
@@ -34,53 +34,58 @@ class OClockViewController: UIViewController {
hoursCircularSlider.minimumValue = 0
hoursCircularSlider.maximumValue = 12
hoursCircularSlider.endPointValue = 6
hoursCircularSlider.addTarget(self, action: #selector(updateHours), forControlEvents: .ValueChanged)
hoursCircularSlider.addTarget(self, action: #selector(updateHours), for: .valueChanged)
hoursCircularSlider.addTarget(self, action: #selector(adjustHours), for: .editingDidEnd)
// minutes
minutesCircularSlider.minimumValue = 0
minutesCircularSlider.maximumValue = 60
minutesCircularSlider.endPointValue = 35
minutesCircularSlider.addTarget(self, action: #selector(updateMinutes), forControlEvents: .ValueChanged)
minutesCircularSlider.addTarget(self, action: #selector(updateMinutes), for: .valueChanged)
minutesCircularSlider.addTarget(self, action: #selector(adjustMinutes), for: .editingDidEnd)
}
// MARK: user interaction methods
// MARK: user interaction methods
// TODO: the thumb of hoursSlider should get only Int values (slide directly from 3 to 4, from 4 to 5, etc)
func updateHours() {
var selectedHour = Int(hoursCircularSlider.endPointValue)
var selectedHour = Int(hoursCircularSlider.endPointValue)
// TODO: use date formatter
selectedHour = selectedHour == 0 ? 12 : selectedHour
// TODO: remove that
if hoursCircularSlider.endPointValue > (CGFloat(selectedHour) + 0.5) && minutesCircularSlider.endPointValue > 30 {
selectedHour += 1
}
hoursLabel.text = String(selectedHour)
selectedHour = (selectedHour == 0 ? 12 : selectedHour)
hoursLabel.text = String(format: "%02d", selectedHour)
}
func adjustHours() {
let selectedHour = round(hoursCircularSlider.endPointValue)
hoursCircularSlider.endPointValue = selectedHour
updateHours()
}
func updateMinutes() {
let selectedMinute = Int(minutesCircularSlider.endPointValue)
var selectedMinute = Int(minutesCircularSlider.endPointValue)
// TODO: use date formatter
selectedMinute = (selectedMinute == 60 ? 0 : selectedMinute)
minutesLabel.text = String(format: "%02d", selectedMinute)
// TODO: remove that
updateHours()
}
@IBAction func switchBetweenAMAndPM(sender: UISegmentedControl) {
func adjustMinutes() {
let selectedMinute = round(minutesCircularSlider.endPointValue)
minutesCircularSlider.endPointValue = selectedMinute
updateMinutes()
}
@IBAction func switchBetweenAMAndPM(_ sender: UISegmentedControl) {
AMPMLabel.text = sender.selectedSegmentIndex == 0 ? "AM" : "PM"
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
@@ -11,11 +11,11 @@ import UIKit
extension CALayer {
func borderUIColor() -> UIColor? {
return borderColor != nil ? UIColor(CGColor: borderColor!) : nil
return borderColor != nil ? UIColor(cgColor: borderColor!) : nil
}
func setBorderUIColor(color: UIColor) {
borderColor = color.CGColor
func setBorderUIColor(_ color: UIColor) {
borderColor = color.cgColor
}
}
@@ -27,10 +27,10 @@ class PlayerViewController: UIViewController {
let audioPlayer = AVPlayer()
// date formatter user for timer label
let dateComponentsFormatter: NSDateComponentsFormatter = {
let formatter = NSDateComponentsFormatter()
formatter.zeroFormattingBehavior = .Pad
formatter.allowedUnits = [.Minute, .Second]
let dateComponentsFormatter: DateComponentsFormatter = {
let formatter = DateComponentsFormatter()
formatter.zeroFormattingBehavior = .pad
formatter.allowedUnits = [.minute, .second]
return formatter
}()
@@ -40,13 +40,13 @@ class PlayerViewController: UIViewController {
setupAudioPlayer()
circularSlider.addTarget(self, action: #selector(pause), forControlEvents: .EditingDidBegin)
circularSlider.addTarget(self, action: #selector(play), forControlEvents: .EditingDidEnd)
circularSlider.addTarget(self, action: #selector(updateTimer), forControlEvents: .ValueChanged)
circularSlider.addTarget(self, action: #selector(pause), for: .editingDidBegin)
circularSlider.addTarget(self, action: #selector(play), for: .editingDidEnd)
circularSlider.addTarget(self, action: #selector(updateTimer), for: .valueChanged)
NSNotificationCenter.defaultCenter().addObserver(self,
NotificationCenter.default.addObserver(self,
selector: #selector(playerItemDidReachEnd(_:)),
name: AVPlayerItemDidPlayToEndTimeNotification,
name: NSNotification.Name.AVPlayerItemDidPlayToEndTime,
object: audioPlayer.currentItem)
}
@@ -55,12 +55,12 @@ class PlayerViewController: UIViewController {
// Dispose of any resources that can be recreated.
}
@IBAction func togglePlayer(sender: UISegmentedControl) {
@IBAction func togglePlayer(_ sender: UISegmentedControl) {
switch sender.selectedSegmentIndex {
case 0:
let currentTime = Float64(circularSlider.endPointValue)
let newTime = CMTimeMakeWithSeconds(currentTime, 600)
audioPlayer.seekToTime(newTime, toleranceBefore: kCMTimeZero, toleranceAfter: kCMTimeZero)
audioPlayer.seek(to: newTime, toleranceBefore: kCMTimeZero, toleranceAfter: kCMTimeZero)
audioPlayer.play()
default:
audioPlayer.pause()
@@ -83,16 +83,16 @@ class PlayerViewController: UIViewController {
*/
func setupAudioPlayer() {
// TODO: load the audio file asynchronously and observe player status
guard let audioFileURL = NSBundle.mainBundle().URLForResource("StrangeZero", withExtension: "mp3") else { return }
let asset = AVURLAsset(URL: audioFileURL, options: nil)
guard let audioFileURL = Bundle.main.url(forResource: "StrangeZero", withExtension: "mp3") else { return }
let asset = AVURLAsset(url: audioFileURL, options: nil)
let playerItem = AVPlayerItem(asset: asset)
audioPlayer.replaceCurrentItemWithPlayerItem(playerItem)
audioPlayer.actionAtItemEnd = .Pause
audioPlayer.replaceCurrentItem(with: playerItem)
audioPlayer.actionAtItemEnd = .pause
let durationInSeconds = CMTimeGetSeconds(asset.duration)
circularSlider.maximumValue = CGFloat(durationInSeconds)
let interval = CMTimeMake(1, 4)
audioPlayer.addPeriodicTimeObserverForInterval(interval, queue: dispatch_get_main_queue()) {
audioPlayer.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main) {
[weak self] time in
let seconds = CMTimeGetSeconds(time)
self?.updatePlayerUI(withCurrentTime: CGFloat(seconds))
@@ -105,22 +105,22 @@ class PlayerViewController: UIViewController {
// update the slider position and the timer text
func updatePlayerUI(withCurrentTime currentTime: CGFloat) {
circularSlider.endPointValue = currentTime
let components = NSDateComponents()
var components = DateComponents()
components.second = Int(currentTime)
timerLabel.text = dateComponentsFormatter.stringFromDateComponents(components)
timerLabel.text = dateComponentsFormatter.string(from: components)
}
func updateTimer() {
let components = NSDateComponents()
var components = DateComponents()
components.second = Int(circularSlider.endPointValue)
timerLabel.text = dateComponentsFormatter.stringFromDateComponents(components)
timerLabel.text = dateComponentsFormatter.string(from: components)
}
// MARK: - Notification
func playerItemDidReachEnd(notification: NSNotification) {
func playerItemDidReachEnd(_ notification: Notification) {
if let playerItem: AVPlayerItem = notification.object as? AVPlayerItem {
playerItem.seekToTime(kCMTimeZero)
playerItem.seek(to: kCMTimeZero)
playerSegmentedControl.selectedSegmentIndex = UISegmentedControlNoSegment
}
}
+2 -2
View File
@@ -1,5 +1,5 @@
PODS:
- HGCircularSlider (0.1.3)
- HGCircularSlider (1.0.1)
DEPENDENCIES:
- HGCircularSlider (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../
SPEC CHECKSUMS:
HGCircularSlider: 50fd2c84c478c1dd6244a75840514427193c715f
HGCircularSlider: 3fb33a1bacdb459eb490f26a4739ca0057df48c4
PODFILE CHECKSUM: 7cb4c64ce59896052589f93ba9b0ea50a207f738
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "HGCircularSlider",
"version": "0.1.3",
"version": "1.0.1",
"summary": "Multiple Circular Sliders used to select a value from a continuous range of values.",
"description": "Circular Sliders used to select a value from a continuous range of values.\n\nCircularSlider: simple circular slider\nRangeCircularSlider: slider with two points to select a range of values from a continuous range of values\nMidPointCircularSlider: slider with fixed range to select a range of values from a continuois range of values",
"homepage": "https://github.com/HamzaGhazouani/HGCircularSlider",
@@ -13,11 +13,11 @@
},
"source": {
"git": "https://github.com/HamzaGhazouani/HGCircularSlider.git",
"tag": "0.1.3"
"tag": "1.0.1"
},
"social_media_url": "https://twitter.com/GhazouaniHamza",
"platforms": {
"ios": "7.0"
"ios": "8.0"
},
"source_files": "HGCircularSlider/Classes/**/*"
}
+2 -2
View File
@@ -1,5 +1,5 @@
PODS:
- HGCircularSlider (0.1.3)
- HGCircularSlider (1.0.1)
DEPENDENCIES:
- HGCircularSlider (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../
SPEC CHECKSUMS:
HGCircularSlider: 50fd2c84c478c1dd6244a75840514427193c715f
HGCircularSlider: 3fb33a1bacdb459eb490f26a4739ca0057df48c4
PODFILE CHECKSUM: 7cb4c64ce59896052589f93ba9b0ea50a207f738
+723
View File
@@ -0,0 +1,723 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
09841079D61F5D5B26DE6E1C532A0251 /* CircularSlider+Draw.swift in Sources */ = {isa = PBXBuildFile; fileRef = 125649883B3EC81D0547F3C711F88FBA /* CircularSlider+Draw.swift */; };
0BE861EEA17C5E608EDBEAEA13635E29 /* Pods-HGCircularSlider_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B4C4E96099A8D6795C984DB7B95AD807 /* Pods-HGCircularSlider_Example-dummy.m */; };
1550C6C361FBA7208F0B738512FBCCC3 /* HGCircularSlider-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 63780D61AF3D478DF2CF4021C37E85E0 /* HGCircularSlider-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
1597858000151DFE51048808DC015699 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; };
3332E34C55C18B6E87354FD8ADD42C6E /* RangeCircularSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF1C20BB8D104434931B9463DC1F4585 /* RangeCircularSlider.swift */; };
4B44E04F877FDBCACA8F13BD55DEB174 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; };
5E3A6A984EA5F2E480648072F6EC31B6 /* Pods-HGCircularSlider_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F5B19CF7F62E541006BEDF2B3AACEEE /* Pods-HGCircularSlider_Tests-dummy.m */; };
5E9964996690CD050A06951804F266D6 /* HGCircularSlider-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B6699D50518EBD7FF697715A82C2663B /* HGCircularSlider-dummy.m */; };
701B1902E0FE9BFDE68D7D508A68C6AB /* Pods-HGCircularSlider_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 878095F5D0332CFE20ADEA3786E008D8 /* Pods-HGCircularSlider_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
A68DBFDB91B45BB2AAC094785E7EC309 /* Pods-HGCircularSlider_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C2AE708C70BB2B8A798F5CC1B1349865 /* Pods-HGCircularSlider_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
A79A3FB8E86F403353F98CC476D0BCE4 /* CircularSliderHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A73C49E7C05A6744AEF7B652CE0F0ED /* CircularSliderHelper.swift */; };
B5956C1958EE570A31CCA4192FBA9AB0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; };
C1F20073B014831B19D54FC71BC81290 /* CircularSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = DACD8D7DF7AC2D59AE060F1A0F24858B /* CircularSlider.swift */; };
E5AA7CA1BC364E20FD41FBBF75B1D8B4 /* MidPointCircularSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D1B6BD8F919F4B2B105BA5963ECF7C0 /* MidPointCircularSlider.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
92BC1FAF2F8972A0EBFB4E0D5D02B554 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;
proxyType = 1;
remoteGlobalIDString = 01E9FE51F89215D0FFFCF2A90DD7B4B8;
remoteInfo = HGCircularSlider;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
0AC33DAFF3A3FD7FF0B07CE5EFE4085A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
125649883B3EC81D0547F3C711F88FBA /* CircularSlider+Draw.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "CircularSlider+Draw.swift"; sourceTree = "<group>"; };
1B147CCC6E755332580433994CE417E1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
1FC1E35BBC2E35F573606F7B9F0D02B3 /* Pods-HGCircularSlider_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-HGCircularSlider_Example.modulemap"; sourceTree = "<group>"; };
26583364BAC38DD1BF8A6CBD2A710A1E /* Pods-HGCircularSlider_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HGCircularSlider_Tests-frameworks.sh"; sourceTree = "<group>"; };
2F3A4A7A2AB5A30AE8F29FEC4E6E2540 /* Pods-HGCircularSlider_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HGCircularSlider_Tests-acknowledgements.plist"; sourceTree = "<group>"; };
2F5B19CF7F62E541006BEDF2B3AACEEE /* Pods-HGCircularSlider_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-HGCircularSlider_Tests-dummy.m"; sourceTree = "<group>"; };
31300D8F0E8F2108E8A8630122FC05A9 /* HGCircularSlider.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = HGCircularSlider.framework; path = HGCircularSlider.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4294C3143F451D93CD6860A2D57702DE /* Pods-HGCircularSlider_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-HGCircularSlider_Tests.modulemap"; sourceTree = "<group>"; };
4EE1E285F114B18B71EAB95DFFFF7339 /* Pods-HGCircularSlider_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HGCircularSlider_Example-acknowledgements.plist"; sourceTree = "<group>"; };
4FBDE23EFF1DC52A744BAFE471C32AC8 /* Pods_HGCircularSlider_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_HGCircularSlider_Example.framework; path = "Pods-HGCircularSlider_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
5EADBC45FB24C6CED051AC3B3F83C32F /* Pods-HGCircularSlider_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HGCircularSlider_Tests.debug.xcconfig"; sourceTree = "<group>"; };
63780D61AF3D478DF2CF4021C37E85E0 /* HGCircularSlider-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HGCircularSlider-umbrella.h"; sourceTree = "<group>"; };
6549651ADCC3EB7C056739C1080EF3A0 /* Pods-HGCircularSlider_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HGCircularSlider_Tests-resources.sh"; sourceTree = "<group>"; };
66631BD53CA47190B456D263FB739CCE /* HGCircularSlider-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HGCircularSlider-prefix.pch"; sourceTree = "<group>"; };
67AEE4E9C7F7FCE20B950E94B8A0E63F /* Pods_HGCircularSlider_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_HGCircularSlider_Tests.framework; path = "Pods-HGCircularSlider_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
68FCB8E1A71ACFE8005B591C586131E5 /* Pods-HGCircularSlider_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-HGCircularSlider_Example-acknowledgements.markdown"; sourceTree = "<group>"; };
79B72DC89D2B9809339DE964D73CD970 /* Pods-HGCircularSlider_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-HGCircularSlider_Tests-acknowledgements.markdown"; sourceTree = "<group>"; };
7BAD0737B836754C7DA40234CFB9D9B4 /* Pods-HGCircularSlider_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HGCircularSlider_Tests.release.xcconfig"; sourceTree = "<group>"; };
878095F5D0332CFE20ADEA3786E008D8 /* Pods-HGCircularSlider_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-HGCircularSlider_Example-umbrella.h"; sourceTree = "<group>"; };
8D1B6BD8F919F4B2B105BA5963ECF7C0 /* MidPointCircularSlider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MidPointCircularSlider.swift; sourceTree = "<group>"; };
93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
94E9B86173CA648DFCB2A86114523061 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9A73C49E7C05A6744AEF7B652CE0F0ED /* CircularSliderHelper.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CircularSliderHelper.swift; sourceTree = "<group>"; };
AF1C20BB8D104434931B9463DC1F4585 /* RangeCircularSlider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = RangeCircularSlider.swift; sourceTree = "<group>"; };
B1CD1E7057BE7100789B4FFD822583CA /* Pods-HGCircularSlider_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HGCircularSlider_Example-resources.sh"; sourceTree = "<group>"; };
B4C4E96099A8D6795C984DB7B95AD807 /* Pods-HGCircularSlider_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-HGCircularSlider_Example-dummy.m"; sourceTree = "<group>"; };
B6699D50518EBD7FF697715A82C2663B /* HGCircularSlider-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "HGCircularSlider-dummy.m"; sourceTree = "<group>"; };
B764745D4D8B6808F11365EE10EC0EA5 /* Pods-HGCircularSlider_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HGCircularSlider_Example.release.xcconfig"; sourceTree = "<group>"; };
BC9B942FE2C795BEB661E564BBC311F5 /* Pods-HGCircularSlider_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HGCircularSlider_Example.debug.xcconfig"; sourceTree = "<group>"; };
C2AE708C70BB2B8A798F5CC1B1349865 /* Pods-HGCircularSlider_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-HGCircularSlider_Tests-umbrella.h"; sourceTree = "<group>"; };
C4CA0B4C2E8913831F90CEFCA62B2477 /* Pods-HGCircularSlider_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HGCircularSlider_Example-frameworks.sh"; sourceTree = "<group>"; };
C4D2D16BC6F4D50B2E308B95ED30CD59 /* HGCircularSlider.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = HGCircularSlider.xcconfig; sourceTree = "<group>"; };
CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
D65CC17C8E7410C00990AE0CB707F5C4 /* HGCircularSlider.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = HGCircularSlider.modulemap; sourceTree = "<group>"; };
DACD8D7DF7AC2D59AE060F1A0F24858B /* CircularSlider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CircularSlider.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
4CE00A022CBC950EF405F2F13ED01BC9 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4B44E04F877FDBCACA8F13BD55DEB174 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
8C17D400707D40FFC2487140453E686D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1597858000151DFE51048808DC015699 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C986BC3B9734FEFE31A29E26FE65CCC9 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B5956C1958EE570A31CCA4192FBA9AB0 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
088D3F1EB80AF86BCCB6371B89753190 /* Targets Support Files */ = {
isa = PBXGroup;
children = (
B168B55622E856F3BD5D8A2B81891BDA /* Pods-HGCircularSlider_Example */,
9CC687CE11AAB9ADBAF73CDEF5F0FEB3 /* Pods-HGCircularSlider_Tests */,
);
name = "Targets Support Files";
sourceTree = "<group>";
};
08F118F22DB894E27FBEC1ACCBDAC8CC /* Development Pods */ = {
isa = PBXGroup;
children = (
67B1FC05159A862BB8067A5E05ACAF95 /* HGCircularSlider */,
);
name = "Development Pods";
sourceTree = "<group>";
};
138882A46DF2A4BCFF539735C9C069A8 /* Products */ = {
isa = PBXGroup;
children = (
31300D8F0E8F2108E8A8630122FC05A9 /* HGCircularSlider.framework */,
4FBDE23EFF1DC52A744BAFE471C32AC8 /* Pods_HGCircularSlider_Example.framework */,
67AEE4E9C7F7FCE20B950E94B8A0E63F /* Pods_HGCircularSlider_Tests.framework */,
);
name = Products;
sourceTree = "<group>";
};
20FFD0D1EB802AF0770F1FFBE59776E7 /* Classes */ = {
isa = PBXGroup;
children = (
DACD8D7DF7AC2D59AE060F1A0F24858B /* CircularSlider.swift */,
125649883B3EC81D0547F3C711F88FBA /* CircularSlider+Draw.swift */,
9A73C49E7C05A6744AEF7B652CE0F0ED /* CircularSliderHelper.swift */,
8D1B6BD8F919F4B2B105BA5963ECF7C0 /* MidPointCircularSlider.swift */,
AF1C20BB8D104434931B9463DC1F4585 /* RangeCircularSlider.swift */,
);
name = Classes;
path = Classes;
sourceTree = "<group>";
};
67B1FC05159A862BB8067A5E05ACAF95 /* HGCircularSlider */ = {
isa = PBXGroup;
children = (
F958116962B8A5EEE5C8D95D43C17E00 /* HGCircularSlider */,
A578B1606056A519F2BD7478CAE9B18B /* Support Files */,
);
name = HGCircularSlider;
path = ../..;
sourceTree = "<group>";
};
7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = {
isa = PBXGroup;
children = (
CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */,
);
name = iOS;
sourceTree = "<group>";
};
7DB346D0F39D3F0E887471402A8071AB = {
isa = PBXGroup;
children = (
93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */,
08F118F22DB894E27FBEC1ACCBDAC8CC /* Development Pods */,
BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */,
138882A46DF2A4BCFF539735C9C069A8 /* Products */,
088D3F1EB80AF86BCCB6371B89753190 /* Targets Support Files */,
);
sourceTree = "<group>";
};
9CC687CE11AAB9ADBAF73CDEF5F0FEB3 /* Pods-HGCircularSlider_Tests */ = {
isa = PBXGroup;
children = (
94E9B86173CA648DFCB2A86114523061 /* Info.plist */,
4294C3143F451D93CD6860A2D57702DE /* Pods-HGCircularSlider_Tests.modulemap */,
79B72DC89D2B9809339DE964D73CD970 /* Pods-HGCircularSlider_Tests-acknowledgements.markdown */,
2F3A4A7A2AB5A30AE8F29FEC4E6E2540 /* Pods-HGCircularSlider_Tests-acknowledgements.plist */,
2F5B19CF7F62E541006BEDF2B3AACEEE /* Pods-HGCircularSlider_Tests-dummy.m */,
26583364BAC38DD1BF8A6CBD2A710A1E /* Pods-HGCircularSlider_Tests-frameworks.sh */,
6549651ADCC3EB7C056739C1080EF3A0 /* Pods-HGCircularSlider_Tests-resources.sh */,
C2AE708C70BB2B8A798F5CC1B1349865 /* Pods-HGCircularSlider_Tests-umbrella.h */,
5EADBC45FB24C6CED051AC3B3F83C32F /* Pods-HGCircularSlider_Tests.debug.xcconfig */,
7BAD0737B836754C7DA40234CFB9D9B4 /* Pods-HGCircularSlider_Tests.release.xcconfig */,
);
name = "Pods-HGCircularSlider_Tests";
path = "Target Support Files/Pods-HGCircularSlider_Tests";
sourceTree = "<group>";
};
A578B1606056A519F2BD7478CAE9B18B /* Support Files */ = {
isa = PBXGroup;
children = (
D65CC17C8E7410C00990AE0CB707F5C4 /* HGCircularSlider.modulemap */,
C4D2D16BC6F4D50B2E308B95ED30CD59 /* HGCircularSlider.xcconfig */,
B6699D50518EBD7FF697715A82C2663B /* HGCircularSlider-dummy.m */,
66631BD53CA47190B456D263FB739CCE /* HGCircularSlider-prefix.pch */,
63780D61AF3D478DF2CF4021C37E85E0 /* HGCircularSlider-umbrella.h */,
1B147CCC6E755332580433994CE417E1 /* Info.plist */,
);
name = "Support Files";
path = "Example/Pods/Target Support Files/HGCircularSlider";
sourceTree = "<group>";
};
B168B55622E856F3BD5D8A2B81891BDA /* Pods-HGCircularSlider_Example */ = {
isa = PBXGroup;
children = (
0AC33DAFF3A3FD7FF0B07CE5EFE4085A /* Info.plist */,
1FC1E35BBC2E35F573606F7B9F0D02B3 /* Pods-HGCircularSlider_Example.modulemap */,
68FCB8E1A71ACFE8005B591C586131E5 /* Pods-HGCircularSlider_Example-acknowledgements.markdown */,
4EE1E285F114B18B71EAB95DFFFF7339 /* Pods-HGCircularSlider_Example-acknowledgements.plist */,
B4C4E96099A8D6795C984DB7B95AD807 /* Pods-HGCircularSlider_Example-dummy.m */,
C4CA0B4C2E8913831F90CEFCA62B2477 /* Pods-HGCircularSlider_Example-frameworks.sh */,
B1CD1E7057BE7100789B4FFD822583CA /* Pods-HGCircularSlider_Example-resources.sh */,
878095F5D0332CFE20ADEA3786E008D8 /* Pods-HGCircularSlider_Example-umbrella.h */,
BC9B942FE2C795BEB661E564BBC311F5 /* Pods-HGCircularSlider_Example.debug.xcconfig */,
B764745D4D8B6808F11365EE10EC0EA5 /* Pods-HGCircularSlider_Example.release.xcconfig */,
);
name = "Pods-HGCircularSlider_Example";
path = "Target Support Files/Pods-HGCircularSlider_Example";
sourceTree = "<group>";
};
BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = {
isa = PBXGroup;
children = (
7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */,
);
name = Frameworks;
sourceTree = "<group>";
};
F958116962B8A5EEE5C8D95D43C17E00 /* HGCircularSlider */ = {
isa = PBXGroup;
children = (
20FFD0D1EB802AF0770F1FFBE59776E7 /* Classes */,
);
name = HGCircularSlider;
path = HGCircularSlider;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
91B8F2D0EFE38C1C378D7E285ED0EF83 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
701B1902E0FE9BFDE68D7D508A68C6AB /* Pods-HGCircularSlider_Example-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F9958A019875AA1140DD011A74E32915 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
1550C6C361FBA7208F0B738512FBCCC3 /* HGCircularSlider-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
FD157789ECAA9119B6544A0A74469EF2 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A68DBFDB91B45BB2AAC094785E7EC309 /* Pods-HGCircularSlider_Tests-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
01E9FE51F89215D0FFFCF2A90DD7B4B8 /* HGCircularSlider */ = {
isa = PBXNativeTarget;
buildConfigurationList = DF65F202387C67D48E19F90D5E2680A8 /* Build configuration list for PBXNativeTarget "HGCircularSlider" */;
buildPhases = (
892DD824F54C63917E4277EC062A976D /* Sources */,
8C17D400707D40FFC2487140453E686D /* Frameworks */,
F9958A019875AA1140DD011A74E32915 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = HGCircularSlider;
productName = HGCircularSlider;
productReference = 31300D8F0E8F2108E8A8630122FC05A9 /* HGCircularSlider.framework */;
productType = "com.apple.product-type.framework";
};
2A8CD0DA4DE95AF3B0156BF8264E5643 /* Pods-HGCircularSlider_Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = AFBEFC3DF7E833BC7598A9508A727492 /* Build configuration list for PBXNativeTarget "Pods-HGCircularSlider_Example" */;
buildPhases = (
FC8AEAA45F67B4102C65226631E2EE5E /* Sources */,
4CE00A022CBC950EF405F2F13ED01BC9 /* Frameworks */,
91B8F2D0EFE38C1C378D7E285ED0EF83 /* Headers */,
);
buildRules = (
);
dependencies = (
3137A47FC0C16A2EE12F3A4E98BBC8F2 /* PBXTargetDependency */,
);
name = "Pods-HGCircularSlider_Example";
productName = "Pods-HGCircularSlider_Example";
productReference = 4FBDE23EFF1DC52A744BAFE471C32AC8 /* Pods_HGCircularSlider_Example.framework */;
productType = "com.apple.product-type.framework";
};
57E525974A88DF4C3BA4FCAC23BD7E00 /* Pods-HGCircularSlider_Tests */ = {
isa = PBXNativeTarget;
buildConfigurationList = F939DA598E42D5BE1E188706A6C321FC /* Build configuration list for PBXNativeTarget "Pods-HGCircularSlider_Tests" */;
buildPhases = (
16B47A2CBE19A33154F98A5AF533CC20 /* Sources */,
C986BC3B9734FEFE31A29E26FE65CCC9 /* Frameworks */,
FD157789ECAA9119B6544A0A74469EF2 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = "Pods-HGCircularSlider_Tests";
productName = "Pods-HGCircularSlider_Tests";
productReference = 67AEE4E9C7F7FCE20B950E94B8A0E63F /* Pods_HGCircularSlider_Tests.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
D41D8CD98F00B204E9800998ECF8427E /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0700;
};
buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 7DB346D0F39D3F0E887471402A8071AB;
productRefGroup = 138882A46DF2A4BCFF539735C9C069A8 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
01E9FE51F89215D0FFFCF2A90DD7B4B8 /* HGCircularSlider */,
2A8CD0DA4DE95AF3B0156BF8264E5643 /* Pods-HGCircularSlider_Example */,
57E525974A88DF4C3BA4FCAC23BD7E00 /* Pods-HGCircularSlider_Tests */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
16B47A2CBE19A33154F98A5AF533CC20 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5E3A6A984EA5F2E480648072F6EC31B6 /* Pods-HGCircularSlider_Tests-dummy.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
892DD824F54C63917E4277EC062A976D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
09841079D61F5D5B26DE6E1C532A0251 /* CircularSlider+Draw.swift in Sources */,
C1F20073B014831B19D54FC71BC81290 /* CircularSlider.swift in Sources */,
A79A3FB8E86F403353F98CC476D0BCE4 /* CircularSliderHelper.swift in Sources */,
5E9964996690CD050A06951804F266D6 /* HGCircularSlider-dummy.m in Sources */,
E5AA7CA1BC364E20FD41FBBF75B1D8B4 /* MidPointCircularSlider.swift in Sources */,
3332E34C55C18B6E87354FD8ADD42C6E /* RangeCircularSlider.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
FC8AEAA45F67B4102C65226631E2EE5E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0BE861EEA17C5E608EDBEAEA13635E29 /* Pods-HGCircularSlider_Example-dummy.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
3137A47FC0C16A2EE12F3A4E98BBC8F2 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = HGCircularSlider;
target = 01E9FE51F89215D0FFFCF2A90DD7B4B8 /* HGCircularSlider */;
targetProxy = 92BC1FAF2F8972A0EBFB4E0D5D02B554 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
1013EECE7E290C34F6E68CD5035EF98C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = BC9B942FE2C795BEB661E564BBC311F5 /* Pods-HGCircularSlider_Example.debug.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "Target Support Files/Pods-HGCircularSlider_Example/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example.modulemap";
MTL_ENABLE_DEBUG_INFO = YES;
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = Pods_HGCircularSlider_Example;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
22D38CAEDF8F62050DCB621C8C360446 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5EADBC45FB24C6CED051AC3B3F83C32F /* Pods-HGCircularSlider_Tests.debug.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "Target Support Files/Pods-HGCircularSlider_Tests/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests.modulemap";
MTL_ENABLE_DEBUG_INFO = YES;
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = Pods_HGCircularSlider_Tests;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
2B1A8C97EC200D7001F69BC344857EB4 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C4D2D16BC6F4D50B2E308B95ED30CD59 /* HGCircularSlider.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREFIX_HEADER = "Target Support Files/HGCircularSlider/HGCircularSlider-prefix.pch";
INFOPLIST_FILE = "Target Support Files/HGCircularSlider/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MODULEMAP_FILE = "Target Support Files/HGCircularSlider/HGCircularSlider.modulemap";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_NAME = HGCircularSlider;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
3674433CCCE91E6208601DCA5FB7123B /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C4D2D16BC6F4D50B2E308B95ED30CD59 /* HGCircularSlider.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREFIX_HEADER = "Target Support Files/HGCircularSlider/HGCircularSlider-prefix.pch";
INFOPLIST_FILE = "Target Support Files/HGCircularSlider/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MODULEMAP_FILE = "Target Support Files/HGCircularSlider/HGCircularSlider.modulemap";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = HGCircularSlider;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
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;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGNING_REQUIRED = NO;
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_DEBUG=1",
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
ONLY_ACTIVE_ARCH = YES;
PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = "${SRCROOT}/../build";
};
name = Debug;
};
B7324857C38B065FEB1EEE3105C2367A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
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;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGNING_REQUIRED = NO;
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_RELEASE=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = "${SRCROOT}/../build";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
BA544AE583824FA9B764C6DBDDCBC7C3 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = B764745D4D8B6808F11365EE10EC0EA5 /* Pods-HGCircularSlider_Example.release.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "Target Support Files/Pods-HGCircularSlider_Example/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-HGCircularSlider_Example/Pods-HGCircularSlider_Example.modulemap";
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = Pods_HGCircularSlider_Example;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
C43778752CE9CAE2CC60D80A01DA8BDB /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7BAD0737B836754C7DA40234CFB9D9B4 /* Pods-HGCircularSlider_Tests.release.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "Target Support Files/Pods-HGCircularSlider_Tests/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-HGCircularSlider_Tests/Pods-HGCircularSlider_Tests.modulemap";
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = Pods_HGCircularSlider_Tests;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = {
isa = XCConfigurationList;
buildConfigurations = (
59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */,
B7324857C38B065FEB1EEE3105C2367A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
AFBEFC3DF7E833BC7598A9508A727492 /* Build configuration list for PBXNativeTarget "Pods-HGCircularSlider_Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1013EECE7E290C34F6E68CD5035EF98C /* Debug */,
BA544AE583824FA9B764C6DBDDCBC7C3 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DF65F202387C67D48E19F90D5E2680A8 /* Build configuration list for PBXNativeTarget "HGCircularSlider" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2B1A8C97EC200D7001F69BC344857EB4 /* Debug */,
3674433CCCE91E6208601DCA5FB7123B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F939DA598E42D5BE1E188706A6C321FC /* Build configuration list for PBXNativeTarget "Pods-HGCircularSlider_Tests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
22D38CAEDF8F62050DCB621C8C360446 /* Debug */,
C43778752CE9CAE2CC60D80A01DA8BDB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */;
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
</Workspace>
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.3</string>
<string>1.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
+1 -1
View File
@@ -21,7 +21,7 @@ class Tests: XCTestCase {
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock() {
self.measure() {
// Put the code you want to measure the time of here.
}
}
+2 -2
View File
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'HGCircularSlider'
s.version = '0.1.3'
s.version = '1.0.1'
s.summary = 'Multiple Circular Sliders used to select a value from a continuous range of values.'
@@ -28,7 +28,7 @@ s.author = { 'Hamza Ghazouani' => 'hamza.ghazouani@gmail.com' }
s.source = { :git => 'https://github.com/HamzaGhazouani/HGCircularSlider.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/GhazouaniHamza'
s.ios.deployment_target = '7.0'
s.ios.deployment_target = '8.0'
s.source_files = 'HGCircularSlider/Classes/**/*'
@@ -20,18 +20,19 @@ extension CircularSlider {
- parameter context: the context
*/
internal static func drawArc(withArc arc: Arc, lineWidth: CGFloat = 2, mode: CGPathDrawingMode = .FillStroke, inContext context: CGContextRef) {
internal static func drawArc(withArc arc: Arc, lineWidth: CGFloat = 2, mode: CGPathDrawingMode = .fillStroke, inContext context: CGContext) {
let circle = arc.circle
let origin = circle.origin
UIGraphicsPushContext(context)
CGContextBeginPath(context)
context.beginPath()
context.setLineWidth(lineWidth)
context.addArc(center: origin, radius: circle.radius, startAngle: arc.startAngle, endAngle: arc.endAngle, clockwise: false)
context.move(to: CGPoint(x: origin.x, y: origin.y))
context.drawPath(using: mode)
CGContextSetLineWidth(context, lineWidth)
CGContextAddArc(context, origin.x, origin.y, circle.radius, arc.startAngle, arc.endAngle, 0)
CGContextMoveToPoint(context, origin.x, origin.y)
CGContextDrawPath(context, mode)
UIGraphicsPopContext()
}
@@ -41,25 +42,26 @@ extension CircularSlider {
- parameter arc: the arc coordinates (origin, radius, start angle, end angle)
- parameter context: the context
*/
internal static func drawDisk(withArc arc: Arc, inContext context: CGContextRef) {
internal static func drawDisk(withArc arc: Arc, inContext context: CGContext) {
let circle = arc.circle
let origin = circle.origin
UIGraphicsPushContext(context)
CGContextBeginPath(context)
context.beginPath()
context.setLineWidth(0)
context.addArc(center: origin, radius: circle.radius, startAngle: arc.startAngle, endAngle: arc.endAngle, clockwise: false)
context.addLine(to: CGPoint(x: origin.x, y: origin.y))
context.drawPath(using: .fill)
CGContextSetLineWidth(context, 0)
CGContextAddArc(context, origin.x, origin.y, circle.radius, arc.startAngle, arc.endAngle, 0)
CGContextAddLineToPoint(context, origin.x, origin.y)
CGContextDrawPath(context, .Fill)
UIGraphicsPopContext()
}
// MARK: drawing instance methods
/// Draw the circular slider
internal func drawCircularSlider(inContext context: CGContextRef) {
internal func drawCircularSlider(inContext context: CGContext) {
diskColor.setFill()
trackColor.setStroke()
@@ -70,7 +72,7 @@ extension CircularSlider {
}
/// draw Filled arc between start an end angles
internal func drawFilledArc(fromAngle startAngle: CGFloat, toAngle endAngle: CGFloat, inContext context: CGContextRef) {
internal func drawFilledArc(fromAngle startAngle: CGFloat, toAngle endAngle: CGFloat, inContext context: CGContext) {
diskFillColor.setFill()
trackFillColor.setStroke()
@@ -80,7 +82,7 @@ extension CircularSlider {
// fill Arc
CircularSlider.drawDisk(withArc: arc, inContext: context)
// stroke Arc
CircularSlider.drawArc(withArc: arc, lineWidth: lineWidth, mode: .Stroke, inContext: context)
CircularSlider.drawArc(withArc: arc, lineWidth: lineWidth, mode: .stroke, inContext: context)
}
@@ -92,7 +94,8 @@ extension CircularSlider {
- returns: return the origin point of the thumb
*/
internal func drawThumb(withAngle angle: CGFloat, inContext context: CGContextRef) -> CGPoint {
@discardableResult
internal func drawThumb(withAngle angle: CGFloat, inContext context: CGContext) -> CGPoint {
let circle = Circle(origin: bounds.center, radius: self.radius)
let thumbOrigin = CircularSliderHelper.endPoint(fromCircle: circle, angle: angle)
let thumbCircle = Circle(origin: thumbOrigin, radius: thumbRadius)
@@ -112,14 +115,15 @@ extension CircularSlider {
- returns: return the origin point of the thumb
*/
internal func drawThumb(withImage image: UIImage, angle: CGFloat, inContext context: CGContextRef) -> CGPoint {
@discardableResult
internal func drawThumb(withImage image: UIImage, angle: CGFloat, inContext context: CGContext) -> CGPoint {
UIGraphicsPushContext(context)
CGContextBeginPath(context)
context.beginPath()
let circle = Circle(origin: bounds.center, radius: self.radius)
let thumbOrigin = CircularSliderHelper.endPoint(fromCircle: circle, angle: angle)
let imageSize = image.size
let imageFrame = CGRectMake(thumbOrigin.x - (imageSize.width / 2), thumbOrigin.y - (imageSize.height / 2), imageSize.width, imageSize.height)
image.drawInRect(imageFrame)
let imageFrame = CGRect(x: thumbOrigin.x - (imageSize.width / 2), y: thumbOrigin.y - (imageSize.height / 2), width: imageSize.width, height: imageSize.height)
image.draw(in: imageFrame)
UIGraphicsPopContext()
return thumbOrigin
+25 -26
View File
@@ -15,7 +15,7 @@ import UIKit
* ValueChanged, EditingDidBegin and EditingDidEnd
*/
@IBDesignable
public class CircularSlider: UIControl {
open class CircularSlider: UIControl {
// MARK: Changing the Sliders Appearance
@@ -24,28 +24,28 @@ public class CircularSlider: UIControl {
* The default value is a transparent color.
*/
@IBInspectable
public var diskFillColor: UIColor = UIColor.clearColor()
open var diskFillColor: UIColor = UIColor.clear
/**
* The color shown for the portion of the disk of slider that is unfilled. (outside start and end values)
* The default value of this property is the black color with alpha = 0.3.
*/
@IBInspectable
public var diskColor: UIColor = UIColor.grayColor()
open var diskColor: UIColor = UIColor.gray
/**
* The color shown for the portion of the slider that is filled. (between start and end values)
* The default value of this property is the tint color.
*/
@IBInspectable
public var trackFillColor: UIColor = UIColor.clearColor()
open var trackFillColor: UIColor = UIColor.clear
/**
* The color shown for the portion of the slider that is unfilled. (outside start and end values)
* The default value of this property is the white color.
*/
@IBInspectable
public var trackColor: UIColor = UIColor.whiteColor()
open var trackColor: UIColor = UIColor.white
/**
* The width of the circular line
@@ -53,7 +53,7 @@ public class CircularSlider: UIControl {
* The default value of this property is 5.0.
*/
@IBInspectable
public var lineWidth: CGFloat = 5.0
open var lineWidth: CGFloat = 5.0
/**
* The width of the thumb stroke line
@@ -61,7 +61,7 @@ public class CircularSlider: UIControl {
* The default value of this property is 4.0.
*/
@IBInspectable
public var thumbLineWidth: CGFloat = 4.0
open var thumbLineWidth: CGFloat = 4.0
/**
* The radius of thumb
@@ -69,7 +69,7 @@ public class CircularSlider: UIControl {
* The default value of this property is 13.0.
*/
@IBInspectable
public var thumbRadius: CGFloat = 13.0
open var thumbRadius: CGFloat = 13.0
/**
* The color used to tint thumb
@@ -78,14 +78,14 @@ public class CircularSlider: UIControl {
* The default value of this property is the groupTableViewBackgroundColor.
*/
@IBInspectable
public var endThumbTintColor: UIColor = UIColor.groupTableViewBackgroundColor()
open var endThumbTintColor: UIColor = UIColor.groupTableViewBackground
/**
* The stroke highlighted color of end thumb
* The default value of this property is blue color
*/
@IBInspectable
public var endThumbStrokeHighlightedColor: UIColor = UIColor.blueColor()
open var endThumbStrokeHighlightedColor: UIColor = UIColor.blue
/**
* The color used to tint the stroke of the end thumb
@@ -94,7 +94,7 @@ public class CircularSlider: UIControl {
* The default value of this property is the red color.
*/
@IBInspectable
public var endThumbStrokeColor: UIColor = UIColor.redColor()
open var endThumbStrokeColor: UIColor = UIColor.red
/**
* The image of the end thumb
@@ -102,7 +102,7 @@ public class CircularSlider: UIControl {
*
* The default value of this property is nil
*/
public var endThumbImage: UIImage?
open var endThumbImage: UIImage?
// MARK: Accessing the Sliders Value Limits
@@ -113,7 +113,7 @@ public class CircularSlider: UIControl {
* The default value of this property is 0.0.
*/
@IBInspectable
public var minimumValue: CGFloat = 0.0 {
open var minimumValue: CGFloat = 0.0 {
didSet {
if endPointValue < minimumValue {
endPointValue = minimumValue
@@ -128,7 +128,7 @@ public class CircularSlider: UIControl {
* The default value of this property is 1.0.
*/
@IBInspectable
public var maximumValue: CGFloat = 1.0 {
open var maximumValue: CGFloat = 1.0 {
didSet {
if endPointValue > maximumValue {
endPointValue = maximumValue
@@ -144,7 +144,7 @@ public class CircularSlider: UIControl {
*
* The default value of this property is 0.5
*/
public var endPointValue: CGFloat = 0.5 {
open var endPointValue: CGFloat = 0.5 {
didSet {
if oldValue == endPointValue {
return
@@ -171,7 +171,7 @@ public class CircularSlider: UIControl {
}
/// See superclass documentation
override public var highlighted: Bool {
override open var isHighlighted: Bool {
didSet {
setNeedsDisplay()
}
@@ -206,7 +206,7 @@ public class CircularSlider: UIControl {
/**
See superclass documentation
*/
override public func drawRect(rect: CGRect) {
override open func draw(_ rect: CGRect) {
guard let context = UIGraphicsGetCurrentContext() else { return }
drawCircularSlider(inContext: context)
@@ -219,8 +219,7 @@ public class CircularSlider: UIControl {
// draw end thumb
endThumbTintColor.setFill()
(highlighted == true) ? endThumbStrokeHighlightedColor.setStroke() : endThumbStrokeColor.setStroke()
drawThumb(withAngle: endAngle, inContext: context)
(isHighlighted == true) ? endThumbStrokeHighlightedColor.setStroke() : endThumbStrokeColor.setStroke()
guard let image = endThumbImage else {
drawThumb(withAngle: endAngle, inContext: context)
@@ -234,8 +233,8 @@ public class CircularSlider: UIControl {
/**
See superclass documentation
*/
override public func beginTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
sendActionsForControlEvents(.EditingDidBegin)
override open func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
sendActions(for: .editingDidBegin)
return true
}
@@ -243,10 +242,10 @@ public class CircularSlider: UIControl {
/**
See superclass documentation
*/
override public func continueTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
override open func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
// the position of the pan gesture
let touchPosition = touch.locationInView(self)
let touchPosition = touch.location(in: self)
let startPoint = CGPoint(x: bounds.center.x, y: 0)
let angle = CircularSliderHelper.angle(betweenFirstPoint: startPoint, secondPoint: touchPosition, inCircleWithCenter: bounds.center)
@@ -255,7 +254,7 @@ public class CircularSlider: UIControl {
let newValue = CircularSliderHelper.value(inInterval: interval, fromAngle: angle)
endPointValue = newValue
sendActionsForControlEvents(.ValueChanged)
sendActions(for: .valueChanged)
return true
}
@@ -263,8 +262,8 @@ public class CircularSlider: UIControl {
/**
See superclass documentation
*/
public override func endTrackingWithTouch(touch: UITouch?, withEvent event: UIEvent?) {
sendActionsForControlEvents(.EditingDidEnd)
open override func endTracking(_ touch: UITouch?, with event: UIEvent?) {
sendActions(for: .editingDidEnd)
}
}
@@ -22,7 +22,7 @@ internal struct Interval {
}
internal struct Circle {
var origin = CGPointZero
var origin = CGPoint.zero
var radius: CGFloat = 0
init(origin: CGPoint, radius: CGFloat) {
@@ -35,7 +35,7 @@ internal struct Circle {
internal struct Arc {
var circle = Circle(origin: CGPointZero, radius: 0)
var circle = Circle(origin: CGPoint.zero, radius: 0)
var startAngle: CGFloat = 0.0
var endAngle: CGFloat = 0.0
@@ -63,12 +63,12 @@ extension CGVector {
self.init(dx: dx, dy: dy)
}
func dotProduct(v: CGVector) -> CGFloat {
func dotProduct(_ v: CGVector) -> CGFloat {
let dotProduct = (dx * v.dx) + (dy * v.dy)
return dotProduct
}
func determinant(v: CGVector) -> CGFloat {
func determinant(_ v: CGVector) -> CGFloat {
let determinant = (v.dx * dy) - (dx * v.dy)
return determinant
}
@@ -88,7 +88,7 @@ extension CGRect {
// get the center of rect (bounds or frame)
internal var center: CGPoint {
get {
let center = CGPointMake(midX, midY)
let center = CGPoint(x: midX, y: midY)
return center
}
}
@@ -154,7 +154,7 @@ class CircularSliderHelper {
let x = circle.radius * cos(angle) + circle.origin.x // cos(α) = x / radius
let y = circle.radius * sin(angle) + circle.origin.y // sin(α) = y / radius
let point = CGPointMake(x, y)
let point = CGPoint(x: x, y: y)
return point
}
@@ -171,7 +171,7 @@ class CircularSliderHelper {
- returns: the value in the new interval
*/
internal static func scaleValue(value: CGFloat, fromInterval source: Interval, toInterval destination: Interval) -> CGFloat {
internal static func scaleValue(_ value: CGFloat, fromInterval source: Interval, toInterval destination: Interval) -> CGFloat {
let sourceRange = source.max - source.min
let destinationRange = destination.max - destination.min
let newValue = (((value - source.min) * destinationRange) / sourceRange) + destination.min
@@ -11,7 +11,7 @@
MidPointCircularSlider use the target-action mechanism to report changes made during the course of editing:
ValueChanged, EditingDidBegin and EditingDidEnd
*/
public class MidPointCircularSlider: RangeCircularSlider {
open class MidPointCircularSlider: RangeCircularSlider {
// MARK: properties
@@ -22,14 +22,14 @@ public class MidPointCircularSlider: RangeCircularSlider {
* The default value of this property is the groupTableViewBackgroundColor.
*/
@IBInspectable
public var midThumbTintColor: UIColor = UIColor.groupTableViewBackgroundColor()
open var midThumbTintColor: UIColor = UIColor.groupTableViewBackground
/**
* The stroke highlighted color of end thumb
* The default value of this property is blue color
*/
@IBInspectable
public var midThumbStrokeHighlightedColor: UIColor = UIColor.blueColor()
open var midThumbStrokeHighlightedColor: UIColor = UIColor.blue
/**
* The color used to tint the stroke of the mid thumb
@@ -38,7 +38,7 @@ public class MidPointCircularSlider: RangeCircularSlider {
* The default value of this property is the red color.
*/
@IBInspectable
public var midThumbStrokeColor: UIColor = UIColor.redColor()
open var midThumbStrokeColor: UIColor = UIColor.red
/**
@@ -47,7 +47,7 @@ public class MidPointCircularSlider: RangeCircularSlider {
*
* The default value of this property is nil
*/
public var midThumbImage: UIImage?
open var midThumbImage: UIImage?
/**
@@ -56,14 +56,14 @@ public class MidPointCircularSlider: RangeCircularSlider {
* The value of this property should be >= 0
* The default value of this property is 0.2
*/
override public var distance: CGFloat {
override open var distance: CGFloat {
didSet {
assert(distance >= 0, "The CustomCircularSlider works only with fixed distance between start and end points, so distance property should be > 0")
}
}
/// The value of the mid point (between the start and end points)
private var midPointValue: CGFloat {
fileprivate var midPointValue: CGFloat {
get {
return (endPointValue + startPointValue) / 2
}
@@ -94,7 +94,7 @@ public class MidPointCircularSlider: RangeCircularSlider {
/**
See superclass documentation
*/
override public func drawRect(rect: CGRect) {
override open func draw(_ rect: CGRect) {
guard let context = UIGraphicsGetCurrentContext() else { return }
drawCircularSlider(inContext: context)
@@ -112,10 +112,10 @@ public class MidPointCircularSlider: RangeCircularSlider {
// draw mid thumb
midThumbTintColor.setFill()
(highlighted == true) ? midThumbStrokeHighlightedColor.setStroke() : midThumbStrokeColor.setStroke()
(isHighlighted == true) ? midThumbStrokeHighlightedColor.setStroke() : midThumbStrokeColor.setStroke()
guard let image = midThumbImage else {
drawThumb(withAngle: midAngle, inContext: context)
drawThumb(withAngle: midAngle, inContext: context)
return
}
drawThumb(withImage: image, angle: midAngle, inContext: context)
@@ -126,8 +126,8 @@ public class MidPointCircularSlider: RangeCircularSlider {
/**
See superclass documentation
*/
override public func beginTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
sendActionsForControlEvents(.EditingDidBegin)
override open func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
sendActions(for: .editingDidBegin)
return true
}
@@ -135,10 +135,10 @@ public class MidPointCircularSlider: RangeCircularSlider {
/**
See superclass documentation
*/
override public func continueTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
let touchPosition = touch.locationInView(self)
override open func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
let touchPosition = touch.location(in: self)
let center = CGPointMake(bounds.midX, bounds.midY)
let center = CGPoint(x: bounds.midX, y: bounds.midY)
let startPoint = CGPoint(x: center.x, y: 0)
let angle = CircularSliderHelper.angle(betweenFirstPoint: startPoint, secondPoint: touchPosition, inCircleWithCenter: center)
@@ -147,7 +147,7 @@ public class MidPointCircularSlider: RangeCircularSlider {
midPointValue = newValue
sendActionsForControlEvents(.ValueChanged)
sendActions(for: .valueChanged)
return true
}
@@ -13,7 +13,7 @@ import UIKit
RangeCircularSlider use the target-action mechanism to report changes made during the course of editing:
ValueChanged, EditingDidBegin and EditingDidEnd
*/
public class RangeCircularSlider: CircularSlider {
open class RangeCircularSlider: CircularSlider {
enum SelectedThumb {
case startThumb
@@ -30,7 +30,7 @@ public class RangeCircularSlider: CircularSlider {
* The default value of this property is the groupTableViewBackgroundColor.
*/
@IBInspectable
public var startThumbTintColor: UIColor = UIColor.groupTableViewBackgroundColor()
open var startThumbTintColor: UIColor = UIColor.groupTableViewBackground
/**
* The color used to tint the stroke of the start thumb
@@ -39,14 +39,14 @@ public class RangeCircularSlider: CircularSlider {
* The default value of this property is the green color.
*/
@IBInspectable
public var startThumbStrokeColor: UIColor = UIColor.greenColor()
open var startThumbStrokeColor: UIColor = UIColor.green
/**
* The stroke highlighted color of start thumb
* The default value of this property is blue color
*/
@IBInspectable
public var startThumbStrokeHighlightedColor: UIColor = UIColor.purpleColor()
open var startThumbStrokeHighlightedColor: UIColor = UIColor.purple
/**
@@ -55,7 +55,7 @@ public class RangeCircularSlider: CircularSlider {
*
* The default value of this property is nil
*/
public var startThumbImage: UIImage?
open var startThumbImage: UIImage?
// MARK: Accessing the Sliders Value Limits
@@ -67,7 +67,7 @@ public class RangeCircularSlider: CircularSlider {
* The end value is also adjusted to match (startPointValue + distance) automatically (see startPointValue)
* The default value of this property is 0.0.
*/
override public var minimumValue: CGFloat {
override open var minimumValue: CGFloat {
didSet {
if startPointValue < minimumValue {
startPointValue = minimumValue
@@ -83,7 +83,7 @@ public class RangeCircularSlider: CircularSlider {
* The default value of this property is 1.0.
*/
@IBInspectable
override public var maximumValue: CGFloat {
override open var maximumValue: CGFloat {
didSet {
if endPointValue > maximumValue {
endPointValue = maximumValue
@@ -101,7 +101,7 @@ public class RangeCircularSlider: CircularSlider {
* The default value of this property is -1
*/
@IBInspectable
public var distance: CGFloat = -1 {
open var distance: CGFloat = -1 {
didSet {
assert(distance <= maximumValue - minimumValue, "The distance value is greater than distance between max and min value")
endPointValue = startPointValue + distance
@@ -116,7 +116,7 @@ public class RangeCircularSlider: CircularSlider {
*
* The default value of this property is 0.0.
*/
public var startPointValue: CGFloat = 0.0 {
open var startPointValue: CGFloat = 0.0 {
didSet {
if oldValue == startPointValue {
return
@@ -142,7 +142,7 @@ public class RangeCircularSlider: CircularSlider {
*
* The default value of this property is 0.5
*/
override public var endPointValue: CGFloat {
override open var endPointValue: CGFloat {
didSet {
if oldValue == endPointValue && distance <= 0 {
return
@@ -166,19 +166,19 @@ public class RangeCircularSlider: CircularSlider {
* The center of the start thumb
* Used to know in which thumb is the user gesture
*/
private var startThumbCenter: CGPoint = CGPointZero
fileprivate var startThumbCenter: CGPoint = CGPoint.zero
/**
* The center of the end thumb
* Used to know in which thumb is the user gesture
*/
private var endThumbCenter: CGPoint = CGPointZero
fileprivate var endThumbCenter: CGPoint = CGPoint.zero
/**
* The last touched thumb
* By default the value is none
*/
private var selectedThumb: SelectedThumb = .none
fileprivate var selectedThumb: SelectedThumb = .none
/**
Checks if the touched point affect the thumb
@@ -194,7 +194,7 @@ public class RangeCircularSlider: CircularSlider {
*/
internal func isThumb(withCenter thumbCenter: CGPoint, containsPoint touchPoint: CGPoint) -> Bool {
// the coordinates of thumb from its center
let rect = CGRectMake(thumbCenter.x - thumbRadius, thumbCenter.y - thumbRadius, thumbRadius * 2, thumbRadius * 2)
let rect = CGRect(x: thumbCenter.x - thumbRadius, y: thumbCenter.y - thumbRadius, width: thumbRadius * 2, height: thumbRadius * 2)
if rect.contains(touchPoint) {
return true
}
@@ -212,7 +212,7 @@ public class RangeCircularSlider: CircularSlider {
/**
See superclass documentation
*/
override public func drawRect(rect: CGRect) {
override open func draw(_ rect: CGRect) {
guard let context = UIGraphicsGetCurrentContext() else { return }
drawCircularSlider(inContext: context)
@@ -227,7 +227,7 @@ public class RangeCircularSlider: CircularSlider {
// end thumb
endThumbTintColor.setFill()
(highlighted == true && selectedThumb == .endThumb) ? endThumbStrokeHighlightedColor.setStroke() : endThumbStrokeColor.setStroke()
(isHighlighted == true && selectedThumb == .endThumb) ? endThumbStrokeHighlightedColor.setStroke() : endThumbStrokeColor.setStroke()
if let image = endThumbImage {
endThumbCenter = drawThumb(withImage: image, angle: endAngle, inContext: context)
} else {
@@ -236,7 +236,7 @@ public class RangeCircularSlider: CircularSlider {
// start thumb
startThumbTintColor.setFill()
(highlighted == true && selectedThumb == .startThumb) ? startThumbStrokeHighlightedColor.setStroke() : startThumbStrokeColor.setStroke()
(isHighlighted == true && selectedThumb == .startThumb) ? startThumbStrokeHighlightedColor.setStroke() : startThumbStrokeColor.setStroke()
if let image = startThumbImage {
startThumbCenter = drawThumb(withImage: image, angle: startAngle, inContext: context)
@@ -250,10 +250,10 @@ public class RangeCircularSlider: CircularSlider {
/**
See superclass documentation
*/
override public func beginTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
sendActionsForControlEvents(.EditingDidBegin)
override open func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
sendActions(for: .editingDidBegin)
// the position of the pan gesture
let touchPosition = touch.locationInView(self)
let touchPosition = touch.location(in: self)
if isThumb(withCenter: startThumbCenter, containsPoint: touchPosition) {
selectedThumb = .startThumb
@@ -270,10 +270,10 @@ public class RangeCircularSlider: CircularSlider {
/**
See superclass documentation
*/
override public func continueTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
override open func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
// the position of the pan gesture
let touchPosition = touch.locationInView(self)
let touchPosition = touch.location(in: self)
let startPoint = CGPoint(x: bounds.center.x, y: 0)
let angle = CircularSliderHelper.angle(betweenFirstPoint: startPoint, secondPoint: touchPosition, inCircleWithCenter: bounds.center)
@@ -288,8 +288,8 @@ public class RangeCircularSlider: CircularSlider {
else {
endPointValue = newValue
}
sendActionsForControlEvents(.ValueChanged)
sendActions(for: .valueChanged)
return true
}
}
}
+13 -7
View File
@@ -4,10 +4,12 @@
[![CI Status](http://img.shields.io/travis/HamzaGhazouani/HGCircularSlider.svg?style=flat)](https://travis-ci.org/Hamza Ghazouani/HGCircularSlider)
[![Version](https://img.shields.io/cocoapods/v/HGCircularSlider.svg?style=flat)](http://cocoapods.org/pods/HGCircularSlider)
[![License](https://img.shields.io/cocoapods/l/HGCircularSlider.svg?style=flat)](http://cocoapods.org/pods/HGCircularSlider)
[![Language](https://img.shields.io/badge/language-Swift-orange.svg?style=flat)]()
[![Platform](https://img.shields.io/cocoapods/p/HGCircularSlider.svg?style=flat)](http://cocoapods.org/pods/HGCircularSlider) <br />
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/hamzaghazouani/hgcircularslider/)](http://clayallsopp.github.io/readme-score?url=https://github.com/hamzaghazouani/hgcircularslider/tree/develop)
[![codebeat badge](https://codebeat.co/badges/c4db03f5-903a-4b0e-84bb-98362fc5bd7a)](https://codebeat.co/projects/github-com-hamzaghazouani-hgcircularslider)
[![Documentation](https://img.shields.io/cocoapods/metrics/doc-percent/HGCircularSlider.svg)](http://cocoadocs.org/docsets/HGCircularSlider/)
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/hamzaghazouani/hgcircularslider/)](http://clayallsopp.github.io/readme-score?url=https://github.com/hamzaghazouani/hgcircularslider/tree/develop)
## Example
@@ -18,7 +20,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp
## Requirements
- iOS 7.1+
- Xcode 7.3
- Xcode 8.0
## Installation
@@ -26,8 +28,12 @@ HGCircularSlider is available through [CocoaPods](http://cocoapods.org). To inst
it, simply add the following line to your Podfile:
``` ruby
# Swift 2.2 - Xcode 7.3.1
pod 'HGCircularSlider', '~> 0.1.1'
# Swift 3.0 - Xcode 8
pod 'HGCircularSlider', '~> 1.0.0'
# Swift 2.2 - Xcode 7.3.1 (Checkout Swift2_Xcode7.3 branche)
pod 'HGCircularSlider', '~> 0.1.2'
```
## Usage
@@ -46,11 +52,11 @@ let circularSlider = RangeCircularSlider(frame: myFrame)
let circularSlider = MidPointCircularSlider(frame: myFrame)
```
## Documentation
You can install documentation locally using [jazzy](https://github.com/realm/jazzy).
<!-- Full API documentation is available on [CocoaDocs](http://cocoadocs.org/docsets/HGCircularSlider/).<br/> -->
Full documentation is available on [CocoaDocs](http://cocoadocs.org/docsets/HGCircularSlider/).<br/>
You can also install documentation locally using [jazzy](https://github.com/realm/jazzy).
## References
The UI examples of the demo project inspired from [Dribbble](https://github.com/realm/jazzy).
The UI examples of the demo project inspired from [Dribbble](https://dribbble.com).
[Player](https://dribbble.com/shots/3062636-Countdown-Timer-Daily-UI-014)
[BasicExample](https://dribbble.com/shots/2153963-Dompet-Wallet-App)