Skip to content

Commit

Permalink
adding IB_DESIGNABLE and IBInspectable so that you can simulate the c…
Browse files Browse the repository at this point in the history
…ontrol in interface builder
  • Loading branch information
TomThorpe committed Apr 1, 2015
1 parent a93b07d commit 9204c71
Show file tree
Hide file tree
Showing 19 changed files with 445 additions and 215 deletions.
2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

pod "TTRangeSlider", :path => "../"

6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- TTRangeSlider (1.0.0)
- TTRangeSlider (1.0.1)

DEPENDENCIES:
- TTRangeSlider (from `../`)
Expand All @@ -9,6 +9,6 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
TTRangeSlider: 69c1114c2fb86b8c6cd51a05978e880b530916d5
TTRangeSlider: 121c570050281a3e599fd7dc0735bd61bd291438

COCOAPODS: 0.36.1
COCOAPODS: 0.36.3
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/TTRangeSlider.podspec.json

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

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

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

438 changes: 256 additions & 182 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions Example/Pods/Target Support Files/Pods-TTRangeSlider/Info.plist

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

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

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

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

26 changes: 26 additions & 0 deletions Example/Pods/Target Support Files/Pods/Info.plist

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

2 changes: 1 addition & 1 deletion Example/Pods/Target Support Files/Pods/Pods-environment.h

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

55 changes: 55 additions & 0 deletions Example/Pods/Target Support Files/Pods/Pods-frameworks.sh

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

6 changes: 6 additions & 0 deletions Example/Pods/Target Support Files/Pods/Pods-umbrella.h

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

8 changes: 5 additions & 3 deletions Example/Pods/Target Support Files/Pods/Pods.debug.xcconfig

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

6 changes: 6 additions & 0 deletions Example/Pods/Target Support Files/Pods/Pods.modulemap

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

8 changes: 5 additions & 3 deletions Example/Pods/Target Support Files/Pods/Pods.release.xcconfig

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

24 changes: 20 additions & 4 deletions Example/RangeSliderDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
objects = {

/* Begin PBXBuildFile section */
598326BE72E253EBE7E602FC /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 98FCA7EDA0FEB6E7300B32E5 /* libPods.a */; };
64495A441ACAD93700482D73 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 64495A431ACAD93700482D73 /* main.m */; };
64495A471ACAD93700482D73 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 64495A461ACAD93700482D73 /* AppDelegate.m */; };
64495A4A1ACAD93700482D73 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 64495A491ACAD93700482D73 /* ViewController.m */; };
64495A4D1ACAD93700482D73 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 64495A4B1ACAD93700482D73 /* Main.storyboard */; };
64495A4F1ACAD93700482D73 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 64495A4E1ACAD93700482D73 /* Images.xcassets */; };
64495A521ACAD93700482D73 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 64495A501ACAD93700482D73 /* LaunchScreen.xib */; };
64495A5E1ACAD93700482D73 /* RangeSliderDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 64495A5D1ACAD93700482D73 /* RangeSliderDemoTests.m */; };
E06CDBE58BA42330DDAA7756 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3B160588054A1ABBEE2B53C /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -42,16 +42,16 @@
64495A571ACAD93700482D73 /* RangeSliderDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RangeSliderDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
64495A5C1ACAD93700482D73 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
64495A5D1ACAD93700482D73 /* RangeSliderDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RangeSliderDemoTests.m; sourceTree = "<group>"; };
98FCA7EDA0FEB6E7300B32E5 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
E03B9800BFD96602A5FB30A7 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
F3B160588054A1ABBEE2B53C /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
64495A3B1ACAD93700482D73 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
598326BE72E253EBE7E602FC /* libPods.a in Frameworks */,
E06CDBE58BA42330DDAA7756 /* Pods.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -68,7 +68,7 @@
14ACF65C76FC4FFB4BB6625D /* Frameworks */ = {
isa = PBXGroup;
children = (
98FCA7EDA0FEB6E7300B32E5 /* libPods.a */,
F3B160588054A1ABBEE2B53C /* Pods.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -155,6 +155,7 @@
64495A3B1ACAD93700482D73 /* Frameworks */,
64495A3C1ACAD93700482D73 /* Resources */,
DE9C2C55B2ECBE6D272551DB /* Copy Pods Resources */,
535947C51E2BAB645D940AAE /* Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -241,6 +242,21 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
535947C51E2BAB645D940AAE /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
C00C0A5A2102F7AE46FE79FE /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F57224EA08E2E3E2108DEEBE"
BuildableName = "libPods.a"
BlueprintIdentifier = "BC915F937EED98A9F15E0ACD"
BuildableName = "Pods.framework"
BlueprintName = "Pods"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
</BuildableReference>
Expand Down
22 changes: 11 additions & 11 deletions Example/RangeSliderDemo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DwD-4K-U87" customClass="TTRangeSlider">
<rect key="frame" x="16" y="159.5" width="568" height="50"/>
<rect key="frame" x="16" y="159.5" width="568" height="60"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="tintColor" red="0.95926036010000004" green="0.14687572130000001" blue="0.021226121880000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="Cdi-WJ-VRf"/>
<constraint firstAttribute="height" constant="60" id="Cdi-WJ-VRf"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Standard Range:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uv3-Bw-dbz">
Expand All @@ -38,33 +38,33 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Currency Range:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="auG-6C-UUJ">
<rect key="frame" x="16" y="234.5" width="129" height="20.5"/>
<rect key="frame" x="16" y="244.5" width="129" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RTp-xv-6Dx" customClass="TTRangeSlider">
<rect key="frame" x="16" y="280" width="568" height="50"/>
<rect key="frame" x="16" y="290" width="568" height="60"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="EYa-1H-cea"/>
<constraint firstAttribute="height" constant="50" id="Nk9-gu-lme"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="60" id="EYa-1H-cea"/>
<constraint firstAttribute="height" constant="60" id="Nk9-gu-lme"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Custom:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WF3-K2-d12">
<rect key="frame" x="16" y="355" width="65.5" height="20.5"/>
<rect key="frame" x="16" y="375" width="65.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4yD-aN-v9q" customClass="TTRangeSlider">
<rect key="frame" x="16" y="400.5" width="568" height="50"/>
<rect key="frame" x="16" y="420.5" width="568" height="60"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="tintColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="3pr-97-QUE"/>
<constraint firstAttribute="height" constant="50" id="GFz-Lm-buz"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="50" id="ygD-0b-zU7"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="60" id="3pr-97-QUE"/>
<constraint firstAttribute="height" constant="60" id="GFz-Lm-buz"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="60" id="ygD-0b-zU7"/>
</constraints>
</view>
</subviews>
Expand Down

0 comments on commit 9204c71

Please sign in to comment.