Skip to content

Commit b42161c

Browse files
committed
Added iOS demo
1 parent 45050e8 commit b42161c

File tree

7 files changed

+330
-0
lines changed

7 files changed

+330
-0
lines changed

SwiftHoedown.xcodeproj/project.pbxproj

+159
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
FD3DFCF61BA81162008358E1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD3DFCF51BA81162008358E1 /* AppDelegate.swift */; };
11+
FD3DFCF81BA81162008358E1 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD3DFCF71BA81162008358E1 /* WebViewController.swift */; };
12+
FD3DFCFD1BA81162008358E1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FD3DFCFC1BA81162008358E1 /* Assets.xcassets */; };
13+
FD3DFD001BA81162008358E1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FD3DFCFE1BA81162008358E1 /* LaunchScreen.storyboard */; };
14+
FD3DFD051BA811B7008358E1 /* Hoedown.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDEDAFC91BA462280016BFD3 /* Hoedown.framework */; };
15+
FD3DFD0B1BA81305008358E1 /* SwiftHoedown.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDEDAF0E1BA4377F0016BFD3 /* SwiftHoedown.framework */; };
16+
FD3DFD0C1BA815EA008358E1 /* sample.md in Resources */ = {isa = PBXBuildFile; fileRef = FDFEB11C1BA716CF00AE7544 /* sample.md */; };
1017
FD9515C31BA70FFD0064D496 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD9515C21BA70FFD0064D496 /* AppDelegate.swift */; };
1118
FD9515C51BA70FFD0064D496 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD9515C41BA70FFD0064D496 /* ViewController.swift */; };
1219
FD9515C71BA70FFD0064D496 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FD9515C61BA70FFD0064D496 /* Assets.xcassets */; };
@@ -24,6 +31,13 @@
2431
/* End PBXBuildFile section */
2532

