Skip to content

Commit f145508

Browse files
author
Baris Sencan
committed
Complete first example
1 parent aba8dd3 commit f145508

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

Examples/SimpleExample/SimpleExample.xcodeproj/project.pbxproj

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
5F67BC211A9D9F9200347483 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5F67BC201A9D9F9200347483 /* Images.xcassets */; };
1313
5F67BC241A9D9F9200347483 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5F67BC221A9D9F9200347483 /* LaunchScreen.xib */; };
1414
5F67BC301A9D9F9200347483 /* SimpleExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F67BC2F1A9D9F9200347483 /* SimpleExampleTests.swift */; };
15+
5F67BC3B1A9DB71100347483 /* ManualLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F67BC3A1A9DB71100347483 /* ManualLayout.framework */; };
16+
5F67BC3C1A9DB71100347483 /* ManualLayout.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5F67BC3A1A9DB71100347483 /* ManualLayout.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1517
/* End PBXBuildFile section */
1618

1719
/* Begin PBXContainerItemProxy section */
@@ -24,6 +26,20 @@
2426
};
2527
/* End PBXContainerItemProxy section */
2628

29+
/* Begin PBXCopyFilesBuildPhase section */
30+
5F67BC3D1A9DB71100347483 /* Embed Frameworks */ = {
31+
isa = PBXCopyFilesBuildPhase;
32+
buildActionMask = 2147483647;
33+
dstPath = "";
34+
dstSubfolderSpec = 10;
35+
files = (
36+
5F67BC3C1A9DB71100347483 /* ManualLayout.framework in Embed Frameworks */,
37+
);
38+
name = "Embed Frameworks";
39+
runOnlyForDeploymentPostprocessing = 0;
40+
};
41+
/* End PBXCopyFilesBuildPhase section */
42+
2743
/* Begin PBXFileReference section */
2844
5F67BC141A9D9F9200347483 /* SimpleExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimpleExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2945
5F67BC181A9D9F9200347483 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -34,13 +50,15 @@
3450
5F67BC291A9D9F9200347483 /* SimpleExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SimpleExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3551
5F67BC2E1A9D9F9200347483 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3652
5F67BC2F1A9D9F9200347483 /* SimpleExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleExampleTests.swift; sourceTree = "<group>"; };
53+
5F67BC3A1A9DB71100347483 /* ManualLayout.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ManualLayout.framework; path = Carthage/Build/iOS/ManualLayout.framework; sourceTree = "<group>"; };
3754
/* End PBXFileReference section */
3855

3956
/* Begin PBXFrameworksBuildPhase section */
4057
5F67BC111A9D9F9200347483 /* Frameworks */ = {
4158
isa = PBXFrameworksBuildPhase;
4259
buildActionMask = 2147483647;
4360
files = (
61+
5F67BC3B1A9DB71100347483 /* ManualLayout.framework in Frameworks */,
4462
);
4563
runOnlyForDeploymentPostprocessing = 0;
4664
};
@@ -57,6 +75,7 @@
5775
5F67BC0B1A9D9F9200347483 = {
5876
isa = PBXGroup;
5977
children = (
78+
5F67BC3A1A9DB71100347483 /* ManualLayout.framework */,
6079
5F67BC161A9D9F9200347483 /* SimpleExample */,
6180
5F67BC2C1A9D9F9200347483 /* SimpleExampleTests */,
6281
5F67BC151A9D9F9200347483 /* Products */,
@@ -127,6 +146,7 @@
127146
5F67BC101A9D9F9200347483 /* Sources */,
128147
5F67BC111A9D9F9200347483 /* Frameworks */,
129148
5F67BC121A9D9F9200347483 /* Resources */,
149+
5F67BC3D1A9DB71100347483 /* Embed Frameworks */,
130150
);
131151
buildRules = (
132152
);
@@ -334,6 +354,10 @@
334354
isa = XCBuildConfiguration;
335355
buildSettings = {
336356
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357+
FRAMEWORK_SEARCH_PATHS = (
358+
"$(inherited)",
359+
"$(PROJECT_DIR)/Carthage/Build/iOS",
360+
);
337361
INFOPLIST_FILE = SimpleExample/Info.plist;
338362
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
339363
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -344,6 +368,10 @@
344368
isa = XCBuildConfiguration;
345369
buildSettings = {
346370
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
371+
FRAMEWORK_SEARCH_PATHS = (
372+
"$(inherited)",
373+
"$(PROJECT_DIR)/Carthage/Build/iOS",
374+
);
347375
INFOPLIST_FILE = SimpleExample/Info.plist;
348376
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
349377
PRODUCT_NAME = "$(TARGET_NAME)";

Examples/SimpleExample/SimpleExample/ExampleViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ internal final class ExampleViewController: UIViewController {
2121
attributes: generateTextStyle())
2222
subtitleLabel.attributedText = NSAttributedString(
2323
string: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
24-
attributes: generateTextStyle(smaller: true)
25-
yinView.backgroundColor = UIColor.blackColor()
24+
attributes: generateTextStyle(smaller: true))
25+
yinView.backgroundColor = UIColor.blackColor()
2626
}
2727

28-
required override init(coder aDecoder: NSCoder) {
28+
required init(coder aDecoder: NSCoder) {
2929
fatalError("storyboards are incompatible with truth and beauty")
3030
}
3131

@@ -39,7 +39,7 @@ internal final class ExampleViewController: UIViewController {
3939

4040
override func viewWillLayoutSubviews() {
4141
titleLabel.sizeToFit()
42-
titleLabel.top = 20
42+
titleLabel.top = 40
4343
titleLabel.centerX = view.centerX
4444
subtitleLabel.sizeToFit()
4545
subtitleLabel.top = titleLabel.bottom + 8
@@ -51,7 +51,7 @@ internal final class ExampleViewController: UIViewController {
5151

5252
private func generateTextStyle(smaller: Bool = false) -> [NSObject: AnyObject] {
5353
return [
54-
NSFontAttributeName: UIFont.systemFontOfSize(smaller ? 14 : 16),
54+
NSFontAttributeName: UIFont.systemFontOfSize(smaller ? 14 : 18),
5555
NSForegroundColorAttributeName: UIColor.blackColor()
5656
]
5757
}

Examples/SimpleExample/SimpleExample/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
<true/>
2525
<key>UILaunchStoryboardName</key>
2626
<string>LaunchScreen</string>
27-
<key>UIMainStoryboardFile</key>
28-
<string>Main</string>
2927
<key>UIRequiredDeviceCapabilities</key>
3028
<array>
3129
<string>armv7</string>

0 commit comments

Comments
 (0)