Initial Commit

This commit is contained in:
Indragie Karunaratne
2015-04-27 20:32:05 -06:00
commit 32e0ad160b
10 changed files with 706 additions and 0 deletions

View File

@@ -0,0 +1,424 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
728FA1401AEF28A400C7A368 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 728FA13F1AEF28A400C7A368 /* AppDelegate.swift */; };
728FA1421AEF28A400C7A368 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 728FA1411AEF28A400C7A368 /* ViewController.swift */; };
728FA1451AEF28A400C7A368 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 728FA1431AEF28A400C7A368 /* Main.storyboard */; };
728FA1471AEF28A400C7A368 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 728FA1461AEF28A400C7A368 /* Images.xcassets */; };
728FA14A1AEF28A400C7A368 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 728FA1481AEF28A400C7A368 /* LaunchScreen.xib */; };
728FA1561AEF28A400C7A368 /* MarkdownTextViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 728FA1551AEF28A400C7A368 /* MarkdownTextViewTests.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
728FA1501AEF28A400C7A368 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 728FA1321AEF28A400C7A368 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 728FA1391AEF28A400C7A368;
remoteInfo = MarkdownTextView;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
728FA13A1AEF28A400C7A368 /* MarkdownTextView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MarkdownTextView.app; sourceTree = BUILT_PRODUCTS_DIR; };
728FA13E1AEF28A400C7A368 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
728FA13F1AEF28A400C7A368 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
728FA1411AEF28A400C7A368 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
728FA1441AEF28A400C7A368 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
728FA1461AEF28A400C7A368 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
728FA1491AEF28A400C7A368 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
728FA14F1AEF28A400C7A368 /* MarkdownTextViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MarkdownTextViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
728FA1541AEF28A400C7A368 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
728FA1551AEF28A400C7A368 /* MarkdownTextViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkdownTextViewTests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
728FA1371AEF28A400C7A368 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
728FA14C1AEF28A400C7A368 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
728FA1311AEF28A400C7A368 = {
isa = PBXGroup;
children = (
728FA13C1AEF28A400C7A368 /* MarkdownTextView */,
728FA1521AEF28A400C7A368 /* MarkdownTextViewTests */,
728FA13B1AEF28A400C7A368 /* Products */,
);
sourceTree = "<group>";
};
728FA13B1AEF28A400C7A368 /* Products */ = {
isa = PBXGroup;
children = (
728FA13A1AEF28A400C7A368 /* MarkdownTextView.app */,
728FA14F1AEF28A400C7A368 /* MarkdownTextViewTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
728FA13C1AEF28A400C7A368 /* MarkdownTextView */ = {
isa = PBXGroup;
children = (
728FA13F1AEF28A400C7A368 /* AppDelegate.swift */,
728FA1411AEF28A400C7A368 /* ViewController.swift */,
728FA1431AEF28A400C7A368 /* Main.storyboard */,
728FA1461AEF28A400C7A368 /* Images.xcassets */,
728FA1481AEF28A400C7A368 /* LaunchScreen.xib */,
728FA13D1AEF28A400C7A368 /* Supporting Files */,
);
path = MarkdownTextView;
sourceTree = "<group>";
};
728FA13D1AEF28A400C7A368 /* Supporting Files */ = {
isa = PBXGroup;
children = (
728FA13E1AEF28A400C7A368 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
728FA1521AEF28A400C7A368 /* MarkdownTextViewTests */ = {
isa = PBXGroup;
children = (
728FA1551AEF28A400C7A368 /* MarkdownTextViewTests.swift */,
728FA1531AEF28A400C7A368 /* Supporting Files */,
);
path = MarkdownTextViewTests;
sourceTree = "<group>";
};
728FA1531AEF28A400C7A368 /* Supporting Files */ = {
isa = PBXGroup;
children = (
728FA1541AEF28A400C7A368 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
728FA1391AEF28A400C7A368 /* MarkdownTextView */ = {
isa = PBXNativeTarget;
buildConfigurationList = 728FA1591AEF28A400C7A368 /* Build configuration list for PBXNativeTarget "MarkdownTextView" */;
buildPhases = (
728FA1361AEF28A400C7A368 /* Sources */,
728FA1371AEF28A400C7A368 /* Frameworks */,
728FA1381AEF28A400C7A368 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = MarkdownTextView;
productName = MarkdownTextView;
productReference = 728FA13A1AEF28A400C7A368 /* MarkdownTextView.app */;
productType = "com.apple.product-type.application";
};
728FA14E1AEF28A400C7A368 /* MarkdownTextViewTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 728FA15C1AEF28A400C7A368 /* Build configuration list for PBXNativeTarget "MarkdownTextViewTests" */;
buildPhases = (
728FA14B1AEF28A400C7A368 /* Sources */,
728FA14C1AEF28A400C7A368 /* Frameworks */,
728FA14D1AEF28A400C7A368 /* Resources */,
);
buildRules = (
);
dependencies = (
728FA1511AEF28A400C7A368 /* PBXTargetDependency */,
);
name = MarkdownTextViewTests;
productName = MarkdownTextViewTests;
productReference = 728FA14F1AEF28A400C7A368 /* MarkdownTextViewTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
728FA1321AEF28A400C7A368 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = "Indragie Karunaratne";
TargetAttributes = {
728FA1391AEF28A400C7A368 = {
CreatedOnToolsVersion = 6.3.1;
};
728FA14E1AEF28A400C7A368 = {
CreatedOnToolsVersion = 6.3.1;
TestTargetID = 728FA1391AEF28A400C7A368;
};
};
};
buildConfigurationList = 728FA1351AEF28A400C7A368 /* Build configuration list for PBXProject "MarkdownTextView" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 728FA1311AEF28A400C7A368;
productRefGroup = 728FA13B1AEF28A400C7A368 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
728FA1391AEF28A400C7A368 /* MarkdownTextView */,
728FA14E1AEF28A400C7A368 /* MarkdownTextViewTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
728FA1381AEF28A400C7A368 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
728FA1451AEF28A400C7A368 /* Main.storyboard in Resources */,
728FA14A1AEF28A400C7A368 /* LaunchScreen.xib in Resources */,
728FA1471AEF28A400C7A368 /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
728FA14D1AEF28A400C7A368 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
728FA1361AEF28A400C7A368 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
728FA1421AEF28A400C7A368 /* ViewController.swift in Sources */,
728FA1401AEF28A400C7A368 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
728FA14B1AEF28A400C7A368 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
728FA1561AEF28A400C7A368 /* MarkdownTextViewTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
728FA1511AEF28A400C7A368 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 728FA1391AEF28A400C7A368 /* MarkdownTextView */;
targetProxy = 728FA1501AEF28A400C7A368 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
728FA1431AEF28A400C7A368 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
728FA1441AEF28A400C7A368 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
728FA1481AEF28A400C7A368 /* LaunchScreen.xib */ = {
isa = PBXVariantGroup;
children = (
728FA1491AEF28A400C7A368 /* Base */,
);
name = LaunchScreen.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
728FA1571AEF28A400C7A368 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
728FA1581AEF28A400C7A368 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
728FA15A1AEF28A400C7A368 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = MarkdownTextView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
728FA15B1AEF28A400C7A368 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = MarkdownTextView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
728FA15D1AEF28A400C7A368 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = MarkdownTextViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MarkdownTextView.app/MarkdownTextView";
};
name = Debug;
};
728FA15E1AEF28A400C7A368 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
INFOPLIST_FILE = MarkdownTextViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MarkdownTextView.app/MarkdownTextView";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
728FA1351AEF28A400C7A368 /* Build configuration list for PBXProject "MarkdownTextView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
728FA1571AEF28A400C7A368 /* Debug */,
728FA1581AEF28A400C7A368 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
728FA1591AEF28A400C7A368 /* Build configuration list for PBXNativeTarget "MarkdownTextView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
728FA15A1AEF28A400C7A368 /* Debug */,
728FA15B1AEF28A400C7A368 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
728FA15C1AEF28A400C7A368 /* Build configuration list for PBXNativeTarget "MarkdownTextViewTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
728FA15D1AEF28A400C7A368 /* Debug */,
728FA15E1AEF28A400C7A368 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 728FA1321AEF28A400C7A368 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:MarkdownTextView.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,46 @@
//
// AppDelegate.swift
// MarkdownTextView
//
// Created by Indragie on 4/27/15.
// Copyright (c) 2015 Indragie Karunaratne. All rights reserved.
//
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:.
}
}

View File

@@ -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 Indragie Karunaratne. 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="MarkdownTextView" 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>

View File

@@ -0,0 +1,25 @@
<?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="vXZ-lx-hvc">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>

View File

@@ -0,0 +1,38 @@
{
"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"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,40 @@
<?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.indragie.$(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>
</dict>
</plist>

View File

@@ -0,0 +1,25 @@
//
// ViewController.swift
// MarkdownTextView
//
// Created by Indragie on 4/27/15.
// Copyright (c) 2015 Indragie Karunaratne. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}

View File

@@ -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.indragie.$(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>

View File

@@ -0,0 +1,36 @@
//
// MarkdownTextViewTests.swift
// MarkdownTextViewTests
//
// Created by Indragie on 4/27/15.
// Copyright (c) 2015 Indragie Karunaratne. All rights reserved.
//
import UIKit
import XCTest
class MarkdownTextViewTests: 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.
}
}
}