diff --git a/ChoiceTracker/ChoiceTracker/ChoiceTracker.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate b/ChoiceTracker/ChoiceTracker/ChoiceTracker.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate index b2f79d9..b5f86f5 100644 Binary files a/ChoiceTracker/ChoiceTracker/ChoiceTracker.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate and b/ChoiceTracker/ChoiceTracker/ChoiceTracker.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/GuageViewDemo/GuageViewDemo.xcodeproj/project.pbxproj b/GuageViewDemo/GuageViewDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..ba0ddce --- /dev/null +++ b/GuageViewDemo/GuageViewDemo.xcodeproj/project.pbxproj @@ -0,0 +1,404 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 004D85D963ED83A9F582E7EC /* Pods_GuageViewDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1954F0BA478DDD876A627DD /* Pods_GuageViewDemo.framework */; }; + D09509A9211B75C6000B320B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D09509A8211B75C6000B320B /* AppDelegate.swift */; }; + D09509AB211B75C6000B320B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D09509AA211B75C6000B320B /* ViewController.swift */; }; + D09509AE211B75C6000B320B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D09509AC211B75C6000B320B /* Main.storyboard */; }; + D09509B0211B75C7000B320B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D09509AF211B75C7000B320B /* Assets.xcassets */; }; + D09509B3211B75C7000B320B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D09509B1211B75C7000B320B /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 25491093173745887754BE0B /* Pods-GuageViewDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GuageViewDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-GuageViewDemo/Pods-GuageViewDemo.release.xcconfig"; sourceTree = ""; }; + 45417ABF52DA7C040F33F73B /* Pods-GuageViewDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GuageViewDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GuageViewDemo/Pods-GuageViewDemo.debug.xcconfig"; sourceTree = ""; }; + D09509A5211B75C6000B320B /* GuageViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GuageViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + D09509A8211B75C6000B320B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + D09509AA211B75C6000B320B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + D09509AD211B75C6000B320B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + D09509AF211B75C7000B320B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + D09509B2211B75C7000B320B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + D09509B4211B75C7000B320B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F1954F0BA478DDD876A627DD /* Pods_GuageViewDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GuageViewDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + D09509A2211B75C6000B320B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 004D85D963ED83A9F582E7EC /* Pods_GuageViewDemo.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2B07F581A513A68934D7D3AA /* Pods */ = { + isa = PBXGroup; + children = ( + 45417ABF52DA7C040F33F73B /* Pods-GuageViewDemo.debug.xcconfig */, + 25491093173745887754BE0B /* Pods-GuageViewDemo.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 62DBDD40E632503C9F163E39 /* Frameworks */ = { + isa = PBXGroup; + children = ( + F1954F0BA478DDD876A627DD /* Pods_GuageViewDemo.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + D095099C211B75C6000B320B = { + isa = PBXGroup; + children = ( + D09509A7211B75C6000B320B /* GuageViewDemo */, + D09509A6211B75C6000B320B /* Products */, + 2B07F581A513A68934D7D3AA /* Pods */, + 62DBDD40E632503C9F163E39 /* Frameworks */, + ); + sourceTree = ""; + }; + D09509A6211B75C6000B320B /* Products */ = { + isa = PBXGroup; + children = ( + D09509A5211B75C6000B320B /* GuageViewDemo.app */, + ); + name = Products; + sourceTree = ""; + }; + D09509A7211B75C6000B320B /* GuageViewDemo */ = { + isa = PBXGroup; + children = ( + D09509A8211B75C6000B320B /* AppDelegate.swift */, + D09509AA211B75C6000B320B /* ViewController.swift */, + D09509AC211B75C6000B320B /* Main.storyboard */, + D09509AF211B75C7000B320B /* Assets.xcassets */, + D09509B1211B75C7000B320B /* LaunchScreen.storyboard */, + D09509B4211B75C7000B320B /* Info.plist */, + ); + path = GuageViewDemo; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + D09509A4211B75C6000B320B /* GuageViewDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = D09509B7211B75C7000B320B /* Build configuration list for PBXNativeTarget "GuageViewDemo" */; + buildPhases = ( + FCAC2FFAB64D85D953BCE17C /* [CP] Check Pods Manifest.lock */, + D09509A1211B75C6000B320B /* Sources */, + D09509A2211B75C6000B320B /* Frameworks */, + D09509A3211B75C6000B320B /* Resources */, + F4EFBE04F8086DF31FCEF788 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GuageViewDemo; + productName = GuageViewDemo; + productReference = D09509A5211B75C6000B320B /* GuageViewDemo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D095099D211B75C6000B320B /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0940; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = "Matt Green"; + TargetAttributes = { + D09509A4211B75C6000B320B = { + CreatedOnToolsVersion = 9.4.1; + }; + }; + }; + buildConfigurationList = D09509A0211B75C6000B320B /* Build configuration list for PBXProject "GuageViewDemo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = D095099C211B75C6000B320B; + productRefGroup = D09509A6211B75C6000B320B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + D09509A4211B75C6000B320B /* GuageViewDemo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + D09509A3211B75C6000B320B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D09509B3211B75C7000B320B /* LaunchScreen.storyboard in Resources */, + D09509B0211B75C7000B320B /* Assets.xcassets in Resources */, + D09509AE211B75C6000B320B /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + F4EFBE04F8086DF31FCEF788 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-GuageViewDemo/Pods-GuageViewDemo-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/ABGaugeViewKit/ABGaugeViewKit.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ABGaugeViewKit.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GuageViewDemo/Pods-GuageViewDemo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + FCAC2FFAB64D85D953BCE17C /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-GuageViewDemo-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + D09509A1211B75C6000B320B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D09509AB211B75C6000B320B /* ViewController.swift in Sources */, + D09509A9211B75C6000B320B /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + D09509AC211B75C6000B320B /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D09509AD211B75C6000B320B /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + D09509B1211B75C7000B320B /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D09509B2211B75C7000B320B /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + D09509B5211B75C7000B320B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.4; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + D09509B6211B75C7000B320B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.4; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + D09509B8211B75C7000B320B /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 45417ABF52DA7C040F33F73B /* Pods-GuageViewDemo.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = GuageViewDemo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "Matt-Green.GuageViewDemo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + D09509B9211B75C7000B320B /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 25491093173745887754BE0B /* Pods-GuageViewDemo.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = GuageViewDemo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "Matt-Green.GuageViewDemo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + D09509A0211B75C6000B320B /* Build configuration list for PBXProject "GuageViewDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D09509B5211B75C7000B320B /* Debug */, + D09509B6211B75C7000B320B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D09509B7211B75C7000B320B /* Build configuration list for PBXNativeTarget "GuageViewDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D09509B8211B75C7000B320B /* Debug */, + D09509B9211B75C7000B320B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D095099D211B75C6000B320B /* Project object */; +} diff --git a/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..a920ef1 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..0015611 Binary files /dev/null and b/GuageViewDemo/GuageViewDemo.xcodeproj/project.xcworkspace/xcuserdata/mgreen.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/GuageViewDemo/GuageViewDemo.xcodeproj/xcuserdata/mgreen.xcuserdatad/xcschemes/xcschememanagement.plist b/GuageViewDemo/GuageViewDemo.xcodeproj/xcuserdata/mgreen.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..146e984 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo.xcodeproj/xcuserdata/mgreen.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + GuageViewDemo.xcscheme + + orderHint + 2 + + + + diff --git a/GuageViewDemo/GuageViewDemo/AppDelegate.swift b/GuageViewDemo/GuageViewDemo/AppDelegate.swift new file mode 100644 index 0000000..dce821d --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// GuageViewDemo +// +// Created by Matt Green on 8/8/18. +// Copyright © 2018 Matt Green. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + 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 invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + 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) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + 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) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/GuageViewDemo/GuageViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/GuageViewDemo/GuageViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/GuageViewDemo/GuageViewDemo/Assets.xcassets/Contents.json b/GuageViewDemo/GuageViewDemo/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/GuageViewDemo/GuageViewDemo/Base.lproj/LaunchScreen.storyboard b/GuageViewDemo/GuageViewDemo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GuageViewDemo/GuageViewDemo/Base.lproj/Main.storyboard b/GuageViewDemo/GuageViewDemo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..03232a6 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/Base.lproj/Main.storyboard @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GuageViewDemo/GuageViewDemo/Info.plist b/GuageViewDemo/GuageViewDemo/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/GuageViewDemo/GuageViewDemo/ViewController.swift b/GuageViewDemo/GuageViewDemo/ViewController.swift new file mode 100644 index 0000000..765705f --- /dev/null +++ b/GuageViewDemo/GuageViewDemo/ViewController.swift @@ -0,0 +1,51 @@ +// +// ViewController.swift +// GuageViewDemo +// +// Created by Matt Green on 8/8/18. +// Copyright © 2018 Matt Green. All rights reserved. +// + +import UIKit +import ABGaugeViewKit + +class ViewController: UIViewController { + var gaugeValue: Int = 0; + + @IBOutlet var myGauge: ABGaugeView! + + @IBOutlet var guageLabel: UILabel! + + + @IBAction func plusButton(_ sender: Any) { + gaugeValue += 5 + updateDisplay() + } + + @IBAction func minusButton(_ sender: Any) { + gaugeValue -= 5 + updateDisplay() + } + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + myGauge.needleValue = CGFloat(gaugeValue) + guageLabel.text = String(gaugeValue) + self.view.setNeedsDisplay() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + func updateDisplay() { + myGauge.needleValue = CGFloat(gaugeValue) + guageLabel.text = String(gaugeValue) + self.view.setNeedsDisplay() + } + + +} +