2633
/* Begin PBXContainerItemProxy section */
34+
FD3DFD091BA812FF008358E1 /* PBXContainerItemProxy */ = {
35+
isa = PBXContainerItemProxy;
36+
containerPortal = FDD682041AF7E38F00C2B1DF /* Project object */;
37+
proxyType = 1;
38+
remoteGlobalIDString = FDEDAF0D1BA4377F0016BFD3;
39+
remoteInfo = SwiftHoedowniOS;
40+
};
2741
FDA3C1231BA713BE00FD613A /* PBXContainerItemProxy */ = {
2842
isa = PBXContainerItemProxy;
2943
containerPortal = FDD682041AF7E38F00C2B1DF /* Project object */;
@@ -48,6 +62,12 @@
4862
/* End PBXCopyFilesBuildPhase section */
4963

5064
/* Begin PBXFileReference section */
65+
FD3DFCF31BA81162008358E1 /* SwiftHoedownDemoiOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftHoedownDemoiOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
66+
FD3DFCF51BA81162008358E1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
67+
FD3DFCF71BA81162008358E1 /* WebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
68+
FD3DFCFC1BA81162008358E1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
69+
FD3DFCFF1BA81162008358E1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
70+
FD3DFD011BA81162008358E1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5171
FD9515C01BA70FFD0064D496 /* SwiftHoedownDemoOSX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftHoedownDemoOSX.app; sourceTree = BUILT_PRODUCTS_DIR; };
5272
FD9515C21BA70FFD0064D496 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5373
FD9515C41BA70FFD0064D496 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
@@ -67,6 +87,15 @@
6787
/* End PBXFileReference section */
6888

6989
/* Begin PBXFrameworksBuildPhase section */
90+
FD3DFCF01BA81162008358E1 /* Frameworks */ = {
91+
isa = PBXFrameworksBuildPhase;
92+
buildActionMask = 2147483647;
93+
files = (
94+
FD3DFD0B1BA81305008358E1 /* SwiftHoedown.framework in Frameworks */,
95+
FD3DFD051BA811B7008358E1 /* Hoedown.framework in Frameworks */,
96+
);
97+
runOnlyForDeploymentPostprocessing = 0;
98+
};
7099
FD9515BD1BA70FFD0064D496 /* Frameworks */ = {
71100
isa = PBXFrameworksBuildPhase;
72101
buildActionMask = 2147483647;
@@ -95,6 +124,18 @@
95124
/* End PBXFrameworksBuildPhase section */
96125

97126
/* Begin PBXGroup section */
127+
FD3DFCF41BA81162008358E1 /* SwiftHoedownDemoiOS */ = {
128+
isa = PBXGroup;
129+
children = (
130+
FD3DFCF51BA81162008358E1 /* AppDelegate.swift */,
131+
FD3DFCF71BA81162008358E1 /* WebViewController.swift */,
132+
FD3DFCFC1BA81162008358E1 /* Assets.xcassets */,
133+
FD3DFCFE1BA81162008358E1 /* LaunchScreen.storyboard */,
134+
FD3DFD011BA81162008358E1 /* Info.plist */,
135+
);
136+
path = SwiftHoedownDemoiOS;
137+
sourceTree = "<group>";
138+
};
98139
FD9515661BA70D570064D496 /* Frameworks */ = {
99140
isa = PBXGroup;
100141
children = (
@@ -122,6 +163,7 @@
122163
children = (
123164
FDD6820F1AF7E38F00C2B1DF /* swift-hoedown */,
124165
FD9515C11BA70FFD0064D496 /* SwiftHoedownDemoOSX */,
166+
FD3DFCF41BA81162008358E1 /* SwiftHoedownDemoiOS */,
125167
FDD6820E1AF7E38F00C2B1DF /* Products */,
126168
FD9515661BA70D570064D496 /* Frameworks */,
127169
);
@@ -133,6 +175,7 @@
133175
FDD6820D1AF7E38F00C2B1DF /* SwiftHoedown.framework */,
134176
FDEDAF0E1BA4377F0016BFD3 /* SwiftHoedown.framework */,
135177
FD9515C01BA70FFD0064D496 /* SwiftHoedownDemoOSX.app */,
178+
FD3DFCF31BA81162008358E1 /* SwiftHoedownDemoiOS.app */,
136179
);
137180
name = Products;
138181
sourceTree = "<group>";
@@ -179,6 +222,25 @@
179222
/* End PBXHeadersBuildPhase section */
180223

181224
/* Begin PBXNativeTarget section */
225+
FD3DFCF21BA81162008358E1 /* SwiftHoedownDemoiOS */ = {
226+
isa = PBXNativeTarget;
227+
buildConfigurationList = FD3DFD021BA81162008358E1 /* Build configuration list for PBXNativeTarget "SwiftHoedownDemoiOS" */;
228+
buildPhases = (
229+
FD3DFCEF1BA81162008358E1 /* Sources */,
230+
FD3DFCF01BA81162008358E1 /* Frameworks */,
231+
FD3DFCF11BA81162008358E1 /* Resources */,
232+
FD3DFD081BA81239008358E1 /* ShellScript */,
233+
);
234+
buildRules = (
235+
);
236+
dependencies = (
237+
FD3DFD0A1BA812FF008358E1 /* PBXTargetDependency */,
238+
);
239+
name = SwiftHoedownDemoiOS;
240+
productName = SwiftHoedownDemoiOS;
241+
productReference = FD3DFCF31BA81162008358E1 /* SwiftHoedownDemoiOS.app */;
242+
productType = "com.apple.product-type.application";
243+
};
182244
FD9515BF1BA70FFD0064D496 /* SwiftHoedownDemoOSX */ = {
183245
isa = PBXNativeTarget;
184246
buildConfigurationList = FD9515CE1BA70FFD0064D496 /* Build configuration list for PBXNativeTarget "SwiftHoedownDemoOSX" */;
@@ -244,6 +306,9 @@
244306
LastUpgradeCheck = 0630;
245307
ORGANIZATIONNAME = "Invisible Pixel";
246308
TargetAttributes = {
309+
FD3DFCF21BA81162008358E1 = {
310+
CreatedOnToolsVersion = 7.0;
311+
};
247312
FD9515BF1BA70FFD0064D496 = {
248313
CreatedOnToolsVersion = 7.0;
249314
};
@@ -271,11 +336,22 @@
271336
FDD6820C1AF7E38F00C2B1DF /* SwiftHoedownOSX */,
272337
FDEDAF0D1BA4377F0016BFD3 /* SwiftHoedowniOS */,
273338
FD9515BF1BA70FFD0064D496 /* SwiftHoedownDemoOSX */,
339+
FD3DFCF21BA81162008358E1 /* SwiftHoedownDemoiOS */,
274340
);
275341
};
276342
/* End PBXProject section */
277343

278344
/* Begin PBXResourcesBuildPhase section */
345+
FD3DFCF11BA81162008358E1 /* Resources */ = {
346+
isa = PBXResourcesBuildPhase;
347+
buildActionMask = 2147483647;
348+
files = (
349+
FD3DFD0C1BA815EA008358E1 /* sample.md in Resources */,
350+
FD3DFD001BA81162008358E1 /* LaunchScreen.storyboard in Resources */,
351+
FD3DFCFD1BA81162008358E1 /* Assets.xcassets in Resources */,
352+
);
353+
runOnlyForDeploymentPostprocessing = 0;
354+
};
279355
FD9515BE1BA70FFD0064D496 /* Resources */ = {
280356
isa = PBXResourcesBuildPhase;
281357
buildActionMask = 2147483647;
@@ -302,7 +378,33 @@
302378
};
303379
/* End PBXResourcesBuildPhase section */
304380

381+
/* Begin PBXShellScriptBuildPhase section */
382+
FD3DFD081BA81239008358E1 /* ShellScript */ = {
383+
isa = PBXShellScriptBuildPhase;
384+
buildActionMask = 2147483647;
385+
files = (
386+
);
387+
inputPaths = (
388+
"$(SRCROOT)/Carthage/Build/iOS/Hoedown.framework",
389+
);
390+
outputPaths = (
391+
);
392+
runOnlyForDeploymentPostprocessing = 0;
393+
shellPath = /bin/sh;
394+
shellScript = "/usr/local/bin/carthage copy-frameworks";
395+
};
396+
/* End PBXShellScriptBuildPhase section */
397+
305398
/* Begin PBXSourcesBuildPhase section */
399+
FD3DFCEF1BA81162008358E1 /* Sources */ = {
400+
isa = PBXSourcesBuildPhase;
401+
buildActionMask = 2147483647;
402+
files = (
403+
FD3DFCF81BA81162008358E1 /* WebViewController.swift in Sources */,
404+
FD3DFCF61BA81162008358E1 /* AppDelegate.swift in Sources */,
405+
);
406+
runOnlyForDeploymentPostprocessing = 0;
407+
};
306408
FD9515BC1BA70FFD0064D496 /* Sources */ = {
307409
isa = PBXSourcesBuildPhase;
308410
buildActionMask = 2147483647;
@@ -331,6 +433,11 @@
331433
/* End PBXSourcesBuildPhase section */
332434

333435
/* Begin PBXTargetDependency section */
436+
FD3DFD0A1BA812FF008358E1 /* PBXTargetDependency */ = {
437+
isa = PBXTargetDependency;
438+
target = FDEDAF0D1BA4377F0016BFD3 /* SwiftHoedowniOS */;
439+
targetProxy = FD3DFD091BA812FF008358E1 /* PBXContainerItemProxy */;
440+
};
334441
FDA3C1241BA713BE00FD613A /* PBXTargetDependency */ = {
335442
isa = PBXTargetDependency;
336443
target = FDD6820C1AF7E38F00C2B1DF /* SwiftHoedownOSX */;
@@ -339,6 +446,14 @@
339446
/* End PBXTargetDependency section */
340447

341448
/* Begin PBXVariantGroup section */
449+
FD3DFCFE1BA81162008358E1 /* LaunchScreen.storyboard */ = {
450+
isa = PBXVariantGroup;
451+
children = (
452+
FD3DFCFF1BA81162008358E1 /* Base */,
453+
);
454+
name = LaunchScreen.storyboard;
455+
sourceTree = "<group>";
456+
};
342457
FD9515C81BA70FFD0064D496 /* Main.storyboard */ = {
343458
isa = PBXVariantGroup;
344459
children = (
@@ -350,6 +465,42 @@
350465
/* End PBXVariantGroup section */
351466

352467
/* Begin XCBuildConfiguration section */
468+
FD3DFD031BA81162008358E1 /* Debug */ = {
469+
isa = XCBuildConfiguration;
470+
buildSettings = {
471+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
472+
DEBUG_INFORMATION_FORMAT = dwarf;
473+
ENABLE_TESTABILITY = YES;
474+
FRAMEWORK_SEARCH_PATHS = (
475+
"$(inherited)",
476+
"$(PROJECT_DIR)/Carthage/Build/iOS",
477+
);
478+
INFOPLIST_FILE = SwiftHoedownDemoiOS/Info.plist;
479+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
480+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
481+
PRODUCT_BUNDLE_IDENTIFIER = com.invisiblepixel.SwiftHoedownDemoiOS;
482+
PRODUCT_NAME = "$(TARGET_NAME)";
483+
SDKROOT = iphoneos;
484+
};
485+
name = Debug;
486+
};
487+
FD3DFD041BA81162008358E1 /* Release */ = {
488+
isa = XCBuildConfiguration;
489+
buildSettings = {
490+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
491+
FRAMEWORK_SEARCH_PATHS = (
492+
"$(inherited)",
493+
"$(PROJECT_DIR)/Carthage/Build/iOS",
494+
);
495+
INFOPLIST_FILE = SwiftHoedownDemoiOS/Info.plist;
496+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
497+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
498+
PRODUCT_BUNDLE_IDENTIFIER = com.invisiblepixel.SwiftHoedownDemoiOS;
499+
PRODUCT_NAME = "$(TARGET_NAME)";
500+
SDKROOT = iphoneos;
501+
};
502+
name = Release;
503+
};
353504
FD9515CC1BA70FFD0064D496 /* Debug */ = {
354505
isa = XCBuildConfiguration;
355506
buildSettings = {
@@ -572,6 +723,14 @@
572723
/* End XCBuildConfiguration section */
573724

574725
/* Begin XCConfigurationList section */
726+
FD3DFD021BA81162008358E1 /* Build configuration list for PBXNativeTarget "SwiftHoedownDemoiOS" */ = {
727+
isa = XCConfigurationList;
728+
buildConfigurations = (
729+
FD3DFD031BA81162008358E1 /* Debug */,
730+
FD3DFD041BA81162008358E1 /* Release */,
731+
);
732+
defaultConfigurationIsVisible = 0;
733+
};
575734
FD9515CE1BA70FFD0064D496 /* Build configuration list for PBXNativeTarget "SwiftHoedownDemoOSX" */ = {
576735
isa = XCConfigurationList;
577736
buildConfigurations = (

SwiftHoedown.xcodeproj/xcuserdata/njdehoog.xcuserdatad/xcschemes/xcschememanagement.plist

+10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<key>orderHint</key>
1010
<integer>2</integer>
1111
</dict>
12+
<key>SwiftHoedownDemoiOS.xcscheme</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>3</integer>
16+
</dict>
1217
<key>SwiftHoedownOSX.xcscheme_^#shared#^_</key>
1318
<dict>
1419
<key>orderHint</key>
@@ -22,6 +27,11 @@
2227
</dict>
2328
<key>SuppressBuildableAutocreation</key>
2429
<dict>
30+
<key>FD3DFCF21BA81162008358E1</key>
31+
<dict>
32+
<key>primary</key>
33+
<true/>
34+
</dict>
2535
<key>FD9515BF1BA70FFD0064D496</key>
2636
<dict>
2737
<key>primary</key>

SwiftHoedownDemoiOS/AppDelegate.swift

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// AppDelegate.swift
3+
// SwiftHoedownDemoiOS
4+
//
5+
// Created by Niels de Hoog on 15/09/15.
6+
// Copyright © 2015 Invisible Pixel. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
var window: UIWindow?
14+
15+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
16+
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
17+
self.window!.rootViewController = WebViewController()
18+
self.window!.makeKeyAndVisible()
19+
return true
20+
}
21+
}
22+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "29x29",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "40x40",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "60x60",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
32+
}
33+
],
34+
"info" : {
35+
"version" : 1,
36+
"author" : "xcode"
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
5+
</dependencies>
6+
<scenes>
7+
<!--View Controller-->
8+
<scene sceneID="EHf-IW-A2E">
9+
<objects>
10+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
11+
<layoutGuides>
12+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
13+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
14+
</layoutGuides>
15+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+
<animations/>
19+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>

0 commit comments

Comments
 (0)