Skip to content

Commit

Permalink
Merge pull request #2 from chrisballinger/ib-support
Browse files Browse the repository at this point in the history
Add Interface Builder support
  • Loading branch information
okmr-d committed Jul 16, 2015
2 parents 5d52910 + f336f20 commit 3ab6a19
Show file tree
Hide file tree
Showing 36 changed files with 1,183 additions and 444 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
4F7C3E651B4D83E700A31096 /* DOFavoriteButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7C3E601B4D83E700A31096 /* DOFavoriteButton.swift */; };
4F7C3E661B4D83E700A31096 /* heart.png in Resources */ = {isa = PBXBuildFile; fileRef = 4F7C3E611B4D83E700A31096 /* heart.png */; };
4F7C3E671B4D83E700A31096 /* like.png in Resources */ = {isa = PBXBuildFile; fileRef = 4F7C3E621B4D83E700A31096 /* like.png */; };
4F7C3E681B4D83E700A31096 /* star.png in Resources */ = {isa = PBXBuildFile; fileRef = 4F7C3E631B4D83E700A31096 /* star.png */; };
4F7C3E6B1B4D865B00A31096 /* smile.png in Resources */ = {isa = PBXBuildFile; fileRef = 4F7C3E6A1B4D865B00A31096 /* smile.png */; };
4F6D1B761AF3BE7287D923CC /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3135C40AD6909076F383E94 /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
4FBAA7031B4D807F00C8657F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FBAA7021B4D807F00C8657F /* AppDelegate.swift */; };
4FBAA7051B4D807F00C8657F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FBAA7041B4D807F00C8657F /* ViewController.swift */; };
4FBAA7081B4D807F00C8657F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4FBAA7061B4D807F00C8657F /* Main.storyboard */; };
Expand All @@ -31,11 +27,8 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
4F7C3E601B4D83E700A31096 /* DOFavoriteButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DOFavoriteButton.swift; path = DOFavoriteButton/DOFavoriteButton.swift; sourceTree = "<group>"; };
4F7C3E611B4D83E700A31096 /* heart.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = heart.png; path = DOFavoriteButton/heart.png; sourceTree = "<group>"; };
4F7C3E621B4D83E700A31096 /* like.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = like.png; path = DOFavoriteButton/like.png; sourceTree = "<group>"; };
4F7C3E631B4D83E700A31096 /* star.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = star.png; path = DOFavoriteButton/star.png; sourceTree = "<group>"; };
4F7C3E6A1B4D865B00A31096 /* smile.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = smile.png; path = DOFavoriteButton/smile.png; sourceTree = "<group>"; };
062578B11A42AEBF268C3C4E /* 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>"; };
3FAA84FF52B6D1FB027BDD29 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
4FBAA6FD1B4D807F00C8657F /* DOFavoriteButton-DEMO.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DOFavoriteButton-DEMO.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4FBAA7011B4D807F00C8657F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4FBAA7021B4D807F00C8657F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -46,13 +39,15 @@
4FBAA7121B4D807F00C8657F /* DOFavoriteButton-DEMOTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DOFavoriteButton-DEMOTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
4FBAA7171B4D807F00C8657F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4FBAA7181B4D807F00C8657F /* DOFavoriteButton_DEMOTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DOFavoriteButton_DEMOTests.swift; sourceTree = "<group>"; };
B3135C40AD6909076F383E94 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
4FBAA6FA1B4D807F00C8657F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4F6D1B761AF3BE7287D923CC /* Pods.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -72,6 +67,8 @@
4FBAA6FF1B4D807F00C8657F /* DOFavoriteButton-DEMO */,
4FBAA7151B4D807F00C8657F /* DOFavoriteButton-DEMOTests */,
4FBAA6FE1B4D807F00C8657F /* Products */,
D86B47A82ECEB0A5E4CC6549 /* Pods */,
9300E958E49AAF6029A58276 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -92,7 +89,6 @@
4FBAA7061B4D807F00C8657F /* Main.storyboard */,
4FBAA7091B4D807F00C8657F /* Images.xcassets */,
4FBAA70B1B4D807F00C8657F /* LaunchScreen.xib */,
4FBAA7221B4D811600C8657F /* DOFavoriteButton */,
4FBAA7001B4D807F00C8657F /* Supporting Files */,
);
path = "DOFavoriteButton-DEMO";
Expand Down Expand Up @@ -123,16 +119,21 @@
name = "Supporting Files";
sourceTree = "<group>";
};
4FBAA7221B4D811600C8657F /* DOFavoriteButton */ = {
9300E958E49AAF6029A58276 /* Frameworks */ = {
isa = PBXGroup;
children = (
4F7C3E601B4D83E700A31096 /* DOFavoriteButton.swift */,
4F7C3E631B4D83E700A31096 /* star.png */,
4F7C3E611B4D83E700A31096 /* heart.png */,
4F7C3E621B4D83E700A31096 /* like.png */,
4F7C3E6A1B4D865B00A31096 /* smile.png */,
B3135C40AD6909076F383E94 /* Pods.framework */,
);
name = DOFavoriteButton;
name = Frameworks;
sourceTree = "<group>";
};
D86B47A82ECEB0A5E4CC6549 /* Pods */ = {
isa = PBXGroup;
children = (
062578B11A42AEBF268C3C4E /* Pods.debug.xcconfig */,
3FAA84FF52B6D1FB027BDD29 /* Pods.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -142,9 +143,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 4FBAA71C1B4D807F00C8657F /* Build configuration list for PBXNativeTarget "DOFavoriteButton-DEMO" */;
buildPhases = (
DAC0102B63EE83E3284AD727 /* Check Pods Manifest.lock */,
4FBAA6F91B4D807F00C8657F /* Sources */,
4FBAA6FA1B4D807F00C8657F /* Frameworks */,
4FBAA6FB1B4D807F00C8657F /* Resources */,
04D173F57188A036FA09EFC7 /* Embed Pods Frameworks */,
24AB529B5D49954D997B6546 /* Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -215,11 +219,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4F7C3E661B4D83E700A31096 /* heart.png in Resources */,
4F7C3E6B1B4D865B00A31096 /* smile.png in Resources */,
4F7C3E681B4D83E700A31096 /* star.png in Resources */,
4FBAA7081B4D807F00C8657F /* Main.storyboard in Resources */,
4F7C3E671B4D83E700A31096 /* like.png in Resources */,
4FBAA70D1B4D807F00C8657F /* LaunchScreen.xib in Resources */,
4FBAA70A1B4D807F00C8657F /* Images.xcassets in Resources */,
);
Expand All @@ -234,12 +234,59 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
04D173F57188A036FA09EFC7 /* 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;
};
24AB529B5D49954D997B6546 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
DAC0102B63EE83E3284AD727 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
4FBAA6F91B4D807F00C8657F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4F7C3E651B4D83E700A31096 /* DOFavoriteButton.swift in Sources */,
4FBAA7051B4D807F00C8657F /* ViewController.swift in Sources */,
4FBAA7031B4D807F00C8657F /* AppDelegate.swift in Sources */,
);
Expand Down Expand Up @@ -368,21 +415,23 @@
};
4FBAA71D1B4D807F00C8657F /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 062578B11A42AEBF268C3C4E /* Pods.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "DOFavoriteButton-DEMO/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
4FBAA71E1B4D807F00C8657F /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3FAA84FF52B6D1FB027BDD29 /* Pods.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "DOFavoriteButton-DEMO/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down

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

Original file line number Diff line number Diff line change
@@ -1,25 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="DOFavoriteButton_DEMO" customModuleProvider="target" 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="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rFR-xE-t1b" customClass="DOFavoriteButton" customModule="DOFavoriteButton">
<rect key="frame" x="278" y="519" width="44" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="Pex-YC-iij"/>
<constraint firstAttribute="width" constant="44" id="cjh-mx-ksa"/>
</constraints>
<state key="normal">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="image" keyPath="image" value="heart"/>
<userDefinedRuntimeAttribute type="color" keyPath="imageColorOn">
<color key="value" red="0.99607843137254903" green="0.43137254901960786" blue="0.43529411764705883" alpha="1" colorSpace="calibratedRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="circleColor">
<color key="value" red="0.99607843137254903" green="0.43137254901960786" blue="0.43529411764705883" alpha="1" colorSpace="calibratedRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="lineColor">
<color key="value" red="0.88627450980392153" green="0.37647058823529411" blue="0.37647058823529411" alpha="1" colorSpace="calibratedRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Also works via Storyboard" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mz5-av-Vhw">
<rect key="frame" x="200" y="476" width="201" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="rFR-xE-t1b" firstAttribute="top" secondItem="Mz5-av-Vhw" secondAttribute="bottom" constant="22" id="1BK-cb-mQo"/>
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="rFR-xE-t1b" secondAttribute="bottom" constant="37" id="XCf-2l-FlB"/>
<constraint firstAttribute="centerX" secondItem="rFR-xE-t1b" secondAttribute="centerX" id="dZJ-La-yl6"/>
<constraint firstAttribute="centerX" secondItem="Mz5-av-Vhw" secondAttribute="centerX" id="yZW-GP-Rqa"/>
</constraints>
</view>
<connections>
<outlet property="heartButton" destination="rFR-xE-t1b" id="gPz-j1-0Xn"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
<resources>
<image name="heart" width="64" height="64"/>
</resources>
</document>
Loading

0 comments on commit 3ab6a19

Please sign in to comment.