From a552341d427971ea3362e6be84753e13c09e846d Mon Sep 17 00:00:00 2001 From: Kyle Shank Date: Wed, 15 Feb 2017 13:51:27 -0500 Subject: [PATCH] ASTextFieldNodeExample --- example/.gitignore | 68 +++ .../project.pbxproj | 573 ++++++++++++++++++ .../ASTextFieldNodeExample/AppDelegate.swift | 50 ++ .../AppIcon.appiconset/Contents.json | 68 +++ .../Base.lproj/LaunchScreen.storyboard | 27 + .../ASTextFieldNodeExample/Info.plist | 43 ++ .../ViewController.swift | 78 +++ .../ASTextFieldNodeExampleTests.swift | 36 ++ .../ASTextFieldNodeExampleTests/Info.plist | 22 + .../ASTextFieldNodeExampleUITests.swift | 36 ++ .../ASTextFieldNodeExampleUITests/Info.plist | 22 + example/Cartfile | 1 + 12 files changed, 1024 insertions(+) create mode 100644 example/.gitignore create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample.xcodeproj/project.pbxproj create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample/AppDelegate.swift create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample/Base.lproj/LaunchScreen.storyboard create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample/Info.plist create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExample/ViewController.swift create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/ASTextFieldNodeExampleTests.swift create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/Info.plist create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/ASTextFieldNodeExampleUITests.swift create mode 100644 example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/Info.plist create mode 100644 example/Cartfile diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 0000000..ee48090 --- /dev/null +++ b/example/.gitignore @@ -0,0 +1,68 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +Cartfile.resolved + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ + +## Other +*.moved-aside +*.xcuserstate +*.xccurrentversion +*.xcworkspacedata + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +.build/ + +# CocoaPods +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +# Pods/ + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +Carthage/Checkouts +Carthage/Build + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample.xcodeproj/project.pbxproj b/example/ASTextFieldNodeExample/ASTextFieldNodeExample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1b9f4e3 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample.xcodeproj/project.pbxproj @@ -0,0 +1,573 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 6AC344A91E50143100402D38 /* ASTextFieldNode.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A314A891E501355005CBAE3 /* ASTextFieldNode.framework */; }; + 6AC344AA1E50143100402D38 /* ASTextFieldNode.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6A314A891E501355005CBAE3 /* ASTextFieldNode.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 6AC344AB1E50143300402D38 /* AsyncDisplayKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A314A8A1E501355005CBAE3 /* AsyncDisplayKit.framework */; }; + 6AC344AC1E50143300402D38 /* AsyncDisplayKit.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6A314A8A1E501355005CBAE3 /* AsyncDisplayKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 6ACFF5EC1E4FA0A800E0E544 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ACFF5EB1E4FA0A800E0E544 /* AppDelegate.swift */; }; + 6ACFF5EE1E4FA0A800E0E544 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ACFF5ED1E4FA0A800E0E544 /* ViewController.swift */; }; + 6ACFF5F31E4FA0A800E0E544 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6ACFF5F21E4FA0A800E0E544 /* Assets.xcassets */; }; + 6ACFF5F61E4FA0A800E0E544 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6ACFF5F41E4FA0A800E0E544 /* LaunchScreen.storyboard */; }; + 6ACFF6011E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ACFF6001E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.swift */; }; + 6ACFF60C1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ACFF60B1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6ACFF5FD1E4FA0A800E0E544 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6ACFF5E01E4FA0A800E0E544 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6ACFF5E71E4FA0A800E0E544; + remoteInfo = ASTextFieldNodeExample; + }; + 6ACFF6081E4FA0A800E0E544 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6ACFF5E01E4FA0A800E0E544 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6ACFF5E71E4FA0A800E0E544; + remoteInfo = ASTextFieldNodeExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 6A314A7F1E5011B4005CBAE3 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + 6A314A861E5012C4005CBAE3 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 6AC344AA1E50143100402D38 /* ASTextFieldNode.framework in CopyFiles */, + 6AC344AC1E50143300402D38 /* AsyncDisplayKit.framework in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 6A314A891E501355005CBAE3 /* ASTextFieldNode.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ASTextFieldNode.framework; path = ../Carthage/Build/iOS/ASTextFieldNode.framework; sourceTree = ""; }; + 6A314A8A1E501355005CBAE3 /* AsyncDisplayKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AsyncDisplayKit.framework; path = ../Carthage/Build/iOS/AsyncDisplayKit.framework; sourceTree = ""; }; + 6ACFF5E81E4FA0A800E0E544 /* ASTextFieldNodeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ASTextFieldNodeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6ACFF5EB1E4FA0A800E0E544 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 6ACFF5ED1E4FA0A800E0E544 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 6ACFF5F21E4FA0A800E0E544 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6ACFF5F51E4FA0A800E0E544 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 6ACFF5F71E4FA0A800E0E544 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6ACFF5FC1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ASTextFieldNodeExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6ACFF6001E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ASTextFieldNodeExampleTests.swift; sourceTree = ""; }; + 6ACFF6021E4FA0A800E0E544 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6ACFF6071E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ASTextFieldNodeExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6ACFF60B1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ASTextFieldNodeExampleUITests.swift; sourceTree = ""; }; + 6ACFF60D1E4FA0A800E0E544 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6ACFF5E51E4FA0A800E0E544 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6AC344A91E50143100402D38 /* ASTextFieldNode.framework in Frameworks */, + 6AC344AB1E50143300402D38 /* AsyncDisplayKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF5F91E4FA0A800E0E544 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF6041E4FA0A800E0E544 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6ACFF5DF1E4FA0A800E0E544 = { + isa = PBXGroup; + children = ( + 6ACFF5EA1E4FA0A800E0E544 /* ASTextFieldNodeExample */, + 6ACFF5FF1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests */, + 6ACFF60A1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests */, + 6ACFF6191E4FA37400E0E544 /* Frameworks */, + 6ACFF5E91E4FA0A800E0E544 /* Products */, + ); + sourceTree = ""; + }; + 6ACFF5E91E4FA0A800E0E544 /* Products */ = { + isa = PBXGroup; + children = ( + 6ACFF5E81E4FA0A800E0E544 /* ASTextFieldNodeExample.app */, + 6ACFF5FC1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.xctest */, + 6ACFF6071E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6ACFF5EA1E4FA0A800E0E544 /* ASTextFieldNodeExample */ = { + isa = PBXGroup; + children = ( + 6ACFF5EB1E4FA0A800E0E544 /* AppDelegate.swift */, + 6ACFF5ED1E4FA0A800E0E544 /* ViewController.swift */, + 6ACFF5F21E4FA0A800E0E544 /* Assets.xcassets */, + 6ACFF5F41E4FA0A800E0E544 /* LaunchScreen.storyboard */, + 6ACFF5F71E4FA0A800E0E544 /* Info.plist */, + ); + path = ASTextFieldNodeExample; + sourceTree = ""; + }; + 6ACFF5FF1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests */ = { + isa = PBXGroup; + children = ( + 6ACFF6001E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.swift */, + 6ACFF6021E4FA0A800E0E544 /* Info.plist */, + ); + path = ASTextFieldNodeExampleTests; + sourceTree = ""; + }; + 6ACFF60A1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests */ = { + isa = PBXGroup; + children = ( + 6ACFF60B1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.swift */, + 6ACFF60D1E4FA0A800E0E544 /* Info.plist */, + ); + path = ASTextFieldNodeExampleUITests; + sourceTree = ""; + }; + 6ACFF6191E4FA37400E0E544 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6A314A891E501355005CBAE3 /* ASTextFieldNode.framework */, + 6A314A8A1E501355005CBAE3 /* AsyncDisplayKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6ACFF5E71E4FA0A800E0E544 /* ASTextFieldNodeExample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6ACFF6101E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExample" */; + buildPhases = ( + 6ACFF5E41E4FA0A800E0E544 /* Sources */, + 6A314A861E5012C4005CBAE3 /* CopyFiles */, + 6ACFF5E51E4FA0A800E0E544 /* Frameworks */, + 6ACFF5E61E4FA0A800E0E544 /* Resources */, + 6A314A7F1E5011B4005CBAE3 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ASTextFieldNodeExample; + productName = ASTextFieldNodeExample; + productReference = 6ACFF5E81E4FA0A800E0E544 /* ASTextFieldNodeExample.app */; + productType = "com.apple.product-type.application"; + }; + 6ACFF5FB1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6ACFF6131E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExampleTests" */; + buildPhases = ( + 6ACFF5F81E4FA0A800E0E544 /* Sources */, + 6ACFF5F91E4FA0A800E0E544 /* Frameworks */, + 6ACFF5FA1E4FA0A800E0E544 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6ACFF5FE1E4FA0A800E0E544 /* PBXTargetDependency */, + ); + name = ASTextFieldNodeExampleTests; + productName = ASTextFieldNodeExampleTests; + productReference = 6ACFF5FC1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 6ACFF6061E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6ACFF6161E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExampleUITests" */; + buildPhases = ( + 6ACFF6031E4FA0A800E0E544 /* Sources */, + 6ACFF6041E4FA0A800E0E544 /* Frameworks */, + 6ACFF6051E4FA0A800E0E544 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6ACFF6091E4FA0A800E0E544 /* PBXTargetDependency */, + ); + name = ASTextFieldNodeExampleUITests; + productName = ASTextFieldNodeExampleUITests; + productReference = 6ACFF6071E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6ACFF5E01E4FA0A800E0E544 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0820; + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = "Pocket Labs"; + TargetAttributes = { + 6ACFF5E71E4FA0A800E0E544 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; + 6ACFF5FB1E4FA0A800E0E544 = { + CreatedOnToolsVersion = 8.2.1; + DevelopmentTeam = 49BGFQZ444; + ProvisioningStyle = Automatic; + TestTargetID = 6ACFF5E71E4FA0A800E0E544; + }; + 6ACFF6061E4FA0A800E0E544 = { + CreatedOnToolsVersion = 8.2.1; + DevelopmentTeam = 49BGFQZ444; + ProvisioningStyle = Automatic; + TestTargetID = 6ACFF5E71E4FA0A800E0E544; + }; + }; + }; + buildConfigurationList = 6ACFF5E31E4FA0A800E0E544 /* Build configuration list for PBXProject "ASTextFieldNodeExample" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6ACFF5DF1E4FA0A800E0E544; + productRefGroup = 6ACFF5E91E4FA0A800E0E544 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6ACFF5E71E4FA0A800E0E544 /* ASTextFieldNodeExample */, + 6ACFF5FB1E4FA0A800E0E544 /* ASTextFieldNodeExampleTests */, + 6ACFF6061E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6ACFF5E61E4FA0A800E0E544 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6ACFF5F61E4FA0A800E0E544 /* LaunchScreen.storyboard in Resources */, + 6ACFF5F31E4FA0A800E0E544 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF5FA1E4FA0A800E0E544 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF6051E4FA0A800E0E544 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6ACFF5E41E4FA0A800E0E544 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6ACFF5EE1E4FA0A800E0E544 /* ViewController.swift in Sources */, + 6ACFF5EC1E4FA0A800E0E544 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF5F81E4FA0A800E0E544 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6ACFF6011E4FA0A800E0E544 /* ASTextFieldNodeExampleTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6ACFF6031E4FA0A800E0E544 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6ACFF60C1E4FA0A800E0E544 /* ASTextFieldNodeExampleUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6ACFF5FE1E4FA0A800E0E544 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6ACFF5E71E4FA0A800E0E544 /* ASTextFieldNodeExample */; + targetProxy = 6ACFF5FD1E4FA0A800E0E544 /* PBXContainerItemProxy */; + }; + 6ACFF6091E4FA0A800E0E544 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6ACFF5E71E4FA0A800E0E544 /* ASTextFieldNodeExample */; + targetProxy = 6ACFF6081E4FA0A800E0E544 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 6ACFF5F41E4FA0A800E0E544 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6ACFF5F51E4FA0A800E0E544 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6ACFF60E1E4FA0A800E0E544 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = 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_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 = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6ACFF60F1E4FA0A800E0E544 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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 = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6ACFF6111E4FA0A800E0E544 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../Carthage/Build/iOS/**"; + INFOPLIST_FILE = ASTextFieldNodeExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 6ACFF6121E4FA0A800E0E544 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../Carthage/Build/iOS/**"; + INFOPLIST_FILE = ASTextFieldNodeExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 6ACFF6141E4FA0A800E0E544 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + DEVELOPMENT_TEAM = 49BGFQZ444; + INFOPLIST_FILE = ASTextFieldNodeExampleTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExampleTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ASTextFieldNodeExample.app/ASTextFieldNodeExample"; + }; + name = Debug; + }; + 6ACFF6151E4FA0A800E0E544 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + DEVELOPMENT_TEAM = 49BGFQZ444; + INFOPLIST_FILE = ASTextFieldNodeExampleTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExampleTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ASTextFieldNodeExample.app/ASTextFieldNodeExample"; + }; + name = Release; + }; + 6ACFF6171E4FA0A800E0E544 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + DEVELOPMENT_TEAM = 49BGFQZ444; + INFOPLIST_FILE = ASTextFieldNodeExampleUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExampleUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = ASTextFieldNodeExample; + }; + name = Debug; + }; + 6ACFF6181E4FA0A800E0E544 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + DEVELOPMENT_TEAM = 49BGFQZ444; + INFOPLIST_FILE = ASTextFieldNodeExampleUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.pocketlabs.ASTextFieldNodeExampleUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = ASTextFieldNodeExample; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6ACFF5E31E4FA0A800E0E544 /* Build configuration list for PBXProject "ASTextFieldNodeExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6ACFF60E1E4FA0A800E0E544 /* Debug */, + 6ACFF60F1E4FA0A800E0E544 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6ACFF6101E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6ACFF6111E4FA0A800E0E544 /* Debug */, + 6ACFF6121E4FA0A800E0E544 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6ACFF6131E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExampleTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6ACFF6141E4FA0A800E0E544 /* Debug */, + 6ACFF6151E4FA0A800E0E544 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6ACFF6161E4FA0A800E0E544 /* Build configuration list for PBXNativeTarget "ASTextFieldNodeExampleUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6ACFF6171E4FA0A800E0E544 /* Debug */, + 6ACFF6181E4FA0A800E0E544 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6ACFF5E01E4FA0A800E0E544 /* Project object */; +} diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample/AppDelegate.swift b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/AppDelegate.swift new file mode 100644 index 0000000..317a321 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/AppDelegate.swift @@ -0,0 +1,50 @@ +// +// AppDelegate.swift +// ASTextFieldNodeExample +// +// Created by Kyle Shank on 2/11/17. +// Copyright © 2017 Pocket Labs. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + self.window = UIWindow(frame: UIScreen.main.bounds) + self.window?.backgroundColor = UIColor.white + self.window?.rootViewController = ViewController() + self.window?.makeKeyAndVisible() + + 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 invalidate graphics rendering callbacks. 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 active 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:. + } + + +} + diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "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" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Base.lproj/LaunchScreen.storyboard b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Info.plist b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Info.plist new file mode 100644 index 0000000..c12df3b --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExample/ViewController.swift b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/ViewController.swift new file mode 100644 index 0000000..14d3fb3 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExample/ViewController.swift @@ -0,0 +1,78 @@ +// +// ViewController.swift +// ASTextFieldNodeExample +// +// Created by Kyle Shank on 2/11/17. +// Copyright © 2017 Pocket Labs. All rights reserved. +// + +import UIKit +import AsyncDisplayKit +import ASTextFieldNode + +class ViewController: ASViewController { + + init(){ + super.init( node : LoginViewNode() ) + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + +} + +class LoginViewNode : ASDisplayNode { + let loginField = ASTextFieldNode() + let passwordField = ASTextFieldNode() + let emailLabel = ASTextNode() + let passwordLabel = ASTextNode() + + override init(){ + super.init() + + self.automaticallyManagesSubnodes = true + } + + override func didLoad() { + super.didLoad() + + self.backgroundColor = UIColor.white + self.layer.borderColor = UIColor.gray.cgColor + self.layer.borderWidth = 1.0 + self.layer.cornerRadius = 3.0 + + emailLabel.attributedText = NSAttributedString(string: "Email address", attributes: [NSForegroundColorAttributeName : UIColor.black, NSFontAttributeName : UIFont.boldSystemFont(ofSize: 14.0)]) + passwordLabel.attributedText = NSAttributedString(string: "Password", attributes: [NSForegroundColorAttributeName : UIColor.black, NSFontAttributeName : UIFont.boldSystemFont(ofSize: 14.0)]) + + loginField.autocapitalizationType = .none + loginField.autocorrectionType = .no + loginField.keyboardType = .emailAddress + loginField.font = UIFont.systemFont(ofSize: 16.0) + loginField.textField.attributedPlaceholder = NSAttributedString(string: "you@domain.com", attributes: [NSForegroundColorAttributeName : UIColor.lightGray, NSFontAttributeName : UIFont.systemFont(ofSize: 16.0)]) + + passwordField.isSecureTextEntry = true + passwordField.keyboardType = .asciiCapable + passwordField.font = UIFont.systemFont(ofSize: 16.0) + passwordField.textField.attributedPlaceholder = NSAttributedString(string: "******", attributes: [NSForegroundColorAttributeName : UIColor.lightGray, NSFontAttributeName : UIFont.systemFont(ofSize: 16.0)]) + } + + override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { + let verticalStack = ASStackLayoutSpec.vertical() + + let verticalStack1 = ASStackLayoutSpec.vertical() + verticalStack1.children = [emailLabel, loginField] + verticalStack1.spacing = 8.0 + let verticalStack1Layout = ASInsetLayoutSpec(insets: UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0), child: verticalStack1) + + let verticalStack2 = ASStackLayoutSpec.vertical() + verticalStack2.children = [passwordLabel, passwordField] + verticalStack2.spacing = 8.0 + let verticalStack2Layout = ASInsetLayoutSpec(insets: UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0), child: verticalStack2) + + verticalStack.children = [verticalStack1Layout, verticalStack2Layout] + verticalStack.style.width = ASDimension(unit: .points, value: 180.0) + + return ASCenterLayoutSpec(centeringOptions: .XY, sizingOptions: .minimumXY, child: verticalStack) + } +} diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/ASTextFieldNodeExampleTests.swift b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/ASTextFieldNodeExampleTests.swift new file mode 100644 index 0000000..21756cd --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/ASTextFieldNodeExampleTests.swift @@ -0,0 +1,36 @@ +// +// ASTextFieldNodeExampleTests.swift +// ASTextFieldNodeExampleTests +// +// Created by Kyle Shank on 2/11/17. +// Copyright © 2017 Pocket Labs. All rights reserved. +// + +import XCTest +@testable import ASTextFieldNodeExample + +class ASTextFieldNodeExampleTests: 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. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/Info.plist b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/ASTextFieldNodeExampleUITests.swift b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/ASTextFieldNodeExampleUITests.swift new file mode 100644 index 0000000..90e8ec1 --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/ASTextFieldNodeExampleUITests.swift @@ -0,0 +1,36 @@ +// +// ASTextFieldNodeExampleUITests.swift +// ASTextFieldNodeExampleUITests +// +// Created by Kyle Shank on 2/11/17. +// Copyright © 2017 Pocket Labs. All rights reserved. +// + +import XCTest + +class ASTextFieldNodeExampleUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + 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() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +} diff --git a/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/Info.plist b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/example/ASTextFieldNodeExample/ASTextFieldNodeExampleUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/example/Cartfile b/example/Cartfile new file mode 100644 index 0000000..3afc0b6 --- /dev/null +++ b/example/Cartfile @@ -0,0 +1 @@ +github "pocketlabs/ASTextFieldNode"