├── . gitattributes ├── .gitignore ├── .travis.yml ├── Example ├── MultilineTextField.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── MultilineTextField-Example.xcscheme ├── MultilineTextField.xcworkspace │ └── contents.xcworkspacedata ├── MultilineTextField │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── fire-truck.imageset │ │ │ ├── Contents.json │ │ │ └── fire-truck.pdf │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── MultilineTextField.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── MultilineTextField │ │ ├── Info.plist │ │ ├── MultilineTextField-dummy.m │ │ ├── MultilineTextField-prefix.pch │ │ ├── MultilineTextField-umbrella.h │ │ ├── MultilineTextField.modulemap │ │ └── MultilineTextField.xcconfig │ │ ├── Pods-MultilineTextField_Example │ │ ├── Info.plist │ │ ├── Pods-MultilineTextField_Example-acknowledgements.markdown │ │ ├── Pods-MultilineTextField_Example-acknowledgements.plist │ │ ├── Pods-MultilineTextField_Example-dummy.m │ │ ├── Pods-MultilineTextField_Example-frameworks.sh │ │ ├── Pods-MultilineTextField_Example-resources.sh │ │ ├── Pods-MultilineTextField_Example-umbrella.h │ │ ├── Pods-MultilineTextField_Example.debug.xcconfig │ │ ├── Pods-MultilineTextField_Example.modulemap │ │ └── Pods-MultilineTextField_Example.release.xcconfig │ │ └── Pods-MultilineTextField_Tests │ │ ├── Info.plist │ │ ├── Pods-MultilineTextField_Tests-acknowledgements.markdown │ │ ├── Pods-MultilineTextField_Tests-acknowledgements.plist │ │ ├── Pods-MultilineTextField_Tests-dummy.m │ │ ├── Pods-MultilineTextField_Tests-frameworks.sh │ │ ├── Pods-MultilineTextField_Tests-resources.sh │ │ ├── Pods-MultilineTextField_Tests-umbrella.h │ │ ├── Pods-MultilineTextField_Tests.debug.xcconfig │ │ ├── Pods-MultilineTextField_Tests.modulemap │ │ └── Pods-MultilineTextField_Tests.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── img-multiple-lines.jpg └── img-placeholder.jpg ├── LICENSE ├── MultilineTextField.podspec ├── Package.swift ├── README.md ├── Sources └── MultilineTextField │ └── MultilineTextField.swift ├── Tests ├── LinuxMain.swift └── MultilineTextFieldTests │ ├── MultilineTextFieldTests.swift │ └── XCTestManifests.swift └── _Pods.xcodeproj /. gitattributes: -------------------------------------------------------------------------------- 1 | linguist-language=Swift 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | .swiftpm/ 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/MultilineTextField.xcworkspace -scheme MultilineTextField-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/MultilineTextField.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0C2437C067F0E22C270CA0F6 /* Pods_MultilineTextField_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E3C1AAB4FA8C8A0545E648B /* Pods_MultilineTextField_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | DD4992D22CE3EE9D008ABEAA /* Pods_MultilineTextField_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A5C6B67770A03E97F87BD72 /* Pods_MultilineTextField_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = MultilineTextField; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0C9AC9A4B79163E5193232FD /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 1A5C6B67770A03E97F87BD72 /* Pods_MultilineTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MultilineTextField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 1E3C1AAB4FA8C8A0545E648B /* Pods_MultilineTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MultilineTextField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 33433AF73DDFA01966AAD4D6 /* Pods-MultilineTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MultilineTextField_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.release.xcconfig"; sourceTree = ""; }; 35 | 54B23DFBE163454D2009241F /* Pods-MultilineTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MultilineTextField_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.debug.xcconfig"; sourceTree = ""; }; 36 | 607FACD01AFB9204008FA782 /* MultilineTextField_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MultilineTextField_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 40 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 42 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 43 | 607FACE51AFB9204008FA782 /* MultilineTextField_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MultilineTextField_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 46 | 7DE1C24BD3D9F6E89E586FBB /* MultilineTextField.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MultilineTextField.podspec; path = ../MultilineTextField.podspec; sourceTree = ""; }; 47 | 7E8CB0B73994664BF30EB269 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 48 | 9D947208D0ED5620E38CE50F /* Pods-MultilineTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MultilineTextField_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | A93FD9CDD14020EAEAA9951A /* Pods-MultilineTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MultilineTextField_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 0C2437C067F0E22C270CA0F6 /* Pods_MultilineTextField_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | DD4992D22CE3EE9D008ABEAA /* Pods_MultilineTextField_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 21BD5B040F69A1A66A551FE4 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 54B23DFBE163454D2009241F /* Pods-MultilineTextField_Example.debug.xcconfig */, 76 | A93FD9CDD14020EAEAA9951A /* Pods-MultilineTextField_Example.release.xcconfig */, 77 | 9D947208D0ED5620E38CE50F /* Pods-MultilineTextField_Tests.debug.xcconfig */, 78 | 33433AF73DDFA01966AAD4D6 /* Pods-MultilineTextField_Tests.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for MultilineTextField */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 21BD5B040F69A1A66A551FE4 /* Pods */, 91 | FA2EE8E27064E7B0BAFEE986 /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* MultilineTextField_Example.app */, 99 | 607FACE51AFB9204008FA782 /* MultilineTextField_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for MultilineTextField */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 108 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 109 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 110 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 111 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 112 | 607FACD31AFB9204008FA782 /* Supporting Files */, 113 | ); 114 | name = "Example for MultilineTextField"; 115 | path = MultilineTextField; 116 | sourceTree = ""; 117 | }; 118 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD41AFB9204008FA782 /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 607FACE81AFB9204008FA782 /* Tests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 130 | 607FACE91AFB9204008FA782 /* Supporting Files */, 131 | ); 132 | path = Tests; 133 | sourceTree = ""; 134 | }; 135 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEA1AFB9204008FA782 /* Info.plist */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 7DE1C24BD3D9F6E89E586FBB /* MultilineTextField.podspec */, 147 | 7E8CB0B73994664BF30EB269 /* README.md */, 148 | 0C9AC9A4B79163E5193232FD /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | FA2EE8E27064E7B0BAFEE986 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 1E3C1AAB4FA8C8A0545E648B /* Pods_MultilineTextField_Example.framework */, 157 | 1A5C6B67770A03E97F87BD72 /* Pods_MultilineTextField_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* MultilineTextField_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MultilineTextField_Example" */; 168 | buildPhases = ( 169 | 773040CBB35A34E42FB8F08C /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 7107321A42EBC475D275DF34 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = MultilineTextField_Example; 180 | productName = MultilineTextField; 181 | productReference = 607FACD01AFB9204008FA782 /* MultilineTextField_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* MultilineTextField_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MultilineTextField_Tests" */; 187 | buildPhases = ( 188 | EE76DEB531AF6568C08AC981 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = MultilineTextField_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* MultilineTextField_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | DevelopmentTeam = 5DA656H26H; 216 | LastSwiftMigration = 0900; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | DevelopmentTeam = 5DA656H26H; 221 | LastSwiftMigration = 0900; 222 | TestTargetID = 607FACCF1AFB9204008FA782; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MultilineTextField" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = English; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | English, 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* MultilineTextField_Example */, 241 | 607FACE41AFB9204008FA782 /* MultilineTextField_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 7107321A42EBC475D275DF34 /* [CP] Embed Pods Frameworks */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_ROOT}/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-frameworks.sh", 274 | "${BUILT_PRODUCTS_DIR}/MultilineTextField/MultilineTextField.framework", 275 | ); 276 | name = "[CP] Embed Pods Frameworks"; 277 | outputPaths = ( 278 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MultilineTextField.framework", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-frameworks.sh\"\n"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 773040CBB35A34E42FB8F08C /* [CP] Check Pods Manifest.lock */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputPaths = ( 296 | "$(DERIVED_FILE_DIR)/Pods-MultilineTextField_Example-checkManifestLockResult.txt", 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | EE76DEB531AF6568C08AC981 /* [CP] Check Pods Manifest.lock */ = { 304 | isa = PBXShellScriptBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | inputPaths = ( 309 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 310 | "${PODS_ROOT}/Manifest.lock", 311 | ); 312 | name = "[CP] Check Pods Manifest.lock"; 313 | outputPaths = ( 314 | "$(DERIVED_FILE_DIR)/Pods-MultilineTextField_Tests-checkManifestLockResult.txt", 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | shellPath = /bin/sh; 318 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 319 | showEnvVarsInLog = 0; 320 | }; 321 | /* End PBXShellScriptBuildPhase section */ 322 | 323 | /* Begin PBXSourcesBuildPhase section */ 324 | 607FACCC1AFB9204008FA782 /* Sources */ = { 325 | isa = PBXSourcesBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 329 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 607FACE11AFB9204008FA782 /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | /* End PBXSourcesBuildPhase section */ 342 | 343 | /* Begin PBXTargetDependency section */ 344 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 345 | isa = PBXTargetDependency; 346 | target = 607FACCF1AFB9204008FA782 /* MultilineTextField_Example */; 347 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 348 | }; 349 | /* End PBXTargetDependency section */ 350 | 351 | /* Begin PBXVariantGroup section */ 352 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 353 | isa = PBXVariantGroup; 354 | children = ( 355 | 607FACDA1AFB9204008FA782 /* Base */, 356 | ); 357 | name = Main.storyboard; 358 | sourceTree = ""; 359 | }; 360 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 361 | isa = PBXVariantGroup; 362 | children = ( 363 | 607FACDF1AFB9204008FA782 /* Base */, 364 | ); 365 | name = LaunchScreen.xib; 366 | sourceTree = ""; 367 | }; 368 | /* End PBXVariantGroup section */ 369 | 370 | /* Begin XCBuildConfiguration section */ 371 | 607FACED1AFB9204008FA782 /* Debug */ = { 372 | isa = XCBuildConfiguration; 373 | buildSettings = { 374 | ALWAYS_SEARCH_USER_PATHS = NO; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INFINITE_RECURSION = YES; 387 | CLANG_WARN_INT_CONVERSION = YES; 388 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 389 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 391 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 392 | CLANG_WARN_STRICT_PROTOTYPES = YES; 393 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 394 | CLANG_WARN_UNREACHABLE_CODE = YES; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = NO; 398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 399 | ENABLE_STRICT_OBJC_MSGSEND = YES; 400 | ENABLE_TESTABILITY = YES; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_DYNAMIC_NO_PIC = NO; 403 | GCC_NO_COMMON_BLOCKS = YES; 404 | GCC_OPTIMIZATION_LEVEL = 0; 405 | GCC_PREPROCESSOR_DEFINITIONS = ( 406 | "DEBUG=1", 407 | "$(inherited)", 408 | ); 409 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 410 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 411 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 412 | GCC_WARN_UNDECLARED_SELECTOR = YES; 413 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 414 | GCC_WARN_UNUSED_FUNCTION = YES; 415 | GCC_WARN_UNUSED_VARIABLE = YES; 416 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 417 | MTL_ENABLE_DEBUG_INFO = YES; 418 | ONLY_ACTIVE_ARCH = YES; 419 | SDKROOT = iphoneos; 420 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 421 | }; 422 | name = Debug; 423 | }; 424 | 607FACEE1AFB9204008FA782 /* Release */ = { 425 | isa = XCBuildConfiguration; 426 | buildSettings = { 427 | ALWAYS_SEARCH_USER_PATHS = NO; 428 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 429 | CLANG_CXX_LIBRARY = "libc++"; 430 | CLANG_ENABLE_MODULES = YES; 431 | CLANG_ENABLE_OBJC_ARC = YES; 432 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 433 | CLANG_WARN_BOOL_CONVERSION = YES; 434 | CLANG_WARN_COMMA = YES; 435 | CLANG_WARN_CONSTANT_CONVERSION = YES; 436 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 437 | CLANG_WARN_EMPTY_BODY = YES; 438 | CLANG_WARN_ENUM_CONVERSION = YES; 439 | CLANG_WARN_INFINITE_RECURSION = YES; 440 | CLANG_WARN_INT_CONVERSION = YES; 441 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 442 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 443 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 444 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 445 | CLANG_WARN_STRICT_PROTOTYPES = YES; 446 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 447 | CLANG_WARN_UNREACHABLE_CODE = YES; 448 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 449 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 450 | COPY_PHASE_STRIP = NO; 451 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 452 | ENABLE_NS_ASSERTIONS = NO; 453 | ENABLE_STRICT_OBJC_MSGSEND = YES; 454 | GCC_C_LANGUAGE_STANDARD = gnu99; 455 | GCC_NO_COMMON_BLOCKS = YES; 456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 458 | GCC_WARN_UNDECLARED_SELECTOR = YES; 459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 460 | GCC_WARN_UNUSED_FUNCTION = YES; 461 | GCC_WARN_UNUSED_VARIABLE = YES; 462 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 463 | MTL_ENABLE_DEBUG_INFO = NO; 464 | SDKROOT = iphoneos; 465 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 466 | VALIDATE_PRODUCT = YES; 467 | }; 468 | name = Release; 469 | }; 470 | 607FACF01AFB9204008FA782 /* Debug */ = { 471 | isa = XCBuildConfiguration; 472 | baseConfigurationReference = 54B23DFBE163454D2009241F /* Pods-MultilineTextField_Example.debug.xcconfig */; 473 | buildSettings = { 474 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 475 | DEVELOPMENT_TEAM = 5DA656H26H; 476 | INFOPLIST_FILE = MultilineTextField/Info.plist; 477 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 478 | MODULE_NAME = ExampleApp; 479 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 482 | SWIFT_VERSION = 4.0; 483 | }; 484 | name = Debug; 485 | }; 486 | 607FACF11AFB9204008FA782 /* Release */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = A93FD9CDD14020EAEAA9951A /* Pods-MultilineTextField_Example.release.xcconfig */; 489 | buildSettings = { 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | DEVELOPMENT_TEAM = 5DA656H26H; 492 | INFOPLIST_FILE = MultilineTextField/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 494 | MODULE_NAME = ExampleApp; 495 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 498 | SWIFT_VERSION = 4.0; 499 | }; 500 | name = Release; 501 | }; 502 | 607FACF31AFB9204008FA782 /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = 9D947208D0ED5620E38CE50F /* Pods-MultilineTextField_Tests.debug.xcconfig */; 505 | buildSettings = { 506 | DEVELOPMENT_TEAM = 5DA656H26H; 507 | FRAMEWORK_SEARCH_PATHS = ( 508 | "$(SDKROOT)/Developer/Library/Frameworks", 509 | "$(inherited)", 510 | ); 511 | GCC_PREPROCESSOR_DEFINITIONS = ( 512 | "DEBUG=1", 513 | "$(inherited)", 514 | ); 515 | INFOPLIST_FILE = Tests/Info.plist; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 520 | SWIFT_VERSION = 4.0; 521 | }; 522 | name = Debug; 523 | }; 524 | 607FACF41AFB9204008FA782 /* Release */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = 33433AF73DDFA01966AAD4D6 /* Pods-MultilineTextField_Tests.release.xcconfig */; 527 | buildSettings = { 528 | DEVELOPMENT_TEAM = 5DA656H26H; 529 | FRAMEWORK_SEARCH_PATHS = ( 530 | "$(SDKROOT)/Developer/Library/Frameworks", 531 | "$(inherited)", 532 | ); 533 | INFOPLIST_FILE = Tests/Info.plist; 534 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 535 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 536 | PRODUCT_NAME = "$(TARGET_NAME)"; 537 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 538 | SWIFT_VERSION = 4.0; 539 | }; 540 | name = Release; 541 | }; 542 | /* End XCBuildConfiguration section */ 543 | 544 | /* Begin XCConfigurationList section */ 545 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MultilineTextField" */ = { 546 | isa = XCConfigurationList; 547 | buildConfigurations = ( 548 | 607FACED1AFB9204008FA782 /* Debug */, 549 | 607FACEE1AFB9204008FA782 /* Release */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MultilineTextField_Example" */ = { 555 | isa = XCConfigurationList; 556 | buildConfigurations = ( 557 | 607FACF01AFB9204008FA782 /* Debug */, 558 | 607FACF11AFB9204008FA782 /* Release */, 559 | ); 560 | defaultConfigurationIsVisible = 0; 561 | defaultConfigurationName = Release; 562 | }; 563 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MultilineTextField_Tests" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 607FACF31AFB9204008FA782 /* Debug */, 567 | 607FACF41AFB9204008FA782 /* Release */, 568 | ); 569 | defaultConfigurationIsVisible = 0; 570 | defaultConfigurationName = Release; 571 | }; 572 | /* End XCConfigurationList section */ 573 | }; 574 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 575 | } 576 | -------------------------------------------------------------------------------- /Example/MultilineTextField.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/MultilineTextField.xcodeproj/xcshareddata/xcschemes/MultilineTextField-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/MultilineTextField.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/MultilineTextField/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MultilineTextField 4 | // 5 | // Created by rlaguilar on 10/11/2017. 6 | // Copyright (c) 2017 rlaguilar. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/MultilineTextField/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/MultilineTextField/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Example/MultilineTextField/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /Example/MultilineTextField/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/MultilineTextField/Images.xcassets/fire-truck.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "fire-truck.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template", 14 | "preserves-vector-representation" : true 15 | } 16 | } -------------------------------------------------------------------------------- /Example/MultilineTextField/Images.xcassets/fire-truck.imageset/fire-truck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rlaguilar/MultilineTextField/9656eb1aaf13ec355f0d2b7fe3d2b5ffe2c2b318/Example/MultilineTextField/Images.xcassets/fire-truck.imageset/fire-truck.pdf -------------------------------------------------------------------------------- /Example/MultilineTextField/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/MultilineTextField/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MultilineTextField 4 | // 5 | // Created by rlaguilar on 10/11/2017. 6 | // Copyright (c) 2017 rlaguilar. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MultilineTextField 11 | 12 | class ViewController: UIViewController { 13 | @IBOutlet weak var textField: MultilineTextField! 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | textField.leftView = UIImageView(image: #imageLiteral(resourceName: "fire-truck")) 19 | // below are properties that can be optionally customized 20 | textField.placeholder = "This is my placeholder" 21 | textField.placeholderColor = UIColor(white: 0.7, alpha: 1) 22 | textField.isPlaceholderScrollEnabled = true 23 | textField.leftViewOrigin = CGPoint(x: 8, y: 8) 24 | 25 | let tap = UITapGestureRecognizer(target: self, action: #selector(handleKeyboard(_:))) 26 | self.view.addGestureRecognizer(tap) 27 | } 28 | 29 | @objc func handleKeyboard(_ gesture: UITapGestureRecognizer) { 30 | let location = gesture.location(in: textField) 31 | 32 | if !textField.bounds.contains(location) { 33 | view.endEditing(true) 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'MultilineTextField_Example' do 4 | pod 'MultilineTextField', :path => '../' 5 | 6 | target 'MultilineTextField_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MultilineTextField (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - MultilineTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MultilineTextField: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MultilineTextField: 32a67d0f79fe2c0ece1b99bd0f56b62381e776ba 13 | 14 | PODFILE CHECKSUM: 4586e12ca3b1519c293869058ae6480d2e217967 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MultilineTextField.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MultilineTextField", 3 | "version": "1.0.0", 4 | "summary": "UITextField with multiple lines (or UITextView with placeholder)", 5 | "description": "This can be seen as a `UITextField` with multiple lines, but under the hood it is just a `UITextView` which aims to provide many of the functionalities currently available in the `UITextField` class. Currently the following functionalities are supported:\n\n+ Multiple lines\n+ Customizable left view\n+ Customizable placeholder text", 6 | "homepage": "https://github.com/rlaguilar/MultilineTextField", 7 | "screenshots": [ 8 | "https://raw.githubusercontent.com/rlaguilar/MultilineTextField/master/Example/img-multiple-lines.jpg", 9 | "https://raw.githubusercontent.com/rlaguilar/MultilineTextField/master/Example/img-placeholder.jpg" 10 | ], 11 | "license": { 12 | "type": "MIT", 13 | "file": "LICENSE" 14 | }, 15 | "authors": { 16 | "rlaguilar": "rlac1990@gmail.com" 17 | }, 18 | "source": { 19 | "git": "https://github.com/rlaguilar/MultilineTextField.git", 20 | "tag": "1.0.0" 21 | }, 22 | "platforms": { 23 | "ios": "8.0" 24 | }, 25 | "source_files": "Sources/**/*", 26 | "frameworks": "UIKit" 27 | } 28 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MultilineTextField (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - MultilineTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MultilineTextField: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MultilineTextField: 32a67d0f79fe2c0ece1b99bd0f56b62381e776ba 13 | 14 | PODFILE CHECKSUM: 4586e12ca3b1519c293869058ae6480d2e217967 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2B6FB98CFE24F65DD6FB6F12B260416B /* Pods-MultilineTextField_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2914D2E021C5A4C0A66334DF4397E0E1 /* Pods-MultilineTextField_Example-dummy.m */; }; 11 | 3B50C3FEDBC4BF7362D646257AC90EB7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 436BAA54A31999B53B3CC7115C55FE50 /* Foundation.framework */; }; 12 | 3D3F00EB717E6C14948219D9BB79DB61 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 312B988EF117AE4DE76A268D970131FE /* UIKit.framework */; }; 13 | 466FAE8478F06950CCC977081BAC4EFE /* MultilineTextField-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 32D7C991D313FEE2BABF41264598E31A /* MultilineTextField-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 6D07D8814634E121B8AD544AB521048E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 436BAA54A31999B53B3CC7115C55FE50 /* Foundation.framework */; }; 15 | 7D63A312C985FCA10D93FEE4983EECAC /* MultilineTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53D9C023DCACE24196D3C978D3A61A8 /* MultilineTextField.swift */; }; 16 | 8F4D2D5EADDC5F1FF8FECA5B3FA419D1 /* MultilineTextField-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7379C9321D577B50308344C0970CFD8D /* MultilineTextField-dummy.m */; }; 17 | 934252ECD315121D6A69C04B4D3D8C49 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 436BAA54A31999B53B3CC7115C55FE50 /* Foundation.framework */; }; 18 | B8F932F0C55D11EF9252AB0802FAA79D /* Pods-MultilineTextField_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BB89944BDB383C866C71A666C6911335 /* Pods-MultilineTextField_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | C10CA7D81BDF60959C446BD62E052B70 /* Pods-MultilineTextField_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 731B7885524C1180CCC27207E4529CC3 /* Pods-MultilineTextField_Tests-dummy.m */; }; 20 | F33D1B781636895F13BB0CDCAD1BFECD /* Pods-MultilineTextField_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E6076CCB3F9E59F5D0802F80BFC82F11 /* Pods-MultilineTextField_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 1B77819AFE35100A14176C26200D40DA /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 6E4C5518BF19B2CB8B0A5DC22C926A11; 29 | remoteInfo = MultilineTextField; 30 | }; 31 | 81CA352E71C5BCF6AB1F3AE7303568E7 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = F61041D59DFE7C8BD301D1B27DB85336; 36 | remoteInfo = "Pods-MultilineTextField_Example"; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 0D04501C97E68E376442A07241A66134 /* MultilineTextField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = MultilineTextField.framework; path = MultilineTextField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 21A92C8B7DF0690FACF9D6257496CC38 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 43 | 23B1570C14CC28A414C2A9F928592EE6 /* Pods-MultilineTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MultilineTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 44 | 2914D2E021C5A4C0A66334DF4397E0E1 /* Pods-MultilineTextField_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MultilineTextField_Example-dummy.m"; sourceTree = ""; }; 45 | 312B988EF117AE4DE76A268D970131FE /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 46 | 32D7C991D313FEE2BABF41264598E31A /* MultilineTextField-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MultilineTextField-umbrella.h"; sourceTree = ""; }; 47 | 3476AFACFF7B8E5B8E82A71F75F40B35 /* Pods-MultilineTextField_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MultilineTextField_Example-frameworks.sh"; sourceTree = ""; }; 48 | 3DD27ED57BC103D20E31AB109ABC48F7 /* MultilineTextField.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = MultilineTextField.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | 436BAA54A31999B53B3CC7115C55FE50 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 5819EF1E922113494A555F63A3AEFB05 /* Pods-MultilineTextField_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MultilineTextField_Example-acknowledgements.markdown"; sourceTree = ""; }; 51 | 5A4634975BBB1E5417DFF8127A76CB4B /* MultilineTextField.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = MultilineTextField.modulemap; sourceTree = ""; }; 52 | 61819E0B0C8B608C9F5B980E5844DA49 /* Pods-MultilineTextField_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MultilineTextField_Example-Info.plist"; sourceTree = ""; }; 53 | 7000B44B5B91D92DF575BC983F744659 /* Pods_MultilineTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_MultilineTextField_Example.framework; path = "Pods-MultilineTextField_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 708BE661D4A77C98A8F3195C882675BF /* Pods-MultilineTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MultilineTextField_Example.debug.xcconfig"; sourceTree = ""; }; 55 | 731B7885524C1180CCC27207E4529CC3 /* Pods-MultilineTextField_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MultilineTextField_Tests-dummy.m"; sourceTree = ""; }; 56 | 7379C9321D577B50308344C0970CFD8D /* MultilineTextField-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MultilineTextField-dummy.m"; sourceTree = ""; }; 57 | 75BFD416ABA15FEBE63A798853CC3858 /* MultilineTextField-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "MultilineTextField-Info.plist"; sourceTree = ""; }; 58 | 785376B2B7A13181BC42F5C8BEA49A03 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 59 | 8AD3938806AF78FFBA1945AB3E018E07 /* Pods-MultilineTextField_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MultilineTextField_Example.modulemap"; sourceTree = ""; }; 60 | 901B6B8D4DD00E17CED3A0F6D461D036 /* Pods-MultilineTextField_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MultilineTextField_Tests-acknowledgements.markdown"; sourceTree = ""; }; 61 | 937090F74B9EDB4A667796BC9ED2BBFF /* Pods-MultilineTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MultilineTextField_Example.release.xcconfig"; sourceTree = ""; }; 62 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 63 | 9FCB454A9E5B87C77BAB56A25E736A6F /* Pods-MultilineTextField_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MultilineTextField_Tests-Info.plist"; sourceTree = ""; }; 64 | A22858A9888D7564C69054E05A9EF1B2 /* Pods-MultilineTextField_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MultilineTextField_Tests.modulemap"; sourceTree = ""; }; 65 | B999F83443F26982DCAECE7B39A751D9 /* Pods-MultilineTextField_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MultilineTextField_Tests-acknowledgements.plist"; sourceTree = ""; }; 66 | BB89944BDB383C866C71A666C6911335 /* Pods-MultilineTextField_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MultilineTextField_Tests-umbrella.h"; sourceTree = ""; }; 67 | C7CCC09A1F2370F695B59E3D4370DACE /* Pods-MultilineTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MultilineTextField_Tests.release.xcconfig"; sourceTree = ""; }; 68 | C96E04D21F7BE26634F44285D36F100B /* Pods-MultilineTextField_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MultilineTextField_Example-acknowledgements.plist"; sourceTree = ""; }; 69 | C9C5179FDC7C46A7AA539906F4ED966E /* MultilineTextField-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MultilineTextField-prefix.pch"; sourceTree = ""; }; 70 | DB481A2A6EA22E5E3E8950DE02B4126A /* Pods_MultilineTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_MultilineTextField_Tests.framework; path = "Pods-MultilineTextField_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | E6076CCB3F9E59F5D0802F80BFC82F11 /* Pods-MultilineTextField_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MultilineTextField_Example-umbrella.h"; sourceTree = ""; }; 72 | F53D9C023DCACE24196D3C978D3A61A8 /* MultilineTextField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MultilineTextField.swift; path = Sources/MultilineTextField/MultilineTextField.swift; sourceTree = ""; }; 73 | FC2C43481E090C06734E8C447F8DA21A /* MultilineTextField.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MultilineTextField.xcconfig; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | 00823A6C0ABDC8AADC76F3D6E18C219C /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 6D07D8814634E121B8AD544AB521048E /* Foundation.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | BBCB4F0C98743160FF7171876CFFB3E8 /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | 3B50C3FEDBC4BF7362D646257AC90EB7 /* Foundation.framework in Frameworks */, 90 | 3D3F00EB717E6C14948219D9BB79DB61 /* UIKit.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | BDDE1BD6F885E8A6AA93C96B369AAFDE /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | 934252ECD315121D6A69C04B4D3D8C49 /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | E2983683FD097A93297E2F5D4E382B36 /* iOS */, 109 | ); 110 | name = Frameworks; 111 | sourceTree = ""; 112 | }; 113 | 4C3E1C3844B71B7BCA84759CA1C5CD63 /* Pods-MultilineTextField_Tests */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | A22858A9888D7564C69054E05A9EF1B2 /* Pods-MultilineTextField_Tests.modulemap */, 117 | 901B6B8D4DD00E17CED3A0F6D461D036 /* Pods-MultilineTextField_Tests-acknowledgements.markdown */, 118 | B999F83443F26982DCAECE7B39A751D9 /* Pods-MultilineTextField_Tests-acknowledgements.plist */, 119 | 731B7885524C1180CCC27207E4529CC3 /* Pods-MultilineTextField_Tests-dummy.m */, 120 | 9FCB454A9E5B87C77BAB56A25E736A6F /* Pods-MultilineTextField_Tests-Info.plist */, 121 | BB89944BDB383C866C71A666C6911335 /* Pods-MultilineTextField_Tests-umbrella.h */, 122 | 23B1570C14CC28A414C2A9F928592EE6 /* Pods-MultilineTextField_Tests.debug.xcconfig */, 123 | C7CCC09A1F2370F695B59E3D4370DACE /* Pods-MultilineTextField_Tests.release.xcconfig */, 124 | ); 125 | name = "Pods-MultilineTextField_Tests"; 126 | path = "Target Support Files/Pods-MultilineTextField_Tests"; 127 | sourceTree = ""; 128 | }; 129 | 6C164637D9CFCD8A329CDD46CF930726 /* Development Pods */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | E81CF60ED77226F07DB6373B32CD7851 /* MultilineTextField */, 133 | ); 134 | name = "Development Pods"; 135 | sourceTree = ""; 136 | }; 137 | 89493595C191C2CD7E96347D9CC15CAE /* Targets Support Files */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 966E2610276F88AC270F2CEB2777E284 /* Pods-MultilineTextField_Example */, 141 | 4C3E1C3844B71B7BCA84759CA1C5CD63 /* Pods-MultilineTextField_Tests */, 142 | ); 143 | name = "Targets Support Files"; 144 | sourceTree = ""; 145 | }; 146 | 966E2610276F88AC270F2CEB2777E284 /* Pods-MultilineTextField_Example */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 8AD3938806AF78FFBA1945AB3E018E07 /* Pods-MultilineTextField_Example.modulemap */, 150 | 5819EF1E922113494A555F63A3AEFB05 /* Pods-MultilineTextField_Example-acknowledgements.markdown */, 151 | C96E04D21F7BE26634F44285D36F100B /* Pods-MultilineTextField_Example-acknowledgements.plist */, 152 | 2914D2E021C5A4C0A66334DF4397E0E1 /* Pods-MultilineTextField_Example-dummy.m */, 153 | 3476AFACFF7B8E5B8E82A71F75F40B35 /* Pods-MultilineTextField_Example-frameworks.sh */, 154 | 61819E0B0C8B608C9F5B980E5844DA49 /* Pods-MultilineTextField_Example-Info.plist */, 155 | E6076CCB3F9E59F5D0802F80BFC82F11 /* Pods-MultilineTextField_Example-umbrella.h */, 156 | 708BE661D4A77C98A8F3195C882675BF /* Pods-MultilineTextField_Example.debug.xcconfig */, 157 | 937090F74B9EDB4A667796BC9ED2BBFF /* Pods-MultilineTextField_Example.release.xcconfig */, 158 | ); 159 | name = "Pods-MultilineTextField_Example"; 160 | path = "Target Support Files/Pods-MultilineTextField_Example"; 161 | sourceTree = ""; 162 | }; 163 | A20F76FE70AE6A5A18450FD754729A59 /* Support Files */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | 5A4634975BBB1E5417DFF8127A76CB4B /* MultilineTextField.modulemap */, 167 | FC2C43481E090C06734E8C447F8DA21A /* MultilineTextField.xcconfig */, 168 | 7379C9321D577B50308344C0970CFD8D /* MultilineTextField-dummy.m */, 169 | 75BFD416ABA15FEBE63A798853CC3858 /* MultilineTextField-Info.plist */, 170 | C9C5179FDC7C46A7AA539906F4ED966E /* MultilineTextField-prefix.pch */, 171 | 32D7C991D313FEE2BABF41264598E31A /* MultilineTextField-umbrella.h */, 172 | ); 173 | name = "Support Files"; 174 | path = "Example/Pods/Target Support Files/MultilineTextField"; 175 | sourceTree = ""; 176 | }; 177 | CF1408CF629C7361332E53B88F7BD30C = { 178 | isa = PBXGroup; 179 | children = ( 180 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 181 | 6C164637D9CFCD8A329CDD46CF930726 /* Development Pods */, 182 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, 183 | FE4D612CD0F94DCF6025FD2DA586B732 /* Products */, 184 | 89493595C191C2CD7E96347D9CC15CAE /* Targets Support Files */, 185 | ); 186 | sourceTree = ""; 187 | }; 188 | D670CFB1AA9051C875F6843C4DC0527C /* Pod */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 21A92C8B7DF0690FACF9D6257496CC38 /* LICENSE */, 192 | 3DD27ED57BC103D20E31AB109ABC48F7 /* MultilineTextField.podspec */, 193 | 785376B2B7A13181BC42F5C8BEA49A03 /* README.md */, 194 | ); 195 | name = Pod; 196 | sourceTree = ""; 197 | }; 198 | E2983683FD097A93297E2F5D4E382B36 /* iOS */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 436BAA54A31999B53B3CC7115C55FE50 /* Foundation.framework */, 202 | 312B988EF117AE4DE76A268D970131FE /* UIKit.framework */, 203 | ); 204 | name = iOS; 205 | sourceTree = ""; 206 | }; 207 | E81CF60ED77226F07DB6373B32CD7851 /* MultilineTextField */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | F53D9C023DCACE24196D3C978D3A61A8 /* MultilineTextField.swift */, 211 | D670CFB1AA9051C875F6843C4DC0527C /* Pod */, 212 | A20F76FE70AE6A5A18450FD754729A59 /* Support Files */, 213 | ); 214 | name = MultilineTextField; 215 | path = ../..; 216 | sourceTree = ""; 217 | }; 218 | FE4D612CD0F94DCF6025FD2DA586B732 /* Products */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 0D04501C97E68E376442A07241A66134 /* MultilineTextField.framework */, 222 | 7000B44B5B91D92DF575BC983F744659 /* Pods_MultilineTextField_Example.framework */, 223 | DB481A2A6EA22E5E3E8950DE02B4126A /* Pods_MultilineTextField_Tests.framework */, 224 | ); 225 | name = Products; 226 | sourceTree = ""; 227 | }; 228 | /* End PBXGroup section */ 229 | 230 | /* Begin PBXHeadersBuildPhase section */ 231 | 49F1D1FF790F1E0E60A0D35F2CF23D60 /* Headers */ = { 232 | isa = PBXHeadersBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | B8F932F0C55D11EF9252AB0802FAA79D /* Pods-MultilineTextField_Tests-umbrella.h in Headers */, 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | 5A798157113C20522AC67F5547B49B8E /* Headers */ = { 240 | isa = PBXHeadersBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | F33D1B781636895F13BB0CDCAD1BFECD /* Pods-MultilineTextField_Example-umbrella.h in Headers */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | AD1A0D1E436CD2EAD1C23E7277EEF394 /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 466FAE8478F06950CCC977081BAC4EFE /* MultilineTextField-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXHeadersBuildPhase section */ 256 | 257 | /* Begin PBXNativeTarget section */ 258 | 6E4C5518BF19B2CB8B0A5DC22C926A11 /* MultilineTextField */ = { 259 | isa = PBXNativeTarget; 260 | buildConfigurationList = 9CEA1EA0A622975A57D8E40D0E50C2FF /* Build configuration list for PBXNativeTarget "MultilineTextField" */; 261 | buildPhases = ( 262 | AD1A0D1E436CD2EAD1C23E7277EEF394 /* Headers */, 263 | D496EA008C01B3EB10BE772D71DBFABE /* Sources */, 264 | BBCB4F0C98743160FF7171876CFFB3E8 /* Frameworks */, 265 | FA4A1CADAD412D1DC5A2B1148E1AB755 /* Resources */, 266 | ); 267 | buildRules = ( 268 | ); 269 | dependencies = ( 270 | ); 271 | name = MultilineTextField; 272 | productName = MultilineTextField; 273 | productReference = 0D04501C97E68E376442A07241A66134 /* MultilineTextField.framework */; 274 | productType = "com.apple.product-type.framework"; 275 | }; 276 | 8ED707F8886E2275D1A7E6363B3CDFD5 /* Pods-MultilineTextField_Tests */ = { 277 | isa = PBXNativeTarget; 278 | buildConfigurationList = A7F5E1858F7FA932B485FCC46D8735FA /* Build configuration list for PBXNativeTarget "Pods-MultilineTextField_Tests" */; 279 | buildPhases = ( 280 | 49F1D1FF790F1E0E60A0D35F2CF23D60 /* Headers */, 281 | 7DA6E03DCE7EECFE6089EC2F47BBF21C /* Sources */, 282 | BDDE1BD6F885E8A6AA93C96B369AAFDE /* Frameworks */, 283 | 466790ED45DC05BCE0393D19D5E14D55 /* Resources */, 284 | ); 285 | buildRules = ( 286 | ); 287 | dependencies = ( 288 | 4264829CB9AB547993FA5E91C93199FA /* PBXTargetDependency */, 289 | ); 290 | name = "Pods-MultilineTextField_Tests"; 291 | productName = "Pods-MultilineTextField_Tests"; 292 | productReference = DB481A2A6EA22E5E3E8950DE02B4126A /* Pods_MultilineTextField_Tests.framework */; 293 | productType = "com.apple.product-type.framework"; 294 | }; 295 | F61041D59DFE7C8BD301D1B27DB85336 /* Pods-MultilineTextField_Example */ = { 296 | isa = PBXNativeTarget; 297 | buildConfigurationList = 4853626F4349DA81B385A77C8AF420B8 /* Build configuration list for PBXNativeTarget "Pods-MultilineTextField_Example" */; 298 | buildPhases = ( 299 | 5A798157113C20522AC67F5547B49B8E /* Headers */, 300 | 715509001A399DD1271CAE83362E56FC /* Sources */, 301 | 00823A6C0ABDC8AADC76F3D6E18C219C /* Frameworks */, 302 | 56CDE5CE2DA1566CE4820EEE263B7567 /* Resources */, 303 | ); 304 | buildRules = ( 305 | ); 306 | dependencies = ( 307 | 831EFDB27FF1B7AAD8FE4348C7CCB8C8 /* PBXTargetDependency */, 308 | ); 309 | name = "Pods-MultilineTextField_Example"; 310 | productName = "Pods-MultilineTextField_Example"; 311 | productReference = 7000B44B5B91D92DF575BC983F744659 /* Pods_MultilineTextField_Example.framework */; 312 | productType = "com.apple.product-type.framework"; 313 | }; 314 | /* End PBXNativeTarget section */ 315 | 316 | /* Begin PBXProject section */ 317 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 318 | isa = PBXProject; 319 | attributes = { 320 | LastSwiftUpdateCheck = 1100; 321 | LastUpgradeCheck = 1100; 322 | }; 323 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 324 | compatibilityVersion = "Xcode 3.2"; 325 | developmentRegion = en; 326 | hasScannedForEncodings = 0; 327 | knownRegions = ( 328 | en, 329 | Base, 330 | ); 331 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 332 | productRefGroup = FE4D612CD0F94DCF6025FD2DA586B732 /* Products */; 333 | projectDirPath = ""; 334 | projectRoot = ""; 335 | targets = ( 336 | 6E4C5518BF19B2CB8B0A5DC22C926A11 /* MultilineTextField */, 337 | F61041D59DFE7C8BD301D1B27DB85336 /* Pods-MultilineTextField_Example */, 338 | 8ED707F8886E2275D1A7E6363B3CDFD5 /* Pods-MultilineTextField_Tests */, 339 | ); 340 | }; 341 | /* End PBXProject section */ 342 | 343 | /* Begin PBXResourcesBuildPhase section */ 344 | 466790ED45DC05BCE0393D19D5E14D55 /* Resources */ = { 345 | isa = PBXResourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | }; 351 | 56CDE5CE2DA1566CE4820EEE263B7567 /* Resources */ = { 352 | isa = PBXResourcesBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | FA4A1CADAD412D1DC5A2B1148E1AB755 /* Resources */ = { 359 | isa = PBXResourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | }; 365 | /* End PBXResourcesBuildPhase section */ 366 | 367 | /* Begin PBXSourcesBuildPhase section */ 368 | 715509001A399DD1271CAE83362E56FC /* Sources */ = { 369 | isa = PBXSourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | 2B6FB98CFE24F65DD6FB6F12B260416B /* Pods-MultilineTextField_Example-dummy.m in Sources */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | 7DA6E03DCE7EECFE6089EC2F47BBF21C /* Sources */ = { 377 | isa = PBXSourcesBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | C10CA7D81BDF60959C446BD62E052B70 /* Pods-MultilineTextField_Tests-dummy.m in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | D496EA008C01B3EB10BE772D71DBFABE /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | 8F4D2D5EADDC5F1FF8FECA5B3FA419D1 /* MultilineTextField-dummy.m in Sources */, 389 | 7D63A312C985FCA10D93FEE4983EECAC /* MultilineTextField.swift in Sources */, 390 | ); 391 | runOnlyForDeploymentPostprocessing = 0; 392 | }; 393 | /* End PBXSourcesBuildPhase section */ 394 | 395 | /* Begin PBXTargetDependency section */ 396 | 4264829CB9AB547993FA5E91C93199FA /* PBXTargetDependency */ = { 397 | isa = PBXTargetDependency; 398 | name = "Pods-MultilineTextField_Example"; 399 | target = F61041D59DFE7C8BD301D1B27DB85336 /* Pods-MultilineTextField_Example */; 400 | targetProxy = 81CA352E71C5BCF6AB1F3AE7303568E7 /* PBXContainerItemProxy */; 401 | }; 402 | 831EFDB27FF1B7AAD8FE4348C7CCB8C8 /* PBXTargetDependency */ = { 403 | isa = PBXTargetDependency; 404 | name = MultilineTextField; 405 | target = 6E4C5518BF19B2CB8B0A5DC22C926A11 /* MultilineTextField */; 406 | targetProxy = 1B77819AFE35100A14176C26200D40DA /* PBXContainerItemProxy */; 407 | }; 408 | /* End PBXTargetDependency section */ 409 | 410 | /* Begin XCBuildConfiguration section */ 411 | 1395DF3ACB259ECE1B20ACEE271D3560 /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = FC2C43481E090C06734E8C447F8DA21A /* MultilineTextField.xcconfig */; 414 | buildSettings = { 415 | CODE_SIGN_IDENTITY = ""; 416 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 418 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 419 | CURRENT_PROJECT_VERSION = 1; 420 | DEFINES_MODULE = YES; 421 | DYLIB_COMPATIBILITY_VERSION = 1; 422 | DYLIB_CURRENT_VERSION = 1; 423 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 424 | GCC_PREFIX_HEADER = "Target Support Files/MultilineTextField/MultilineTextField-prefix.pch"; 425 | INFOPLIST_FILE = "Target Support Files/MultilineTextField/MultilineTextField-Info.plist"; 426 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 427 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 428 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 429 | MODULEMAP_FILE = "Target Support Files/MultilineTextField/MultilineTextField.modulemap"; 430 | PRODUCT_MODULE_NAME = MultilineTextField; 431 | PRODUCT_NAME = MultilineTextField; 432 | SDKROOT = iphoneos; 433 | SKIP_INSTALL = YES; 434 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 435 | SWIFT_VERSION = 4.0; 436 | TARGETED_DEVICE_FAMILY = "1,2"; 437 | VALIDATE_PRODUCT = YES; 438 | VERSIONING_SYSTEM = "apple-generic"; 439 | VERSION_INFO_PREFIX = ""; 440 | }; 441 | name = Release; 442 | }; 443 | 3540911E563E7D91E463DA5A0D8DC1DD /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 23B1570C14CC28A414C2A9F928592EE6 /* Pods-MultilineTextField_Tests.debug.xcconfig */; 446 | buildSettings = { 447 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 448 | CODE_SIGN_IDENTITY = ""; 449 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 450 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 451 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 452 | CURRENT_PROJECT_VERSION = 1; 453 | DEFINES_MODULE = YES; 454 | DYLIB_COMPATIBILITY_VERSION = 1; 455 | DYLIB_CURRENT_VERSION = 1; 456 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 457 | INFOPLIST_FILE = "Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-Info.plist"; 458 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 459 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 460 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 461 | MACH_O_TYPE = staticlib; 462 | MODULEMAP_FILE = "Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.modulemap"; 463 | OTHER_LDFLAGS = ""; 464 | OTHER_LIBTOOLFLAGS = ""; 465 | PODS_ROOT = "$(SRCROOT)"; 466 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 467 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 468 | SDKROOT = iphoneos; 469 | SKIP_INSTALL = YES; 470 | TARGETED_DEVICE_FAMILY = "1,2"; 471 | VERSIONING_SYSTEM = "apple-generic"; 472 | VERSION_INFO_PREFIX = ""; 473 | }; 474 | name = Debug; 475 | }; 476 | 5A125E5935FA380DBD0FDB4C6B71D815 /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = FC2C43481E090C06734E8C447F8DA21A /* MultilineTextField.xcconfig */; 479 | buildSettings = { 480 | CODE_SIGN_IDENTITY = ""; 481 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 483 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 484 | CURRENT_PROJECT_VERSION = 1; 485 | DEFINES_MODULE = YES; 486 | DYLIB_COMPATIBILITY_VERSION = 1; 487 | DYLIB_CURRENT_VERSION = 1; 488 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 489 | GCC_PREFIX_HEADER = "Target Support Files/MultilineTextField/MultilineTextField-prefix.pch"; 490 | INFOPLIST_FILE = "Target Support Files/MultilineTextField/MultilineTextField-Info.plist"; 491 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 492 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 494 | MODULEMAP_FILE = "Target Support Files/MultilineTextField/MultilineTextField.modulemap"; 495 | PRODUCT_MODULE_NAME = MultilineTextField; 496 | PRODUCT_NAME = MultilineTextField; 497 | SDKROOT = iphoneos; 498 | SKIP_INSTALL = YES; 499 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 500 | SWIFT_VERSION = 4.0; 501 | TARGETED_DEVICE_FAMILY = "1,2"; 502 | VERSIONING_SYSTEM = "apple-generic"; 503 | VERSION_INFO_PREFIX = ""; 504 | }; 505 | name = Debug; 506 | }; 507 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 508 | isa = XCBuildConfiguration; 509 | buildSettings = { 510 | ALWAYS_SEARCH_USER_PATHS = NO; 511 | CLANG_ANALYZER_NONNULL = YES; 512 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 513 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 514 | CLANG_CXX_LIBRARY = "libc++"; 515 | CLANG_ENABLE_MODULES = YES; 516 | CLANG_ENABLE_OBJC_ARC = YES; 517 | CLANG_ENABLE_OBJC_WEAK = YES; 518 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 519 | CLANG_WARN_BOOL_CONVERSION = YES; 520 | CLANG_WARN_COMMA = YES; 521 | CLANG_WARN_CONSTANT_CONVERSION = YES; 522 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 523 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 524 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 525 | CLANG_WARN_EMPTY_BODY = YES; 526 | CLANG_WARN_ENUM_CONVERSION = YES; 527 | CLANG_WARN_INFINITE_RECURSION = YES; 528 | CLANG_WARN_INT_CONVERSION = YES; 529 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 530 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 531 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 533 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 534 | CLANG_WARN_STRICT_PROTOTYPES = YES; 535 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 536 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 537 | CLANG_WARN_UNREACHABLE_CODE = YES; 538 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 539 | COPY_PHASE_STRIP = NO; 540 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 541 | ENABLE_NS_ASSERTIONS = NO; 542 | ENABLE_STRICT_OBJC_MSGSEND = YES; 543 | GCC_C_LANGUAGE_STANDARD = gnu11; 544 | GCC_NO_COMMON_BLOCKS = YES; 545 | GCC_PREPROCESSOR_DEFINITIONS = ( 546 | "POD_CONFIGURATION_RELEASE=1", 547 | "$(inherited)", 548 | ); 549 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 550 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 551 | GCC_WARN_UNDECLARED_SELECTOR = YES; 552 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 553 | GCC_WARN_UNUSED_FUNCTION = YES; 554 | GCC_WARN_UNUSED_VARIABLE = YES; 555 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 556 | MTL_ENABLE_DEBUG_INFO = NO; 557 | MTL_FAST_MATH = YES; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | STRIP_INSTALLED_PRODUCT = NO; 560 | SWIFT_COMPILATION_MODE = wholemodule; 561 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 562 | SWIFT_VERSION = 5.0; 563 | SYMROOT = "${SRCROOT}/../build"; 564 | }; 565 | name = Release; 566 | }; 567 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 568 | isa = XCBuildConfiguration; 569 | buildSettings = { 570 | ALWAYS_SEARCH_USER_PATHS = NO; 571 | CLANG_ANALYZER_NONNULL = YES; 572 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 573 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 574 | CLANG_CXX_LIBRARY = "libc++"; 575 | CLANG_ENABLE_MODULES = YES; 576 | CLANG_ENABLE_OBJC_ARC = YES; 577 | CLANG_ENABLE_OBJC_WEAK = YES; 578 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 579 | CLANG_WARN_BOOL_CONVERSION = YES; 580 | CLANG_WARN_COMMA = YES; 581 | CLANG_WARN_CONSTANT_CONVERSION = YES; 582 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 583 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 584 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 585 | CLANG_WARN_EMPTY_BODY = YES; 586 | CLANG_WARN_ENUM_CONVERSION = YES; 587 | CLANG_WARN_INFINITE_RECURSION = YES; 588 | CLANG_WARN_INT_CONVERSION = YES; 589 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 590 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 591 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 592 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 593 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 594 | CLANG_WARN_STRICT_PROTOTYPES = YES; 595 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 596 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 597 | CLANG_WARN_UNREACHABLE_CODE = YES; 598 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 599 | COPY_PHASE_STRIP = NO; 600 | DEBUG_INFORMATION_FORMAT = dwarf; 601 | ENABLE_STRICT_OBJC_MSGSEND = YES; 602 | ENABLE_TESTABILITY = YES; 603 | GCC_C_LANGUAGE_STANDARD = gnu11; 604 | GCC_DYNAMIC_NO_PIC = NO; 605 | GCC_NO_COMMON_BLOCKS = YES; 606 | GCC_OPTIMIZATION_LEVEL = 0; 607 | GCC_PREPROCESSOR_DEFINITIONS = ( 608 | "POD_CONFIGURATION_DEBUG=1", 609 | "DEBUG=1", 610 | "$(inherited)", 611 | ); 612 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 613 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 614 | GCC_WARN_UNDECLARED_SELECTOR = YES; 615 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 616 | GCC_WARN_UNUSED_FUNCTION = YES; 617 | GCC_WARN_UNUSED_VARIABLE = YES; 618 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 619 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 620 | MTL_FAST_MATH = YES; 621 | ONLY_ACTIVE_ARCH = YES; 622 | PRODUCT_NAME = "$(TARGET_NAME)"; 623 | STRIP_INSTALLED_PRODUCT = NO; 624 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 625 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 626 | SWIFT_VERSION = 5.0; 627 | SYMROOT = "${SRCROOT}/../build"; 628 | }; 629 | name = Debug; 630 | }; 631 | DAF3E75E7CBF024C4164F8B0D483C515 /* Debug */ = { 632 | isa = XCBuildConfiguration; 633 | baseConfigurationReference = 708BE661D4A77C98A8F3195C882675BF /* Pods-MultilineTextField_Example.debug.xcconfig */; 634 | buildSettings = { 635 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 636 | CODE_SIGN_IDENTITY = ""; 637 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 638 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 639 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 640 | CURRENT_PROJECT_VERSION = 1; 641 | DEFINES_MODULE = YES; 642 | DYLIB_COMPATIBILITY_VERSION = 1; 643 | DYLIB_CURRENT_VERSION = 1; 644 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 645 | INFOPLIST_FILE = "Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-Info.plist"; 646 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 647 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 648 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 649 | MACH_O_TYPE = staticlib; 650 | MODULEMAP_FILE = "Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.modulemap"; 651 | OTHER_LDFLAGS = ""; 652 | OTHER_LIBTOOLFLAGS = ""; 653 | PODS_ROOT = "$(SRCROOT)"; 654 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 655 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 656 | SDKROOT = iphoneos; 657 | SKIP_INSTALL = YES; 658 | TARGETED_DEVICE_FAMILY = "1,2"; 659 | VERSIONING_SYSTEM = "apple-generic"; 660 | VERSION_INFO_PREFIX = ""; 661 | }; 662 | name = Debug; 663 | }; 664 | F357BE915510130A9765E0FC7024B0E1 /* Release */ = { 665 | isa = XCBuildConfiguration; 666 | baseConfigurationReference = 937090F74B9EDB4A667796BC9ED2BBFF /* Pods-MultilineTextField_Example.release.xcconfig */; 667 | buildSettings = { 668 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 669 | CODE_SIGN_IDENTITY = ""; 670 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 671 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 672 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 673 | CURRENT_PROJECT_VERSION = 1; 674 | DEFINES_MODULE = YES; 675 | DYLIB_COMPATIBILITY_VERSION = 1; 676 | DYLIB_CURRENT_VERSION = 1; 677 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 678 | INFOPLIST_FILE = "Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-Info.plist"; 679 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 680 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 681 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 682 | MACH_O_TYPE = staticlib; 683 | MODULEMAP_FILE = "Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.modulemap"; 684 | OTHER_LDFLAGS = ""; 685 | OTHER_LIBTOOLFLAGS = ""; 686 | PODS_ROOT = "$(SRCROOT)"; 687 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 688 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 689 | SDKROOT = iphoneos; 690 | SKIP_INSTALL = YES; 691 | TARGETED_DEVICE_FAMILY = "1,2"; 692 | VALIDATE_PRODUCT = YES; 693 | VERSIONING_SYSTEM = "apple-generic"; 694 | VERSION_INFO_PREFIX = ""; 695 | }; 696 | name = Release; 697 | }; 698 | FBC0F5FCC12BBAC5874B0FC8E5A278B2 /* Release */ = { 699 | isa = XCBuildConfiguration; 700 | baseConfigurationReference = C7CCC09A1F2370F695B59E3D4370DACE /* Pods-MultilineTextField_Tests.release.xcconfig */; 701 | buildSettings = { 702 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 703 | CODE_SIGN_IDENTITY = ""; 704 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 705 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 706 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 707 | CURRENT_PROJECT_VERSION = 1; 708 | DEFINES_MODULE = YES; 709 | DYLIB_COMPATIBILITY_VERSION = 1; 710 | DYLIB_CURRENT_VERSION = 1; 711 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 712 | INFOPLIST_FILE = "Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-Info.plist"; 713 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 714 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 715 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 716 | MACH_O_TYPE = staticlib; 717 | MODULEMAP_FILE = "Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.modulemap"; 718 | OTHER_LDFLAGS = ""; 719 | OTHER_LIBTOOLFLAGS = ""; 720 | PODS_ROOT = "$(SRCROOT)"; 721 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 722 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 723 | SDKROOT = iphoneos; 724 | SKIP_INSTALL = YES; 725 | TARGETED_DEVICE_FAMILY = "1,2"; 726 | VALIDATE_PRODUCT = YES; 727 | VERSIONING_SYSTEM = "apple-generic"; 728 | VERSION_INFO_PREFIX = ""; 729 | }; 730 | name = Release; 731 | }; 732 | /* End XCBuildConfiguration section */ 733 | 734 | /* Begin XCConfigurationList section */ 735 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 736 | isa = XCConfigurationList; 737 | buildConfigurations = ( 738 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 739 | B0087CB4594321EF41619F3181FE120E /* Release */, 740 | ); 741 | defaultConfigurationIsVisible = 0; 742 | defaultConfigurationName = Release; 743 | }; 744 | 4853626F4349DA81B385A77C8AF420B8 /* Build configuration list for PBXNativeTarget "Pods-MultilineTextField_Example" */ = { 745 | isa = XCConfigurationList; 746 | buildConfigurations = ( 747 | DAF3E75E7CBF024C4164F8B0D483C515 /* Debug */, 748 | F357BE915510130A9765E0FC7024B0E1 /* Release */, 749 | ); 750 | defaultConfigurationIsVisible = 0; 751 | defaultConfigurationName = Release; 752 | }; 753 | 9CEA1EA0A622975A57D8E40D0E50C2FF /* Build configuration list for PBXNativeTarget "MultilineTextField" */ = { 754 | isa = XCConfigurationList; 755 | buildConfigurations = ( 756 | 5A125E5935FA380DBD0FDB4C6B71D815 /* Debug */, 757 | 1395DF3ACB259ECE1B20ACEE271D3560 /* Release */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = Release; 761 | }; 762 | A7F5E1858F7FA932B485FCC46D8735FA /* Build configuration list for PBXNativeTarget "Pods-MultilineTextField_Tests" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | 3540911E563E7D91E463DA5A0D8DC1DD /* Debug */, 766 | FBC0F5FCC12BBAC5874B0FC8E5A278B2 /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | /* End XCConfigurationList section */ 772 | }; 773 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 774 | } 775 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/MultilineTextField-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MultilineTextField : NSObject 3 | @end 4 | @implementation PodsDummy_MultilineTextField 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/MultilineTextField-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/MultilineTextField-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double MultilineTextFieldVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char MultilineTextFieldVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/MultilineTextField.modulemap: -------------------------------------------------------------------------------- 1 | framework module MultilineTextField { 2 | umbrella header "MultilineTextField-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MultilineTextField/MultilineTextField.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MultilineTextField 5 | 6 | Copyright (c) 2017 rlaguilar 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 rlaguilar <rlac1990@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | MultilineTextField 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MultilineTextField_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MultilineTextField_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/MultilineTextField/MultilineTextField.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/MultilineTextField/MultilineTextField.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MultilineTextField_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MultilineTextField_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField/MultilineTextField.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "MultilineTextField" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MultilineTextField_Example { 2 | umbrella header "Pods-MultilineTextField_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Example/Pods-MultilineTextField_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField/MultilineTextField.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "MultilineTextField" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MultilineTextField_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MultilineTextField_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MultilineTextField_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MultilineTextField_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField/MultilineTextField.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "MultilineTextField" -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MultilineTextField_Tests { 2 | umbrella header "Pods-MultilineTextField_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MultilineTextField_Tests/Pods-MultilineTextField_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MultilineTextField/MultilineTextField.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "MultilineTextField" -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import MultilineTextField 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Example/img-multiple-lines.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rlaguilar/MultilineTextField/9656eb1aaf13ec355f0d2b7fe3d2b5ffe2c2b318/Example/img-multiple-lines.jpg -------------------------------------------------------------------------------- /Example/img-placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rlaguilar/MultilineTextField/9656eb1aaf13ec355f0d2b7fe3d2b5ffe2c2b318/Example/img-placeholder.jpg -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 rlaguilar 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /MultilineTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint MultilineTextField.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'MultilineTextField' 11 | s.version = '1.0.0' 12 | s.summary = 'UITextField with multiple lines (or UITextView with placeholder)' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | This can be seen as a `UITextField` with multiple lines, but under the hood it is just a `UITextView` which aims to provide many of the functionalities currently available in the `UITextField` class. Currently the following functionalities are supported: 22 | 23 | + Multiple lines 24 | + Customizable left view 25 | + Customizable placeholder text 26 | DESC 27 | 28 | s.homepage = 'https://github.com/rlaguilar/MultilineTextField' 29 | s.screenshots = 'https://raw.githubusercontent.com/rlaguilar/MultilineTextField/master/Example/img-multiple-lines.jpg', 'https://raw.githubusercontent.com/rlaguilar/MultilineTextField/master/Example/img-placeholder.jpg' 30 | s.license = { :type => 'MIT', :file => 'LICENSE' } 31 | s.author = { 'rlaguilar' => 'rlac1990@gmail.com' } 32 | s.source = { :git => 'https://github.com/rlaguilar/MultilineTextField.git', :tag => s.version.to_s } 33 | # s.social_media_url = 'https://twitter.com/rlaguilar_' 34 | 35 | s.ios.deployment_target = '8.0' 36 | 37 | s.source_files = 'Sources/**/*' 38 | 39 | # s.resource_bundles = { 40 | # 'MultilineTextField' => ['MultilineTextField/Assets/*.png'] 41 | # } 42 | 43 | s.swift_versions = ['4.0', '5.0'] 44 | # s.public_header_files = 'Pod/Classes/**/*.h' 45 | s.frameworks = 'UIKit' 46 | # s.dependency 'AFNetworking', '~> 2.3' 47 | end 48 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.1 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "MultilineTextField", 8 | platforms: [ 9 | .iOS(.v9), 10 | ], 11 | products: [ 12 | // Products define the executables and libraries produced by a package, and make them visible to other packages. 13 | .library( 14 | name: "MultilineTextField", 15 | targets: ["MultilineTextField"]), 16 | ], 17 | dependencies: [ 18 | // Dependencies declare other packages that this package depends on. 19 | // .package(url: /* package url */, from: "1.0.0"), 20 | ], 21 | targets: [ 22 | // Targets are the basic building blocks of a package. A target can define a module or a test suite. 23 | // Targets can depend on other targets in this package, and on products in packages which this package depends on. 24 | .target( 25 | name: "MultilineTextField", 26 | dependencies: []) 27 | ] 28 | ) 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MultilineTextField 2 | 3 | [![CI Status](http://img.shields.io/travis/rlaguilar/MultilineTextField.svg?style=flat)](https://travis-ci.org/rlaguilar/MultilineTextField) 4 | [![Version](https://img.shields.io/cocoapods/v/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField) 5 | [![License](https://img.shields.io/cocoapods/l/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField) 6 | [![Platform](https://img.shields.io/cocoapods/p/MultilineTextField.svg?style=flat)](http://cocoapods.org/pods/MultilineTextField) 7 | 8 | This can be seen as a `UITextField` with multiple lines, but under the hood it is just a `UITextView` which aims to provide many of the functionalities currently available in the `UITextField` class. Currently the following functionalities are supported: 9 | 10 | + Multiple lines 11 | + Customizable left view 12 | + Customizable placeholder text 13 | 14 | ## Usage 15 | 16 | ### Via storyboards 17 | 18 | Add a `UITextView` and set its custom class to `MultilineTextField`. From the storyboard you can customize the placeholder text and also an image to be shown at the left of the field text. 19 | 20 | ### Via code 21 | 22 | First of all you have to import the library `import MultilineTextField`. 23 | 24 | After that just create an instance of the view an customize its properties: 25 | 26 | ```swift 27 | let textField = MultiplelineTextField(frame: textFieldFrame) 28 | textField.leftView = UIImageView(image: image) 29 | // or use the convenience property: 30 | // textField.leftImage to assign an image directly 31 | 32 | // below are properties that can be optionally customized 33 | textField.placeholder = "This is my placeholder" 34 | textField.placeholderColor = UIColor.red 35 | textField.isPlaceholderScrollEnabled = true 36 | textField.leftViewOrigin = CGPoint(x: 8, y: 8) 37 | someView.addSubview(textField) 38 | ``` 39 | 40 | ## Example 41 | 42 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 43 | 44 | ## Requirements 45 | 46 | It requires Swift 4 and Xcode 9 or above 47 | 48 | ## Installation 49 | 50 | MultilineTextField is available through Swift Package Manager and also [CocoaPods](http://cocoapods.org). 51 | 52 | ### Swift Package Manager 53 | Select File > Swift Packages > Add Package Dependency. Enter `https://github.com/rlaguilar/MultilineTextField.git` in the "Choose Package Repository" dialog. 54 | 55 | ### CocoaPods 56 | Simply add the following line to your Podfile: 57 | 58 | ```ruby 59 | pod 'MultilineTextField' 60 | ``` 61 | 62 | ## Author 63 | 64 | Reynaldo Aguilar, [rlaguilar](https://twitter.com/rlaguilar_) 65 | 66 | ## License 67 | 68 | MultilineTextField is available under the MIT license. See the LICENSE file for more info. 69 | -------------------------------------------------------------------------------- /Sources/MultilineTextField/MultilineTextField.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MultilineTextField.swift 3 | // MultilineTextField 4 | // 5 | // Created by Reynaldo Aguilar on 10/11/17. 6 | // 7 | 8 | import Foundation 9 | import UIKit 10 | 11 | /// Text field with support for multiple lines. 12 | /// - NOTE: Under the hood this is just a `UITextView` which aims to provide 13 | /// many of the functionalities currently available in the `UITextField` class. 14 | /// Currently the following functionalities are supported: 15 | /// + Multiple lines 16 | /// + Customizable left view 17 | /// + Customizable placeholder 18 | /// 19 | /// - TODO: The following features are still missing: 20 | /// + Add support for displaying a right view 21 | /// + Configure when left/right views will be shown using `UITextField.leftViewMode` 22 | public class MultilineTextField: UITextView { 23 | private let placeholderView: UITextView 24 | 25 | public override var text: String! { 26 | didSet { 27 | self.textViewDidChange(self) 28 | } 29 | } 30 | 31 | public override var attributedText: NSAttributedString! { 32 | didSet { 33 | self.textViewDidChange(self) 34 | } 35 | } 36 | 37 | /// The string that is displayed when there is no other text in the text field. 38 | /// This value is nil by default. The placeholder string is drawn using the color 39 | /// stored in `self.placeholderColor`. 40 | @IBInspectable 41 | public var placeholder: String? { 42 | didSet { 43 | placeholderView.text = placeholder 44 | } 45 | } 46 | 47 | /// Color to use to draw the placeholder string. 48 | public var placeholderColor: UIColor = .black { 49 | didSet { 50 | placeholderView.textColor = placeholderColor 51 | } 52 | } 53 | 54 | /// Alignment for placeholder 55 | public var placeholderAlignment: NSTextAlignment = .left { 56 | didSet { 57 | placeholderView.textAlignment = placeholderAlignment 58 | } 59 | } 60 | 61 | /// A Boolean value that determines whether scrolling is enabled 62 | /// for the placeholder content. 63 | public var isPlaceholderScrollEnabled: Bool = true { 64 | didSet { 65 | placeholderView.isScrollEnabled = isPlaceholderScrollEnabled 66 | } 67 | } 68 | 69 | /// Point used as the origin for displaying the left view. 70 | public var leftViewOrigin: CGPoint = CGPoint(x: 0, y: 6) { 71 | didSet { 72 | invalidateLeftView() 73 | } 74 | } 75 | 76 | private var leftExclusionPath: UIBezierPath? 77 | 78 | 79 | /// Convenience property to set an image directly instead of a left view 80 | @IBInspectable 81 | public var leftImage: UIImage? { 82 | get { 83 | return (self.leftView as? UIImageView)?.image 84 | } 85 | set { 86 | if let image = newValue { 87 | self.leftView = UIImageView(image: image) 88 | } 89 | else { 90 | self.leftView = nil 91 | } 92 | } 93 | } 94 | 95 | /// The overlay view displayed in the left side of the text field. 96 | public var leftView: UIView? { 97 | willSet { 98 | if let view = self.leftView { 99 | view.removeFromSuperview() 100 | } 101 | } 102 | didSet { 103 | if let view = self.leftView { 104 | self.addSubview(view) 105 | } 106 | 107 | invalidateLeftView() 108 | } 109 | } 110 | 111 | private var fieldObservations: [NSKeyValueObservation] = [] 112 | 113 | public override init(frame: CGRect, textContainer: NSTextContainer? = nil) { 114 | placeholderView = UITextView(frame: frame, textContainer: textContainer) 115 | super.init(frame: frame, textContainer: textContainer) 116 | initializeUI() 117 | } 118 | 119 | public required init?(coder aDecoder: NSCoder) { 120 | placeholderView = UITextView() 121 | super.init(coder: aDecoder) 122 | initializeUI() 123 | } 124 | 125 | deinit { 126 | removeObservers() 127 | } 128 | 129 | public override func willMove(toSuperview newSuperview: UIView?) { 130 | super.willMove(toSuperview: newSuperview) 131 | if newSuperview == nil { 132 | removeObservers() 133 | } 134 | } 135 | 136 | func initializeUI() { 137 | self.textContainer.lineFragmentPadding = 0 138 | 139 | self.insertSubview(placeholderView, at: 0) 140 | 141 | placeholderView.frame = self.bounds 142 | placeholderView.autoresizingMask = [.flexibleWidth, .flexibleHeight] 143 | 144 | placeholderView.text = "" 145 | placeholderView.isEditable = false 146 | placeholderView.textColor = UIColor(white: 0.7, alpha: 1) 147 | placeholderView.backgroundColor = .clear 148 | 149 | 150 | // observe `UITextView` property changes to react accordinly 151 | #if swift(>=4.2) 152 | NotificationCenter.default.addObserver( 153 | self, 154 | selector: #selector(textViewDidChange(notification:)), 155 | name: UITextView.textDidChangeNotification, 156 | object: self 157 | ) 158 | #else 159 | NotificationCenter.default.addObserver( 160 | self, 161 | selector: #selector(textViewDidChange(notification:)), 162 | name: Notification.Name.UITextViewTextDidChange, 163 | object: self 164 | ) 165 | #endif 166 | 167 | fieldObservations.append( 168 | self.observe(\.font, options: [.initial, .new]) { [weak self] (textField, change) in 169 | self?.placeholderView.font = textField.font 170 | } 171 | ) 172 | 173 | fieldObservations.append( 174 | self.observe(\.textContainerInset, options: [.initial, .new]) { [weak self] (textField, change) in 175 | 176 | guard let strongSelf = self else { return } 177 | 178 | strongSelf.placeholderView.textContainerInset = textField.textContainerInset 179 | strongSelf.invalidateLeftView() 180 | } 181 | ) 182 | 183 | fieldObservations.append( 184 | self.textContainer.observe(\.lineFragmentPadding, options: [.initial, .new]) { [weak self] (textContainer, changes) in 185 | self?.placeholderView.textContainer.lineFragmentPadding = textContainer.lineFragmentPadding 186 | } 187 | ) 188 | } 189 | 190 | private func removeObservers() { 191 | fieldObservations.forEach { $0.invalidate() } 192 | fieldObservations.removeAll() 193 | NotificationCenter.default.removeObserver(self) 194 | } 195 | 196 | @objc private func textViewDidChange(notification: Notification) { 197 | guard let textView = notification.object as? MultilineTextField else { 198 | return 199 | } 200 | 201 | textViewDidChange(textView) 202 | } 203 | 204 | @objc private func textViewDidChange(_ textView: MultilineTextField) { 205 | placeholderView.isHidden = !textView.text.isEmpty 206 | || !textView.attributedText.string.isEmpty 207 | 208 | // handling scrolling of placeholder view 209 | placeholderView.setContentOffset(.zero, animated: false) 210 | 211 | if let left = leftView { 212 | if placeholderView.isHidden { 213 | self.addSubview(left) 214 | } 215 | else { 216 | placeholderView.addSubview(left) 217 | } 218 | } 219 | } 220 | 221 | private func invalidateLeftView() { 222 | if let path = self.leftExclusionPath { 223 | remove(exlusionPath: path) 224 | } 225 | 226 | if let view = self.leftView { 227 | let size = view.bounds.size 228 | let frame = CGRect(origin: leftViewOrigin, size: size) 229 | view.frame = frame 230 | 231 | let exclusionRect = CGRect( 232 | origin: CGPoint( 233 | x: leftViewOrigin.x - textContainerInset.left, 234 | y: leftViewOrigin.y - textContainerInset.top 235 | ), 236 | size: size 237 | ) 238 | 239 | let exclusionPath = UIBezierPath(rect: exclusionRect) 240 | add(exclusionPath: exclusionPath) 241 | 242 | self.leftExclusionPath = exclusionPath 243 | } 244 | } 245 | 246 | private func add(exclusionPath: UIBezierPath) { 247 | self.textContainer.exclusionPaths.append(exclusionPath) 248 | placeholderView.textContainer.exclusionPaths.append(exclusionPath) 249 | } 250 | 251 | private func remove(exlusionPath: UIBezierPath) { 252 | #if swift(>=5) 253 | if let index = self.textContainer.exclusionPaths.firstIndex(of: exlusionPath) { 254 | self.textContainer.exclusionPaths.remove(at: index) 255 | } 256 | 257 | if let index = placeholderView.textContainer.exclusionPaths.firstIndex(of: exlusionPath) { 258 | placeholderView.textContainer.exclusionPaths.remove(at: index) 259 | } 260 | #else 261 | if let index = self.textContainer.exclusionPaths.index(of: exlusionPath) { 262 | self.textContainer.exclusionPaths.remove(at: index) 263 | } 264 | 265 | if let index = placeholderView.textContainer.exclusionPaths.index(of: exlusionPath) { 266 | placeholderView.textContainer.exclusionPaths.remove(at: index) 267 | } 268 | #endif 269 | } 270 | } 271 | -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | import MultilineTextFieldTests 4 | 5 | var tests = [XCTestCaseEntry]() 6 | tests += MultilineTextFieldTests.allTests() 7 | XCTMain(tests) 8 | -------------------------------------------------------------------------------- /Tests/MultilineTextFieldTests/MultilineTextFieldTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import MultilineTextField 3 | 4 | final class MultilineTextFieldTests: XCTestCase { 5 | func testExample() { 6 | // This is an example of a functional test case. 7 | // Use XCTAssert and related functions to verify your tests produce the correct 8 | // results. 9 | } 10 | 11 | static var allTests = [ 12 | ("testExample", testExample), 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /Tests/MultilineTextFieldTests/XCTestManifests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | #if !canImport(ObjectiveC) 4 | public func allTests() -> [XCTestCaseEntry] { 5 | return [ 6 | testCase(MultilineTextFieldTests.allTests), 7 | ] 8 | } 9 | #endif 10 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------