TGPControls Demo, iOS8 + Swift + IBInspectable
This commit is contained in:
parent
d481e85347
commit
ddafe6a7af
|
|
@ -0,0 +1,16 @@
|
|||
# Requires cocoaPods 0.36.0.beta.2 or better.
|
||||
# To update use: `gem install cocoapods --pre`
|
||||
|
||||
platform :ios, '8.0'
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
use_frameworks!
|
||||
|
||||
target 'TGPControlsDemo' do
|
||||
# pod 'TGPControls', :path => '../../TGPControls'
|
||||
pod 'TGPControls', '0.0.2'
|
||||
end
|
||||
|
||||
target 'TGPControlsDemoTests' do
|
||||
|
||||
end
|
||||
|
||||
|
|
@ -0,0 +1,967 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>archiveVersion</key>
|
||||
<string>1</string>
|
||||
<key>classes</key>
|
||||
<dict/>
|
||||
<key>objectVersion</key>
|
||||
<string>46</string>
|
||||
<key>objects</key>
|
||||
<dict>
|
||||
<key>06B1EA7FFF5C48AB28F48C03</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>D99E06034FFE0CC31C39944E</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>ATTRIBUTES</key>
|
||||
<array>
|
||||
<string>Weak</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>3FC1CB30371C38246EE22494</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array/>
|
||||
<key>inputPaths</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXShellScriptBuildPhase</string>
|
||||
<key>name</key>
|
||||
<string>Copy Pods Resources</string>
|
||||
<key>outputPaths</key>
|
||||
<array/>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
<key>shellPath</key>
|
||||
<string>/bin/sh</string>
|
||||
<key>shellScript</key>
|
||||
<string>"${SRCROOT}/Pods/Target Support Files/Pods-TGPControlsDemo/Pods-TGPControlsDemo-resources.sh"
|
||||
</string>
|
||||
<key>showEnvVarsInLog</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>43F34D3BAAD6BE92D4D970B5</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>D99E06034FFE0CC31C39944E</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>name</key>
|
||||
<string>Frameworks</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>6FE2512BFEFD20704B4B9262</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array/>
|
||||
<key>inputPaths</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXShellScriptBuildPhase</string>
|
||||
<key>name</key>
|
||||
<string>Embed Pods Frameworks</string>
|
||||
<key>outputPaths</key>
|
||||
<array/>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
<key>shellPath</key>
|
||||
<string>/bin/sh</string>
|
||||
<key>shellScript</key>
|
||||
<string>"${SRCROOT}/Pods/Target Support Files/Pods-TGPControlsDemo/Pods-TGPControlsDemo-frameworks.sh"
|
||||
</string>
|
||||
<key>showEnvVarsInLog</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>9DC49ADB016D0365B07A2CE3</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array/>
|
||||
<key>inputPaths</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXShellScriptBuildPhase</string>
|
||||
<key>name</key>
|
||||
<string>Check Pods Manifest.lock</string>
|
||||
<key>outputPaths</key>
|
||||
<array/>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
<key>shellPath</key>
|
||||
<string>/bin/sh</string>
|
||||
<key>shellScript</key>
|
||||
<string>diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
|
||||
if [[ $? != 0 ]] ; then
|
||||
cat << EOM
|
||||
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
|
||||
EOM
|
||||
exit 1
|
||||
fi
|
||||
</string>
|
||||
<key>showEnvVarsInLog</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>C024A6D85198B6A4399C2561</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>E1E29E38530A3F94DA312C93</string>
|
||||
<string>EA6AEAFB632330729C70C835</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>name</key>
|
||||
<string>Pods</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>D99E06034FFE0CC31C39944E</key>
|
||||
<dict>
|
||||
<key>explicitFileType</key>
|
||||
<string>wrapper.framework</string>
|
||||
<key>includeInIndex</key>
|
||||
<string>0</string>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>path</key>
|
||||
<string>Pods_TGPControlsDemo.framework</string>
|
||||
<key>sourceTree</key>
|
||||
<string>BUILT_PRODUCTS_DIR</string>
|
||||
</dict>
|
||||
<key>DC0B42021A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B42301A901F09008D679A</string>
|
||||
<string>DC0B420D1A901E59008D679A</string>
|
||||
<string>DC0B42231A901E59008D679A</string>
|
||||
<string>DC0B420C1A901E59008D679A</string>
|
||||
<string>C024A6D85198B6A4399C2561</string>
|
||||
<string>43F34D3BAAD6BE92D4D970B5</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42031A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>attributes</key>
|
||||
<dict>
|
||||
<key>LastUpgradeCheck</key>
|
||||
<string>0610</string>
|
||||
<key>ORGANIZATIONNAME</key>
|
||||
<string>TheGothicParty</string>
|
||||
<key>TargetAttributes</key>
|
||||
<dict>
|
||||
<key>DC0B420A1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>CreatedOnToolsVersion</key>
|
||||
<string>6.1.1</string>
|
||||
</dict>
|
||||
<key>DC0B421F1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>CreatedOnToolsVersion</key>
|
||||
<string>6.1.1</string>
|
||||
<key>TestTargetID</key>
|
||||
<string>DC0B420A1A901E59008D679A</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>buildConfigurationList</key>
|
||||
<string>DC0B42061A901E59008D679A</string>
|
||||
<key>compatibilityVersion</key>
|
||||
<string>Xcode 3.2</string>
|
||||
<key>developmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>hasScannedForEncodings</key>
|
||||
<string>0</string>
|
||||
<key>isa</key>
|
||||
<string>PBXProject</string>
|
||||
<key>knownRegions</key>
|
||||
<array>
|
||||
<string>en</string>
|
||||
<string>Base</string>
|
||||
</array>
|
||||
<key>mainGroup</key>
|
||||
<string>DC0B42021A901E59008D679A</string>
|
||||
<key>productRefGroup</key>
|
||||
<string>DC0B420C1A901E59008D679A</string>
|
||||
<key>projectDirPath</key>
|
||||
<string></string>
|
||||
<key>projectReferences</key>
|
||||
<array/>
|
||||
<key>projectRoot</key>
|
||||
<string></string>
|
||||
<key>targets</key>
|
||||
<array>
|
||||
<string>DC0B420A1A901E59008D679A</string>
|
||||
<string>DC0B421F1A901E59008D679A</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>DC0B42061A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildConfigurations</key>
|
||||
<array>
|
||||
<string>DC0B42281A901E59008D679A</string>
|
||||
<string>DC0B42291A901E59008D679A</string>
|
||||
</array>
|
||||
<key>defaultConfigurationIsVisible</key>
|
||||
<string>0</string>
|
||||
<key>defaultConfigurationName</key>
|
||||
<string>Release</string>
|
||||
<key>isa</key>
|
||||
<string>XCConfigurationList</string>
|
||||
</dict>
|
||||
<key>DC0B42071A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array>
|
||||
<string>DC0B42131A901E59008D679A</string>
|
||||
<string>DC0B42111A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXSourcesBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B42081A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array>
|
||||
<string>06B1EA7FFF5C48AB28F48C03</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXFrameworksBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B42091A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array>
|
||||
<string>DC0B42161A901E59008D679A</string>
|
||||
<string>DC0B421B1A901E59008D679A</string>
|
||||
<string>DC0B42181A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXResourcesBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B420A1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildConfigurationList</key>
|
||||
<string>DC0B422A1A901E59008D679A</string>
|
||||
<key>buildPhases</key>
|
||||
<array>
|
||||
<string>9DC49ADB016D0365B07A2CE3</string>
|
||||
<string>DC0B42071A901E59008D679A</string>
|
||||
<string>DC0B42081A901E59008D679A</string>
|
||||
<string>DC0B42091A901E59008D679A</string>
|
||||
<string>3FC1CB30371C38246EE22494</string>
|
||||
<string>6FE2512BFEFD20704B4B9262</string>
|
||||
</array>
|
||||
<key>buildRules</key>
|
||||
<array/>
|
||||
<key>dependencies</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXNativeTarget</string>
|
||||
<key>name</key>
|
||||
<string>TGPControlsDemo</string>
|
||||
<key>productName</key>
|
||||
<string>TGPControlsDemo</string>
|
||||
<key>productReference</key>
|
||||
<string>DC0B420B1A901E59008D679A</string>
|
||||
<key>productType</key>
|
||||
<string>com.apple.product-type.application</string>
|
||||
</dict>
|
||||
<key>DC0B420B1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>explicitFileType</key>
|
||||
<string>wrapper.application</string>
|
||||
<key>includeInIndex</key>
|
||||
<string>0</string>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>path</key>
|
||||
<string>TGPControlsDemo.app</string>
|
||||
<key>sourceTree</key>
|
||||
<string>BUILT_PRODUCTS_DIR</string>
|
||||
</dict>
|
||||
<key>DC0B420C1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B420B1A901E59008D679A</string>
|
||||
<string>DC0B42201A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>name</key>
|
||||
<string>Products</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B420D1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B42101A901E59008D679A</string>
|
||||
<string>DC0B42121A901E59008D679A</string>
|
||||
<string>DC0B42141A901E59008D679A</string>
|
||||
<string>DC0B42171A901E59008D679A</string>
|
||||
<string>DC0B42191A901E59008D679A</string>
|
||||
<string>DC0B420E1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>path</key>
|
||||
<string>TGPControlsDemo</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B420E1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B420F1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>name</key>
|
||||
<string>Supporting Files</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B420F1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>text.plist.xml</string>
|
||||
<key>path</key>
|
||||
<string>Info.plist</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42101A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>sourcecode.swift</string>
|
||||
<key>path</key>
|
||||
<string>AppDelegate.swift</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42111A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42101A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B42121A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>sourcecode.swift</string>
|
||||
<key>path</key>
|
||||
<string>ViewController.swift</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42131A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42121A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B42141A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B42151A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXVariantGroup</string>
|
||||
<key>name</key>
|
||||
<string>Main.storyboard</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42151A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>file.storyboard</string>
|
||||
<key>name</key>
|
||||
<string>Base</string>
|
||||
<key>path</key>
|
||||
<string>Base.lproj/Main.storyboard</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42161A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42141A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B42171A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>folder.assetcatalog</string>
|
||||
<key>path</key>
|
||||
<string>Images.xcassets</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42181A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42171A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B42191A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B421A1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXVariantGroup</string>
|
||||
<key>name</key>
|
||||
<string>LaunchScreen.xib</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B421A1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>file.xib</string>
|
||||
<key>name</key>
|
||||
<string>Base</string>
|
||||
<key>path</key>
|
||||
<string>Base.lproj/LaunchScreen.xib</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B421B1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42191A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B421C1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array>
|
||||
<string>DC0B42271A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXSourcesBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B421D1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXFrameworksBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B421E1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildActionMask</key>
|
||||
<string>2147483647</string>
|
||||
<key>files</key>
|
||||
<array/>
|
||||
<key>isa</key>
|
||||
<string>PBXResourcesBuildPhase</string>
|
||||
<key>runOnlyForDeploymentPostprocessing</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>DC0B421F1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildConfigurationList</key>
|
||||
<string>DC0B422D1A901E59008D679A</string>
|
||||
<key>buildPhases</key>
|
||||
<array>
|
||||
<string>DC0B421C1A901E59008D679A</string>
|
||||
<string>DC0B421D1A901E59008D679A</string>
|
||||
<string>DC0B421E1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>buildRules</key>
|
||||
<array/>
|
||||
<key>dependencies</key>
|
||||
<array>
|
||||
<string>DC0B42221A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXNativeTarget</string>
|
||||
<key>name</key>
|
||||
<string>TGPControlsDemoTests</string>
|
||||
<key>productName</key>
|
||||
<string>TGPControlsDemoTests</string>
|
||||
<key>productReference</key>
|
||||
<string>DC0B42201A901E59008D679A</string>
|
||||
<key>productType</key>
|
||||
<string>com.apple.product-type.bundle.unit-test</string>
|
||||
</dict>
|
||||
<key>DC0B42201A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>explicitFileType</key>
|
||||
<string>wrapper.cfbundle</string>
|
||||
<key>includeInIndex</key>
|
||||
<string>0</string>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>path</key>
|
||||
<string>TGPControlsDemoTests.xctest</string>
|
||||
<key>sourceTree</key>
|
||||
<string>BUILT_PRODUCTS_DIR</string>
|
||||
</dict>
|
||||
<key>DC0B42211A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>containerPortal</key>
|
||||
<string>DC0B42031A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXContainerItemProxy</string>
|
||||
<key>proxyType</key>
|
||||
<string>1</string>
|
||||
<key>remoteGlobalIDString</key>
|
||||
<string>DC0B420A1A901E59008D679A</string>
|
||||
<key>remoteInfo</key>
|
||||
<string>TGPControlsDemo</string>
|
||||
</dict>
|
||||
<key>DC0B42221A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXTargetDependency</string>
|
||||
<key>target</key>
|
||||
<string>DC0B420A1A901E59008D679A</string>
|
||||
<key>targetProxy</key>
|
||||
<string>DC0B42211A901E59008D679A</string>
|
||||
</dict>
|
||||
<key>DC0B42231A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B42261A901E59008D679A</string>
|
||||
<string>DC0B42241A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>path</key>
|
||||
<string>TGPControlsDemoTests</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42241A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>children</key>
|
||||
<array>
|
||||
<string>DC0B42251A901E59008D679A</string>
|
||||
</array>
|
||||
<key>isa</key>
|
||||
<string>PBXGroup</string>
|
||||
<key>name</key>
|
||||
<string>Supporting Files</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42251A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>text.plist.xml</string>
|
||||
<key>path</key>
|
||||
<string>Info.plist</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42261A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>sourcecode.swift</string>
|
||||
<key>path</key>
|
||||
<string>TGPControlsDemoTests.swift</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>DC0B42271A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>fileRef</key>
|
||||
<string>DC0B42261A901E59008D679A</string>
|
||||
<key>isa</key>
|
||||
<string>PBXBuildFile</string>
|
||||
</dict>
|
||||
<key>DC0B42281A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>ALWAYS_SEARCH_USER_PATHS</key>
|
||||
<string>NO</string>
|
||||
<key>CLANG_CXX_LANGUAGE_STANDARD</key>
|
||||
<string>gnu++0x</string>
|
||||
<key>CLANG_CXX_LIBRARY</key>
|
||||
<string>libc++</string>
|
||||
<key>CLANG_ENABLE_MODULES</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_ENABLE_OBJC_ARC</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_BOOL_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_CONSTANT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_DIRECT_OBJC_ISA_USAGE</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>CLANG_WARN_EMPTY_BODY</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_ENUM_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_INT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_OBJC_ROOT_CLASS</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>CLANG_WARN_UNREACHABLE_CODE</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN__DUPLICATE_METHOD_MATCH</key>
|
||||
<string>YES</string>
|
||||
<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
|
||||
<string>iPhone Developer</string>
|
||||
<key>COPY_PHASE_STRIP</key>
|
||||
<string>NO</string>
|
||||
<key>ENABLE_STRICT_OBJC_MSGSEND</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_C_LANGUAGE_STANDARD</key>
|
||||
<string>gnu99</string>
|
||||
<key>GCC_DYNAMIC_NO_PIC</key>
|
||||
<string>NO</string>
|
||||
<key>GCC_OPTIMIZATION_LEVEL</key>
|
||||
<string>0</string>
|
||||
<key>GCC_PREPROCESSOR_DEFINITIONS</key>
|
||||
<array>
|
||||
<string>DEBUG=1</string>
|
||||
<string>$(inherited)</string>
|
||||
</array>
|
||||
<key>GCC_SYMBOLS_PRIVATE_EXTERN</key>
|
||||
<string>NO</string>
|
||||
<key>GCC_WARN_64_TO_32_BIT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_ABOUT_RETURN_TYPE</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>GCC_WARN_UNDECLARED_SELECTOR</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_UNINITIALIZED_AUTOS</key>
|
||||
<string>YES_AGGRESSIVE</string>
|
||||
<key>GCC_WARN_UNUSED_FUNCTION</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_UNUSED_VARIABLE</key>
|
||||
<string>YES</string>
|
||||
<key>IPHONEOS_DEPLOYMENT_TARGET</key>
|
||||
<string>8.1</string>
|
||||
<key>MTL_ENABLE_DEBUG_INFO</key>
|
||||
<string>YES</string>
|
||||
<key>ONLY_ACTIVE_ARCH</key>
|
||||
<string>YES</string>
|
||||
<key>SDKROOT</key>
|
||||
<string>iphoneos</string>
|
||||
<key>SWIFT_OPTIMIZATION_LEVEL</key>
|
||||
<string>-Onone</string>
|
||||
<key>TARGETED_DEVICE_FAMILY</key>
|
||||
<string>1,2</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Debug</string>
|
||||
</dict>
|
||||
<key>DC0B42291A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>ALWAYS_SEARCH_USER_PATHS</key>
|
||||
<string>NO</string>
|
||||
<key>CLANG_CXX_LANGUAGE_STANDARD</key>
|
||||
<string>gnu++0x</string>
|
||||
<key>CLANG_CXX_LIBRARY</key>
|
||||
<string>libc++</string>
|
||||
<key>CLANG_ENABLE_MODULES</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_ENABLE_OBJC_ARC</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_BOOL_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_CONSTANT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_DIRECT_OBJC_ISA_USAGE</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>CLANG_WARN_EMPTY_BODY</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_ENUM_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_INT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN_OBJC_ROOT_CLASS</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>CLANG_WARN_UNREACHABLE_CODE</key>
|
||||
<string>YES</string>
|
||||
<key>CLANG_WARN__DUPLICATE_METHOD_MATCH</key>
|
||||
<string>YES</string>
|
||||
<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
|
||||
<string>iPhone Developer</string>
|
||||
<key>COPY_PHASE_STRIP</key>
|
||||
<string>YES</string>
|
||||
<key>ENABLE_NS_ASSERTIONS</key>
|
||||
<string>NO</string>
|
||||
<key>ENABLE_STRICT_OBJC_MSGSEND</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_C_LANGUAGE_STANDARD</key>
|
||||
<string>gnu99</string>
|
||||
<key>GCC_WARN_64_TO_32_BIT_CONVERSION</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_ABOUT_RETURN_TYPE</key>
|
||||
<string>YES_ERROR</string>
|
||||
<key>GCC_WARN_UNDECLARED_SELECTOR</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_UNINITIALIZED_AUTOS</key>
|
||||
<string>YES_AGGRESSIVE</string>
|
||||
<key>GCC_WARN_UNUSED_FUNCTION</key>
|
||||
<string>YES</string>
|
||||
<key>GCC_WARN_UNUSED_VARIABLE</key>
|
||||
<string>YES</string>
|
||||
<key>IPHONEOS_DEPLOYMENT_TARGET</key>
|
||||
<string>8.1</string>
|
||||
<key>MTL_ENABLE_DEBUG_INFO</key>
|
||||
<string>NO</string>
|
||||
<key>SDKROOT</key>
|
||||
<string>iphoneos</string>
|
||||
<key>TARGETED_DEVICE_FAMILY</key>
|
||||
<string>1,2</string>
|
||||
<key>VALIDATE_PRODUCT</key>
|
||||
<string>YES</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Release</string>
|
||||
</dict>
|
||||
<key>DC0B422A1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildConfigurations</key>
|
||||
<array>
|
||||
<string>DC0B422B1A901E59008D679A</string>
|
||||
<string>DC0B422C1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>defaultConfigurationIsVisible</key>
|
||||
<string>0</string>
|
||||
<key>defaultConfigurationName</key>
|
||||
<string>Release</string>
|
||||
<key>isa</key>
|
||||
<string>XCConfigurationList</string>
|
||||
</dict>
|
||||
<key>DC0B422B1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>baseConfigurationReference</key>
|
||||
<string>E1E29E38530A3F94DA312C93</string>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>ASSETCATALOG_COMPILER_APPICON_NAME</key>
|
||||
<string>AppIcon</string>
|
||||
<key>INFOPLIST_FILE</key>
|
||||
<string>TGPControlsDemo/Info.plist</string>
|
||||
<key>IPHONEOS_DEPLOYMENT_TARGET</key>
|
||||
<string>8.0</string>
|
||||
<key>LD_RUNPATH_SEARCH_PATHS</key>
|
||||
<string>$(inherited) @executable_path/Frameworks</string>
|
||||
<key>PRODUCT_NAME</key>
|
||||
<string>$(TARGET_NAME)</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Debug</string>
|
||||
</dict>
|
||||
<key>DC0B422C1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>baseConfigurationReference</key>
|
||||
<string>EA6AEAFB632330729C70C835</string>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>ASSETCATALOG_COMPILER_APPICON_NAME</key>
|
||||
<string>AppIcon</string>
|
||||
<key>INFOPLIST_FILE</key>
|
||||
<string>TGPControlsDemo/Info.plist</string>
|
||||
<key>IPHONEOS_DEPLOYMENT_TARGET</key>
|
||||
<string>8.0</string>
|
||||
<key>LD_RUNPATH_SEARCH_PATHS</key>
|
||||
<string>$(inherited) @executable_path/Frameworks</string>
|
||||
<key>PRODUCT_NAME</key>
|
||||
<string>$(TARGET_NAME)</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Release</string>
|
||||
</dict>
|
||||
<key>DC0B422D1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildConfigurations</key>
|
||||
<array>
|
||||
<string>DC0B422E1A901E59008D679A</string>
|
||||
<string>DC0B422F1A901E59008D679A</string>
|
||||
</array>
|
||||
<key>defaultConfigurationIsVisible</key>
|
||||
<string>0</string>
|
||||
<key>defaultConfigurationName</key>
|
||||
<string>Release</string>
|
||||
<key>isa</key>
|
||||
<string>XCConfigurationList</string>
|
||||
</dict>
|
||||
<key>DC0B422E1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>BUNDLE_LOADER</key>
|
||||
<string>$(TEST_HOST)</string>
|
||||
<key>FRAMEWORK_SEARCH_PATHS</key>
|
||||
<array>
|
||||
<string>$(SDKROOT)/Developer/Library/Frameworks</string>
|
||||
<string>$(inherited)</string>
|
||||
</array>
|
||||
<key>GCC_PREPROCESSOR_DEFINITIONS</key>
|
||||
<array>
|
||||
<string>DEBUG=1</string>
|
||||
<string>$(inherited)</string>
|
||||
</array>
|
||||
<key>INFOPLIST_FILE</key>
|
||||
<string>TGPControlsDemoTests/Info.plist</string>
|
||||
<key>LD_RUNPATH_SEARCH_PATHS</key>
|
||||
<string>$(inherited) @executable_path/Frameworks @loader_path/Frameworks</string>
|
||||
<key>PRODUCT_NAME</key>
|
||||
<string>$(TARGET_NAME)</string>
|
||||
<key>TEST_HOST</key>
|
||||
<string>$(BUILT_PRODUCTS_DIR)/TGPControlsDemo.app/TGPControlsDemo</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Debug</string>
|
||||
</dict>
|
||||
<key>DC0B422F1A901E59008D679A</key>
|
||||
<dict>
|
||||
<key>buildSettings</key>
|
||||
<dict>
|
||||
<key>BUNDLE_LOADER</key>
|
||||
<string>$(TEST_HOST)</string>
|
||||
<key>FRAMEWORK_SEARCH_PATHS</key>
|
||||
<array>
|
||||
<string>$(SDKROOT)/Developer/Library/Frameworks</string>
|
||||
<string>$(inherited)</string>
|
||||
</array>
|
||||
<key>INFOPLIST_FILE</key>
|
||||
<string>TGPControlsDemoTests/Info.plist</string>
|
||||
<key>LD_RUNPATH_SEARCH_PATHS</key>
|
||||
<string>$(inherited) @executable_path/Frameworks @loader_path/Frameworks</string>
|
||||
<key>PRODUCT_NAME</key>
|
||||
<string>$(TARGET_NAME)</string>
|
||||
<key>TEST_HOST</key>
|
||||
<string>$(BUILT_PRODUCTS_DIR)/TGPControlsDemo.app/TGPControlsDemo</string>
|
||||
</dict>
|
||||
<key>isa</key>
|
||||
<string>XCBuildConfiguration</string>
|
||||
<key>name</key>
|
||||
<string>Release</string>
|
||||
</dict>
|
||||
<key>DC0B42301A901F09008D679A</key>
|
||||
<dict>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>text</string>
|
||||
<key>path</key>
|
||||
<string>Podfile</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
<key>xcLanguageSpecificationIdentifier</key>
|
||||
<string>xcode.lang.ruby</string>
|
||||
</dict>
|
||||
<key>E1E29E38530A3F94DA312C93</key>
|
||||
<dict>
|
||||
<key>includeInIndex</key>
|
||||
<string>1</string>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>text.xcconfig</string>
|
||||
<key>name</key>
|
||||
<string>Pods-TGPControlsDemo.debug.xcconfig</string>
|
||||
<key>path</key>
|
||||
<string>Pods/Target Support Files/Pods-TGPControlsDemo/Pods-TGPControlsDemo.debug.xcconfig</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
<key>EA6AEAFB632330729C70C835</key>
|
||||
<dict>
|
||||
<key>includeInIndex</key>
|
||||
<string>1</string>
|
||||
<key>isa</key>
|
||||
<string>PBXFileReference</string>
|
||||
<key>lastKnownFileType</key>
|
||||
<string>text.xcconfig</string>
|
||||
<key>name</key>
|
||||
<string>Pods-TGPControlsDemo.release.xcconfig</string>
|
||||
<key>path</key>
|
||||
<string>Pods/Target Support Files/Pods-TGPControlsDemo/Pods-TGPControlsDemo.release.xcconfig</string>
|
||||
<key>sourceTree</key>
|
||||
<string><group></string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rootObject</key>
|
||||
<string>DC0B42031A901E59008D679A</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
// @file: AppDelegate.swift
|
||||
// @project: TGPControlsDemo (TGPControls)
|
||||
//
|
||||
// @history: Created November 27, 2014 (Thanksgiving Day)
|
||||
// @author: Xavier Schott
|
||||
// mailto://xschott@gmail.com
|
||||
// http://thegothicparty.com
|
||||
// tel://+18089383634
|
||||
//
|
||||
// @license: http://opensource.org/licenses/MIT
|
||||
// Copyright (c) 2014, Xavier Schott
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
|
||||
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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:.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
|
||||
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 TheGothicParty. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
|
||||
<rect key="frame" x="20" y="439" width="441" height="21"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TGPControlsDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
|
||||
<rect key="frame" x="20" y="140" width="441" height="43"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
|
||||
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
|
||||
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
|
||||
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
|
||||
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
|
||||
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
|
||||
</constraints>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="548" y="455"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
|
|
@ -0,0 +1,434 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14C109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="TGPControlsDemo" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TGPDiscreteSlider + TGPCamelLabels" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hED-uQ-kcm">
|
||||
<rect key="frame" x="16" y="53" width="294" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="me6-ut-RSP" userLabel="oneTo10Labels" customClass="TGPCamelLabels">
|
||||
<rect key="frame" x="16" y="74" width="343" height="40"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="YPH-7w-2mY"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="ticksDistance">
|
||||
<real key="value" value="33"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="upFontName" value="AvenirNext-Regular"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="downFontName" value="AvenirNext-Regular"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="upFontSize">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="downFontSize">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="upFontColor">
|
||||
<color key="value" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="downFontColor">
|
||||
<color key="value" red="0.70196080207824707" green="0.70196080207824707" blue="0.70196080207824707" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ABG-DJ-HY6" userLabel="oneTo10Slider" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="99" width="343" height="44"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="tintColor" red="0.60000002384185791" green="0.60000002384185791" blue="0.60000002384185791" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="Iam-Pd-ib7"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="minimumValue">
|
||||
<real key="value" value="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<real key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="incrementValue">
|
||||
<integer key="value" value="0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackThickness">
|
||||
<real key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="tickSize">
|
||||
<size key="value" width="1" height="4"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Layers and transparency" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1wG-kf-nie">
|
||||
<rect key="frame" x="16" y="169" width="189" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BhH-uE-SaH" userLabel="alphabetLabels" customClass="TGPCamelLabels">
|
||||
<rect key="frame" x="16" y="194" width="343" height="40"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="XdG-yC-sgG"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="26"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="ticksDistance">
|
||||
<real key="value" value="12"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<integer key="value" value="13"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="upFontName" value="AvenirNext-Demibold"/>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="upFontColor">
|
||||
<color key="value" red="0.0" green="0.50196081399917603" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="downFontName" value="AvenirNext-Medium"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="upFontSize">
|
||||
<real key="value" value="13"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="downFontSize">
|
||||
<real key="value" value="13"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="downFontColor">
|
||||
<color key="value" red="0.50196081399917603" green="0.50196081399917603" blue="0.50196081399917603" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hbc-OQ-ngs" userLabel="alphabetSlider" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="198" width="343" height="54"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="54" id="PeU-Hp-weJ"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="3"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="26"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="3"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="thumbStyle">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="thumbSize">
|
||||
<size key="value" width="15" height="28"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="thumbColor">
|
||||
<color key="value" red="0.40000000596046448" green="0.80000001192092896" blue="1" alpha="0.5" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="minimumValue">
|
||||
<real key="value" value="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<real key="value" value="13"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="incrementValue">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TGPCamelLabels + UISwitch" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="A6t-OF-SSy">
|
||||
<rect key="frame" x="16" y="279" width="222.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cr3-Gd-Hq6" userLabel="switch1Camel" customClass="TGPCamelLabels">
|
||||
<rect key="frame" x="107" y="314" width="49" height="18"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="18" id="TH0-qP-ycM"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="ticksDistance">
|
||||
<real key="value" value="25"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="upFontName" value="AvenirNext-Medium"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="upFontSize">
|
||||
<real key="value" value="11"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="upFontColor">
|
||||
<color key="value" red="0.0" green="0.50196081399917603" blue="0.25098040699958801" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="downFontName" value="AvenirNext-Medium"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="downFontSize">
|
||||
<real key="value" value="11"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="downFontColor">
|
||||
<color key="value" red="0.0" green="0.50196081400000003" blue="0.25098040700000002" alpha="0.25" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qag-Wb-5DJ" userLabel="switch1">
|
||||
<rect key="frame" x="107" y="330" width="51" height="31"/>
|
||||
<connections>
|
||||
<action selector="switch1ValueChanged:" destination="BYZ-38-t0r" eventType="valueChanged" id="5bc-7D-vJF"/>
|
||||
</connections>
|
||||
</switch>
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VFm-r7-f2K" userLabel="switch2">
|
||||
<rect key="frame" x="219" y="330" width="51" height="31"/>
|
||||
<connections>
|
||||
<action selector="switch2TouchUpInside:" destination="BYZ-38-t0r" eventType="touchUpInside" id="0xh-oL-8NO"/>
|
||||
</connections>
|
||||
</switch>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Zr4-IE-ENv" userLabel="switch2Camel" customClass="TGPCamelLabels">
|
||||
<rect key="frame" x="220" y="336" width="49" height="20"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="4gv-eK-57q"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="ticksDistance">
|
||||
<real key="value" value="22"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="upFontName" value="AvenirNext-Regular"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="upFontSize">
|
||||
<real key="value" value="15"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="upFontColor">
|
||||
<color key="value" red="0.2627450980392157" green="0.83137254901960789" blue="0.31764705882352939" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="downFontColor">
|
||||
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="downFontName" value="AvenirNext-Regular"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="downFontSize">
|
||||
<real key="value" value="15"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TGPDiscreteSlider variations" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XPd-Af-CYy">
|
||||
<rect key="frame" x="16" y="406" width="219.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ndg-v1-Tx3" userLabel="customSlider1" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="435" width="343" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="tintColor" white="0.33333333333333331" alpha="0.25" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="pL3-9o-4QO"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="tickSize">
|
||||
<size key="value" width="14" height="14"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="11"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="3"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="thumbStyle">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="thumbSize">
|
||||
<size key="value" width="44" height="44"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="thumbColor">
|
||||
<color key="value" red="1" green="0.0" blue="0.0" alpha="0.25" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="thumbSRadius">
|
||||
<real key="value" value="4"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="thumbSOffset">
|
||||
<size key="value" width="0.0" height="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Mxg-FC-1WD" userLabel="customSlider2" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="488" width="343" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="tintColor" red="0.80000001192092896" green="0.80000001192092896" blue="0.80000001192092896" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="SpX-Kq-ehl"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="tickSize">
|
||||
<size key="value" width="2" height="9"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="6"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackThickness">
|
||||
<real key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="thumbStyle">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="thumbSize">
|
||||
<size key="value" width="40" height="9"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="thumbColor">
|
||||
<color key="value" red="0.39215686274509803" green="0.88627450980392153" blue="0.47450980392156861" alpha="0.75" colorSpace="calibratedRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="thumbSRadius">
|
||||
<real key="value" value="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="minimumValue">
|
||||
<real key="value" value="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="value">
|
||||
<real key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="a45-f5-clX" userLabel="customSlider3" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="540" width="343" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="tintColor" red="0.25098040699958801" green="0.0" blue="0.50196081399917603" alpha="0.5" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="10H-oT-dju"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="size" keyPath="tickSize">
|
||||
<size key="value" width="17" height="5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickCount">
|
||||
<integer key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QFe-pU-ocw" userLabel="customSlider4" customClass="TGPDiscreteSlider">
|
||||
<rect key="frame" x="16" y="592" width="343" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="tintColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="olU-G4-MUE"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="tickStyle">
|
||||
<integer key="value" value="0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="trackStyle">
|
||||
<integer key="value" value="0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.90196079015731812" green="0.90196079015731812" blue="0.90196079015731812" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Mxg-FC-1WD" firstAttribute="top" secondItem="Ndg-v1-Tx3" secondAttribute="bottom" constant="9" id="4Ps-1M-sdm"/>
|
||||
<constraint firstItem="XPd-Af-CYy" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="4gf-WO-ysR"/>
|
||||
<constraint firstItem="a45-f5-clX" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="4wj-b8-D1g"/>
|
||||
<constraint firstItem="me6-ut-RSP" firstAttribute="centerY" secondItem="ABG-DJ-HY6" secondAttribute="centerY" constant="-27" id="5P5-o3-fJa"/>
|
||||
<constraint firstItem="ABG-DJ-HY6" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="6ym-Lu-D7D"/>
|
||||
<constraint firstItem="BhH-uE-SaH" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="9WX-tF-da4"/>
|
||||
<constraint firstItem="Ndg-v1-Tx3" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="B22-Tf-930"/>
|
||||
<constraint firstItem="hbc-OQ-ngs" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="Bxo-T9-mlW"/>
|
||||
<constraint firstItem="BhH-uE-SaH" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="C1k-12-GvS"/>
|
||||
<constraint firstItem="1wG-kf-nie" firstAttribute="top" secondItem="ABG-DJ-HY6" secondAttribute="bottom" constant="26" id="D7b-op-Ysw"/>
|
||||
<constraint firstItem="A6t-OF-SSy" firstAttribute="top" secondItem="hbc-OQ-ngs" secondAttribute="bottom" constant="26.5" id="DpZ-zm-fuB"/>
|
||||
<constraint firstItem="1wG-kf-nie" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="FgC-pC-Ju7"/>
|
||||
<constraint firstItem="a45-f5-clX" firstAttribute="top" secondItem="Mxg-FC-1WD" secondAttribute="bottom" constant="8" id="KQt-NB-g7f"/>
|
||||
<constraint firstItem="QFe-pU-ocw" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="Kf2-Qo-MKs"/>
|
||||
<constraint firstItem="a45-f5-clX" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="Loa-Ha-0y8"/>
|
||||
<constraint firstItem="XPd-Af-CYy" firstAttribute="top" secondItem="VFm-r7-f2K" secondAttribute="bottom" constant="45" id="MPa-TF-VOx"/>
|
||||
<constraint firstAttribute="centerX" secondItem="qag-Wb-5DJ" secondAttribute="centerX" constant="56" id="MfP-WA-jAB"/>
|
||||
<constraint firstItem="cr3-Gd-Hq6" firstAttribute="width" secondItem="qag-Wb-5DJ" secondAttribute="width" id="Nv6-Re-TgA"/>
|
||||
<constraint firstItem="QFe-pU-ocw" firstAttribute="top" secondItem="a45-f5-clX" secondAttribute="bottom" constant="8" id="PgK-4q-SGs"/>
|
||||
<constraint firstItem="ABG-DJ-HY6" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="QLc-uN-eQs"/>
|
||||
<constraint firstItem="hED-uQ-kcm" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="33" id="Wez-tM-enh"/>
|
||||
<constraint firstItem="Mxg-FC-1WD" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="Z6k-gC-aWN"/>
|
||||
<constraint firstItem="Mxg-FC-1WD" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="b6U-bt-rvY"/>
|
||||
<constraint firstItem="A6t-OF-SSy" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="cJK-f2-SFG"/>
|
||||
<constraint firstItem="qag-Wb-5DJ" firstAttribute="top" secondItem="A6t-OF-SSy" secondAttribute="bottom" constant="31" id="fHc-8p-ouX"/>
|
||||
<constraint firstItem="VFm-r7-f2K" firstAttribute="width" secondItem="Zr4-IE-ENv" secondAttribute="width" id="fj1-ce-wn1"/>
|
||||
<constraint firstItem="hED-uQ-kcm" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="fzu-Ww-8Eo"/>
|
||||
<constraint firstItem="me6-ut-RSP" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="gae-ID-w4Z"/>
|
||||
<constraint firstItem="me6-ut-RSP" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="gbT-8b-fGE"/>
|
||||
<constraint firstItem="QFe-pU-ocw" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="hOH-uX-R23"/>
|
||||
<constraint firstItem="ABG-DJ-HY6" firstAttribute="top" secondItem="hED-uQ-kcm" secondAttribute="bottom" constant="26" id="iNI-NO-0SS"/>
|
||||
<constraint firstItem="cr3-Gd-Hq6" firstAttribute="centerY" secondItem="qag-Wb-5DJ" secondAttribute="centerY" constant="-22.5" id="lFZ-6R-uYu"/>
|
||||
<constraint firstItem="BhH-uE-SaH" firstAttribute="centerY" secondItem="hbc-OQ-ngs" secondAttribute="centerY" constant="-11" id="mEW-ba-COP"/>
|
||||
<constraint firstItem="cr3-Gd-Hq6" firstAttribute="centerX" secondItem="qag-Wb-5DJ" secondAttribute="centerX" id="nkD-zX-EF6"/>
|
||||
<constraint firstItem="hbc-OQ-ngs" firstAttribute="top" secondItem="1wG-kf-nie" secondAttribute="bottom" constant="9" id="q77-ib-g0g"/>
|
||||
<constraint firstItem="hbc-OQ-ngs" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="rsR-jO-wzB"/>
|
||||
<constraint firstItem="Ndg-v1-Tx3" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="vVZ-gg-5Ko"/>
|
||||
<constraint firstAttribute="centerX" secondItem="VFm-r7-f2K" secondAttribute="centerX" constant="-56" id="vj0-2y-FgW"/>
|
||||
<constraint firstItem="VFm-r7-f2K" firstAttribute="centerX" secondItem="Zr4-IE-ENv" secondAttribute="centerX" constant="-1" id="x6x-E0-UVu"/>
|
||||
<constraint firstItem="VFm-r7-f2K" firstAttribute="centerY" secondItem="Zr4-IE-ENv" secondAttribute="centerY" constant="-0.5" id="xgs-Q5-C1K"/>
|
||||
<constraint firstItem="Ndg-v1-Tx3" firstAttribute="top" secondItem="XPd-Af-CYy" secondAttribute="bottom" constant="8" id="zWd-YH-nOS"/>
|
||||
<constraint firstItem="VFm-r7-f2K" firstAttribute="centerY" secondItem="qag-Wb-5DJ" secondAttribute="centerY" id="zeV-6W-jT3"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
|
||||
<connections>
|
||||
<outlet property="alphabetLabels" destination="BhH-uE-SaH" id="kEj-FU-SBG"/>
|
||||
<outlet property="alphabetSlider" destination="hbc-OQ-ngs" id="4ye-LL-oZo"/>
|
||||
<outlet property="oneTo10Labels" destination="me6-ut-RSP" id="gHh-J9-qc8"/>
|
||||
<outlet property="oneTo10Slider" destination="ABG-DJ-HY6" id="tYZ-qQ-rqW"/>
|
||||
<outlet property="switch1Camel" destination="cr3-Gd-Hq6" id="SLv-Re-LQ1"/>
|
||||
<outlet property="switch2Camel" destination="Zr4-IE-ENv" id="kck-Ae-PqW"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="344.5" y="332.5"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"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" : "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"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.thegothicparty.$(PRODUCT_NAME:rfc1034identifier)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
// @file: ViewController.swift
|
||||
// @project: TGPControlsDemo (TGPControls)
|
||||
//
|
||||
// @history: Created November 27, 2014 (Thanksgiving Day)
|
||||
// @author: Xavier Schott
|
||||
// mailto://xschott@gmail.com
|
||||
// http://thegothicparty.com
|
||||
// tel://+18089383634
|
||||
//
|
||||
// @license: http://opensource.org/licenses/MIT
|
||||
// Copyright (c) 2014, Xavier Schott
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
import TGPControls
|
||||
|
||||
class ViewController: UIViewController {
|
||||
@IBOutlet weak var oneTo10Labels: TGPCamelLabels!
|
||||
@IBOutlet weak var oneTo10Slider: TGPDiscreteSlider!
|
||||
|
||||
@IBOutlet weak var alphabetLabels: TGPCamelLabels!
|
||||
@IBOutlet weak var alphabetSlider: TGPDiscreteSlider!
|
||||
|
||||
@IBOutlet weak var switch1Camel: TGPCamelLabels!
|
||||
@IBOutlet weak var switch2Camel: TGPCamelLabels!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
self.oneTo10Slider.addTarget(self, action: "oneTo10SliderValueChanged:", forControlEvents: .ValueChanged)
|
||||
self.alphabetSlider.addTarget(self, action: "alphabetSliderValueChanged:", forControlEvents: .ValueChanged)
|
||||
self.alphabetLabels.names = ["A","B","C","D","E","F", "G","H","I","J","K","L","M",
|
||||
"N","O","P","Q","R","S", "T","U","V","W","X","Y","Z"]
|
||||
self.switch1Camel.names = ["OFF", "ON"]
|
||||
self.switch2Camel.names = ["O", "l"]
|
||||
|
||||
// Match the ticks spacing exactly
|
||||
self.alphabetSlider.ticksListener = self.alphabetLabels
|
||||
self.oneTo10Slider.ticksListener = self.oneTo10Labels
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
// MARK: - TGPDiscreteSlider
|
||||
|
||||
@IBAction func oneTo10SliderValueChanged(sender: TGPDiscreteSlider) {
|
||||
self.oneTo10Labels.value = UInt(sender.value);
|
||||
}
|
||||
|
||||
@IBAction func alphabetSliderValueChanged(sender: TGPDiscreteSlider) {
|
||||
self.alphabetLabels.value = UInt(sender.value)
|
||||
}
|
||||
|
||||
// MARK: - UISwitch
|
||||
|
||||
@IBAction func switch1ValueChanged(sender: UISwitch) {
|
||||
self.switch1Camel.value = (sender.on) ? 1 : 0
|
||||
}
|
||||
|
||||
@IBAction func switch2TouchUpInside(sender: UISwitch) {
|
||||
self.switch2Camel.value = (sender.on) ? 1 : 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.thegothicparty.$(PRODUCT_NAME:rfc1034identifier)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
// @file: TGPControlsDemoTests.swift
|
||||
// @project: TGPControlsDemo (TGPControls)
|
||||
//
|
||||
// @history: Created November 27, 2014 (Thanksgiving Day)
|
||||
// @author: Xavier Schott
|
||||
// mailto://xschott@gmail.com
|
||||
// http://thegothicparty.com
|
||||
// tel://+18089383634
|
||||
//
|
||||
// @license: http://opensource.org/licenses/MIT
|
||||
// Copyright (c) 2014, Xavier Schott
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
import XCTest
|
||||
|
||||
class TGPControlsDemoTests: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
func testExample() {
|
||||
// This is an example of a functional test case.
|
||||
XCTAssert(true, "Pass")
|
||||
}
|
||||
|
||||
func testPerformanceExample() {
|
||||
// This is an example of a performance test case.
|
||||
self.measureBlock() {
|
||||
// Put the code you want to measure the time of here.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue