├── .gitignore ├── .swift-version ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SimpleCustomizableTextView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── SimpleCustomizableTextView.xcscheme │ └── Target Support Files │ │ ├── Pods-SimpleCustomizableTextView_Example │ │ ├── Info.plist │ │ ├── Pods-SimpleCustomizableTextView_Example-acknowledgements.markdown │ │ ├── Pods-SimpleCustomizableTextView_Example-acknowledgements.plist │ │ ├── Pods-SimpleCustomizableTextView_Example-dummy.m │ │ ├── Pods-SimpleCustomizableTextView_Example-frameworks.sh │ │ ├── Pods-SimpleCustomizableTextView_Example-resources.sh │ │ ├── Pods-SimpleCustomizableTextView_Example-umbrella.h │ │ ├── Pods-SimpleCustomizableTextView_Example.debug.xcconfig │ │ ├── Pods-SimpleCustomizableTextView_Example.modulemap │ │ └── Pods-SimpleCustomizableTextView_Example.release.xcconfig │ │ └── SimpleCustomizableTextView │ │ ├── Info.plist │ │ ├── SimpleCustomizableTextView-dummy.m │ │ ├── SimpleCustomizableTextView-prefix.pch │ │ ├── SimpleCustomizableTextView-umbrella.h │ │ ├── SimpleCustomizableTextView.modulemap │ │ └── SimpleCustomizableTextView.xcconfig ├── SimpleCustomizableTextView.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── SimpleCustomizableTextView.xcworkspace │ └── contents.xcworkspacedata ├── SimpleCustomizableTextView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── ScreenCapture └── TextViewDemo.gif ├── SimpleCustomizableTextView.podspec ├── SimpleCustomizableTextView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── SimpleCustomizableTextView.swift └── _Pods.xcodeproj /.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 | 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 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /.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 -workspace Example/SimpleCustomizableTextView.xcworkspace -scheme SimpleCustomizableTextView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'SimpleCustomizableTextView_Example' do 4 | pod 'SimpleCustomizableTextView', :path => '../' 5 | end 6 | 7 | post_install do |installer| 8 | installer.pods_project.targets.each do |target| 9 | target.build_configurations.each do |config| 10 | config.build_settings['SWIFT_VERSION'] = '3.0' 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SimpleCustomizableTextView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SimpleCustomizableTextView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SimpleCustomizableTextView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SimpleCustomizableTextView: e500cefc4889cc8ce38b4c2a25f04a6a3aaf3ed3 13 | 14 | PODFILE CHECKSUM: 1da45706975c5c2d2475264c2eda07ae968ce6d9 15 | 16 | COCOAPODS: 1.1.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SimpleCustomizableTextView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SimpleCustomizableTextView", 3 | "version": "0.1.0", 4 | "summary": "A short description of SimpleCustomizableTextView.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com//SimpleCustomizableTextView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Kyohei-Sakai": "nico_f00tb@yahoo.co.jp" 13 | }, 14 | "source": { 15 | "git": "https://github.com//SimpleCustomizableTextView.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "SimpleCustomizableTextView/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SimpleCustomizableTextView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SimpleCustomizableTextView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SimpleCustomizableTextView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SimpleCustomizableTextView: e500cefc4889cc8ce38b4c2a25f04a6a3aaf3ed3 13 | 14 | PODFILE CHECKSUM: 1da45706975c5c2d2475264c2eda07ae968ce6d9 15 | 16 | COCOAPODS: 1.1.1 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 | 0BA23D395B2ECA92520A557CE88348FA /* Pods-SimpleCustomizableTextView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B8D08FBD1ED1B9789E1B75079808551 /* Pods-SimpleCustomizableTextView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 47A756CACCEF02E33B80B62A6E48CA80 /* SimpleCustomizableTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65B5C386375E327A67F54FBC4E296704 /* SimpleCustomizableTextView.swift */; }; 12 | 6C03FDC5DED94F00F5010C22C056784F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 13 | 9FE7A329479842D6F4B6C2DE00C2DAEA /* Pods-SimpleCustomizableTextView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E2BBE8A91471B8CF7FA09E860C2BF0C /* Pods-SimpleCustomizableTextView_Example-dummy.m */; }; 14 | D3A3A1D64602F6EEE10E8C6EC466EC8C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 15 | D6A16284537A9DAFF7A908C90588DC65 /* SimpleCustomizableTextView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E2E082A157109C472F56835BF4DC4F7 /* SimpleCustomizableTextView-dummy.m */; }; 16 | ED7990A95E41B69502018C443B360841 /* SimpleCustomizableTextView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 70015C095232F31C588EC4AF0DE4CB6E /* SimpleCustomizableTextView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | AF4125315EB4737905E41B2BC41CE27E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 73EF5311DFE9D0CFC02EBAFC077C01BC; 25 | remoteInfo = SimpleCustomizableTextView; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 0BF237AC7E189986C65BD51C3BA1B944 /* Pods_SimpleCustomizableTextView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_SimpleCustomizableTextView_Example.framework; path = "Pods-SimpleCustomizableTextView_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 0E2BBE8A91471B8CF7FA09E860C2BF0C /* Pods-SimpleCustomizableTextView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SimpleCustomizableTextView_Example-dummy.m"; sourceTree = ""; }; 32 | 14C645D88C1F694FAECEEBDD99B25B3F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 1A20176293BCC745BD4FCE0F61667C88 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SimpleCustomizableTextView_Example.release.xcconfig"; sourceTree = ""; }; 34 | 1CACCBB2BE76AD6BE96E191664C92576 /* SimpleCustomizableTextView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SimpleCustomizableTextView.xcconfig; sourceTree = ""; }; 35 | 3294564D7CE09AA173428227082D36B7 /* Pods-SimpleCustomizableTextView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SimpleCustomizableTextView_Example-frameworks.sh"; sourceTree = ""; }; 36 | 3B8D08FBD1ED1B9789E1B75079808551 /* Pods-SimpleCustomizableTextView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SimpleCustomizableTextView_Example-umbrella.h"; sourceTree = ""; }; 37 | 407C2D901E42E4D6DF781076387F1698 /* Pods-SimpleCustomizableTextView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SimpleCustomizableTextView_Example-acknowledgements.markdown"; sourceTree = ""; }; 38 | 4CB00451EFBF16AD1000397C0C25FC41 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SimpleCustomizableTextView_Example.debug.xcconfig"; sourceTree = ""; }; 39 | 5EBBA34C7C4667FF7D676BE72248423B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 65B5C386375E327A67F54FBC4E296704 /* SimpleCustomizableTextView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SimpleCustomizableTextView.swift; sourceTree = ""; }; 41 | 6E2E082A157109C472F56835BF4DC4F7 /* SimpleCustomizableTextView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SimpleCustomizableTextView-dummy.m"; sourceTree = ""; }; 42 | 70015C095232F31C588EC4AF0DE4CB6E /* SimpleCustomizableTextView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SimpleCustomizableTextView-umbrella.h"; sourceTree = ""; }; 43 | 72FB79CD5F1B582A208A46EC77A5C02F /* Pods-SimpleCustomizableTextView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SimpleCustomizableTextView_Example-acknowledgements.plist"; sourceTree = ""; }; 44 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 45 | 968AF906712ECE537F42C6579A4603D3 /* SimpleCustomizableTextView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = SimpleCustomizableTextView.framework; path = SimpleCustomizableTextView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 9DBC19ED64821E246E2EE412A70A79E3 /* Pods-SimpleCustomizableTextView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-SimpleCustomizableTextView_Example.modulemap"; sourceTree = ""; }; 47 | BCEAEEBD20F4E4EDE9CE951E3CCFCA79 /* SimpleCustomizableTextView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SimpleCustomizableTextView-prefix.pch"; sourceTree = ""; }; 48 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 49 | D3B9D71EE6760296A9D9DBF6A0CC1613 /* Pods-SimpleCustomizableTextView_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SimpleCustomizableTextView_Example-resources.sh"; sourceTree = ""; }; 50 | F719C4959FAAE15D4556335BC27AB5F7 /* SimpleCustomizableTextView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = SimpleCustomizableTextView.modulemap; sourceTree = ""; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | 5E3C5A0BB7F04DBDF66511C621215B9A /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | D3A3A1D64602F6EEE10E8C6EC466EC8C /* Foundation.framework in Frameworks */, 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | 8BADC84C25862DA920E0B1F58A55BEDC /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 6C03FDC5DED94F00F5010C22C056784F /* Foundation.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 0594EEE0E0267E36044F3E0D8C79DEE7 /* SimpleCustomizableTextView */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 0CEE3D5F74C55F8E8D2C4EC706858A4C /* SimpleCustomizableTextView */, 77 | 1A9E2F31FEF2CAA5ED96EB42BD89EB4A /* Support Files */, 78 | ); 79 | name = SimpleCustomizableTextView; 80 | path = ../..; 81 | sourceTree = ""; 82 | }; 83 | 0CEE3D5F74C55F8E8D2C4EC706858A4C /* SimpleCustomizableTextView */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 181507EF364FD7AEB7B47BFA16EA5A2D /* Classes */, 87 | ); 88 | name = SimpleCustomizableTextView; 89 | path = SimpleCustomizableTextView; 90 | sourceTree = ""; 91 | }; 92 | 101C08C1797ED2FAE462C92C0B2A0F06 /* Targets Support Files */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | B32CF2C2EDFB7376CF015D42D70E8C46 /* Pods-SimpleCustomizableTextView_Example */, 96 | ); 97 | name = "Targets Support Files"; 98 | sourceTree = ""; 99 | }; 100 | 181507EF364FD7AEB7B47BFA16EA5A2D /* Classes */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 65B5C386375E327A67F54FBC4E296704 /* SimpleCustomizableTextView.swift */, 104 | ); 105 | name = Classes; 106 | path = Classes; 107 | sourceTree = ""; 108 | }; 109 | 1A9E2F31FEF2CAA5ED96EB42BD89EB4A /* Support Files */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 14C645D88C1F694FAECEEBDD99B25B3F /* Info.plist */, 113 | F719C4959FAAE15D4556335BC27AB5F7 /* SimpleCustomizableTextView.modulemap */, 114 | 1CACCBB2BE76AD6BE96E191664C92576 /* SimpleCustomizableTextView.xcconfig */, 115 | 6E2E082A157109C472F56835BF4DC4F7 /* SimpleCustomizableTextView-dummy.m */, 116 | BCEAEEBD20F4E4EDE9CE951E3CCFCA79 /* SimpleCustomizableTextView-prefix.pch */, 117 | 70015C095232F31C588EC4AF0DE4CB6E /* SimpleCustomizableTextView-umbrella.h */, 118 | ); 119 | name = "Support Files"; 120 | path = "Example/Pods/Target Support Files/SimpleCustomizableTextView"; 121 | sourceTree = ""; 122 | }; 123 | 551D538223C02FFBEA5EDB33976FE2DA /* Development Pods */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 0594EEE0E0267E36044F3E0D8C79DEE7 /* SimpleCustomizableTextView */, 127 | ); 128 | name = "Development Pods"; 129 | sourceTree = ""; 130 | }; 131 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 135 | ); 136 | name = iOS; 137 | sourceTree = ""; 138 | }; 139 | 7DB346D0F39D3F0E887471402A8071AB = { 140 | isa = PBXGroup; 141 | children = ( 142 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 143 | 551D538223C02FFBEA5EDB33976FE2DA /* Development Pods */, 144 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 145 | BF10759E5E3C4AE901C880EC5D2BF224 /* Products */, 146 | 101C08C1797ED2FAE462C92C0B2A0F06 /* Targets Support Files */, 147 | ); 148 | sourceTree = ""; 149 | }; 150 | B32CF2C2EDFB7376CF015D42D70E8C46 /* Pods-SimpleCustomizableTextView_Example */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 5EBBA34C7C4667FF7D676BE72248423B /* Info.plist */, 154 | 9DBC19ED64821E246E2EE412A70A79E3 /* Pods-SimpleCustomizableTextView_Example.modulemap */, 155 | 407C2D901E42E4D6DF781076387F1698 /* Pods-SimpleCustomizableTextView_Example-acknowledgements.markdown */, 156 | 72FB79CD5F1B582A208A46EC77A5C02F /* Pods-SimpleCustomizableTextView_Example-acknowledgements.plist */, 157 | 0E2BBE8A91471B8CF7FA09E860C2BF0C /* Pods-SimpleCustomizableTextView_Example-dummy.m */, 158 | 3294564D7CE09AA173428227082D36B7 /* Pods-SimpleCustomizableTextView_Example-frameworks.sh */, 159 | D3B9D71EE6760296A9D9DBF6A0CC1613 /* Pods-SimpleCustomizableTextView_Example-resources.sh */, 160 | 3B8D08FBD1ED1B9789E1B75079808551 /* Pods-SimpleCustomizableTextView_Example-umbrella.h */, 161 | 4CB00451EFBF16AD1000397C0C25FC41 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */, 162 | 1A20176293BCC745BD4FCE0F61667C88 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */, 163 | ); 164 | name = "Pods-SimpleCustomizableTextView_Example"; 165 | path = "Target Support Files/Pods-SimpleCustomizableTextView_Example"; 166 | sourceTree = ""; 167 | }; 168 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 172 | ); 173 | name = Frameworks; 174 | sourceTree = ""; 175 | }; 176 | BF10759E5E3C4AE901C880EC5D2BF224 /* Products */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 0BF237AC7E189986C65BD51C3BA1B944 /* Pods_SimpleCustomizableTextView_Example.framework */, 180 | 968AF906712ECE537F42C6579A4603D3 /* SimpleCustomizableTextView.framework */, 181 | ); 182 | name = Products; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXHeadersBuildPhase section */ 188 | 56D2DE4727CEB1C5B82C189D02681A51 /* Headers */ = { 189 | isa = PBXHeadersBuildPhase; 190 | buildActionMask = 2147483647; 191 | files = ( 192 | 0BA23D395B2ECA92520A557CE88348FA /* Pods-SimpleCustomizableTextView_Example-umbrella.h in Headers */, 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | }; 196 | E90BBDE4BE837A0D5AB3039FF74C210A /* Headers */ = { 197 | isa = PBXHeadersBuildPhase; 198 | buildActionMask = 2147483647; 199 | files = ( 200 | ED7990A95E41B69502018C443B360841 /* SimpleCustomizableTextView-umbrella.h in Headers */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXHeadersBuildPhase section */ 205 | 206 | /* Begin PBXNativeTarget section */ 207 | 3EF7367E571A05BEF1303C7680E5A222 /* Pods-SimpleCustomizableTextView_Example */ = { 208 | isa = PBXNativeTarget; 209 | buildConfigurationList = 9DCDE26B3C763D616AFA067F8E11C5C5 /* Build configuration list for PBXNativeTarget "Pods-SimpleCustomizableTextView_Example" */; 210 | buildPhases = ( 211 | B7E5558C98F305C873559DEA2F315CA0 /* Sources */, 212 | 5E3C5A0BB7F04DBDF66511C621215B9A /* Frameworks */, 213 | 56D2DE4727CEB1C5B82C189D02681A51 /* Headers */, 214 | ); 215 | buildRules = ( 216 | ); 217 | dependencies = ( 218 | 939360C50B5230757E61F469E6288EDA /* PBXTargetDependency */, 219 | ); 220 | name = "Pods-SimpleCustomizableTextView_Example"; 221 | productName = "Pods-SimpleCustomizableTextView_Example"; 222 | productReference = 0BF237AC7E189986C65BD51C3BA1B944 /* Pods_SimpleCustomizableTextView_Example.framework */; 223 | productType = "com.apple.product-type.framework"; 224 | }; 225 | 73EF5311DFE9D0CFC02EBAFC077C01BC /* SimpleCustomizableTextView */ = { 226 | isa = PBXNativeTarget; 227 | buildConfigurationList = 2FF25CA7A62C1FAF1F0AD43CE9ABF9BB /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView" */; 228 | buildPhases = ( 229 | FDB64ABBD62AFC2614FD60631573DCBB /* Sources */, 230 | 8BADC84C25862DA920E0B1F58A55BEDC /* Frameworks */, 231 | E90BBDE4BE837A0D5AB3039FF74C210A /* Headers */, 232 | ); 233 | buildRules = ( 234 | ); 235 | dependencies = ( 236 | ); 237 | name = SimpleCustomizableTextView; 238 | productName = SimpleCustomizableTextView; 239 | productReference = 968AF906712ECE537F42C6579A4603D3 /* SimpleCustomizableTextView.framework */; 240 | productType = "com.apple.product-type.framework"; 241 | }; 242 | /* End PBXNativeTarget section */ 243 | 244 | /* Begin PBXProject section */ 245 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 246 | isa = PBXProject; 247 | attributes = { 248 | LastSwiftUpdateCheck = 0730; 249 | LastUpgradeCheck = 0700; 250 | }; 251 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 252 | compatibilityVersion = "Xcode 3.2"; 253 | developmentRegion = English; 254 | hasScannedForEncodings = 0; 255 | knownRegions = ( 256 | en, 257 | ); 258 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 259 | productRefGroup = BF10759E5E3C4AE901C880EC5D2BF224 /* Products */; 260 | projectDirPath = ""; 261 | projectRoot = ""; 262 | targets = ( 263 | 3EF7367E571A05BEF1303C7680E5A222 /* Pods-SimpleCustomizableTextView_Example */, 264 | 73EF5311DFE9D0CFC02EBAFC077C01BC /* SimpleCustomizableTextView */, 265 | ); 266 | }; 267 | /* End PBXProject section */ 268 | 269 | /* Begin PBXSourcesBuildPhase section */ 270 | B7E5558C98F305C873559DEA2F315CA0 /* Sources */ = { 271 | isa = PBXSourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 9FE7A329479842D6F4B6C2DE00C2DAEA /* Pods-SimpleCustomizableTextView_Example-dummy.m in Sources */, 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | FDB64ABBD62AFC2614FD60631573DCBB /* Sources */ = { 279 | isa = PBXSourcesBuildPhase; 280 | buildActionMask = 2147483647; 281 | files = ( 282 | D6A16284537A9DAFF7A908C90588DC65 /* SimpleCustomizableTextView-dummy.m in Sources */, 283 | 47A756CACCEF02E33B80B62A6E48CA80 /* SimpleCustomizableTextView.swift in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXSourcesBuildPhase section */ 288 | 289 | /* Begin PBXTargetDependency section */ 290 | 939360C50B5230757E61F469E6288EDA /* PBXTargetDependency */ = { 291 | isa = PBXTargetDependency; 292 | name = SimpleCustomizableTextView; 293 | target = 73EF5311DFE9D0CFC02EBAFC077C01BC /* SimpleCustomizableTextView */; 294 | targetProxy = AF4125315EB4737905E41B2BC41CE27E /* PBXContainerItemProxy */; 295 | }; 296 | /* End PBXTargetDependency section */ 297 | 298 | /* Begin XCBuildConfiguration section */ 299 | 29DBEB1A1D707170FA85C6122EF250E2 /* Debug */ = { 300 | isa = XCBuildConfiguration; 301 | baseConfigurationReference = 4CB00451EFBF16AD1000397C0C25FC41 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */; 302 | buildSettings = { 303 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 304 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 305 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 306 | CURRENT_PROJECT_VERSION = 1; 307 | DEBUG_INFORMATION_FORMAT = dwarf; 308 | DEFINES_MODULE = YES; 309 | DYLIB_COMPATIBILITY_VERSION = 1; 310 | DYLIB_CURRENT_VERSION = 1; 311 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 312 | ENABLE_STRICT_OBJC_MSGSEND = YES; 313 | GCC_NO_COMMON_BLOCKS = YES; 314 | INFOPLIST_FILE = "Target Support Files/Pods-SimpleCustomizableTextView_Example/Info.plist"; 315 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 316 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 317 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 318 | MACH_O_TYPE = staticlib; 319 | MODULEMAP_FILE = "Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.modulemap"; 320 | MTL_ENABLE_DEBUG_INFO = YES; 321 | OTHER_LDFLAGS = ""; 322 | OTHER_LIBTOOLFLAGS = ""; 323 | PODS_ROOT = "$(SRCROOT)"; 324 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 325 | PRODUCT_NAME = Pods_SimpleCustomizableTextView_Example; 326 | SDKROOT = iphoneos; 327 | SKIP_INSTALL = YES; 328 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 329 | SWIFT_VERSION = 3.0; 330 | TARGETED_DEVICE_FAMILY = "1,2"; 331 | VERSIONING_SYSTEM = "apple-generic"; 332 | VERSION_INFO_PREFIX = ""; 333 | }; 334 | name = Debug; 335 | }; 336 | 4769F1B39B89EDC5702E3580172D2C26 /* Release */ = { 337 | isa = XCBuildConfiguration; 338 | baseConfigurationReference = 1A20176293BCC745BD4FCE0F61667C88 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */; 339 | buildSettings = { 340 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 341 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 342 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 343 | CURRENT_PROJECT_VERSION = 1; 344 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 345 | DEFINES_MODULE = YES; 346 | DYLIB_COMPATIBILITY_VERSION = 1; 347 | DYLIB_CURRENT_VERSION = 1; 348 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 349 | ENABLE_STRICT_OBJC_MSGSEND = YES; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | INFOPLIST_FILE = "Target Support Files/Pods-SimpleCustomizableTextView_Example/Info.plist"; 352 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 353 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 354 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 355 | MACH_O_TYPE = staticlib; 356 | MODULEMAP_FILE = "Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.modulemap"; 357 | MTL_ENABLE_DEBUG_INFO = NO; 358 | OTHER_LDFLAGS = ""; 359 | OTHER_LIBTOOLFLAGS = ""; 360 | PODS_ROOT = "$(SRCROOT)"; 361 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 362 | PRODUCT_NAME = Pods_SimpleCustomizableTextView_Example; 363 | SDKROOT = iphoneos; 364 | SKIP_INSTALL = YES; 365 | SWIFT_VERSION = 3.0; 366 | TARGETED_DEVICE_FAMILY = "1,2"; 367 | VERSIONING_SYSTEM = "apple-generic"; 368 | VERSION_INFO_PREFIX = ""; 369 | }; 370 | name = Release; 371 | }; 372 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { 373 | isa = XCBuildConfiguration; 374 | buildSettings = { 375 | ALWAYS_SEARCH_USER_PATHS = NO; 376 | CLANG_ANALYZER_NONNULL = YES; 377 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 378 | CLANG_CXX_LIBRARY = "libc++"; 379 | CLANG_ENABLE_MODULES = YES; 380 | CLANG_ENABLE_OBJC_ARC = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INT_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 388 | CLANG_WARN_UNREACHABLE_CODE = YES; 389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 390 | CODE_SIGNING_REQUIRED = NO; 391 | COPY_PHASE_STRIP = YES; 392 | ENABLE_NS_ASSERTIONS = NO; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_PREPROCESSOR_DEFINITIONS = ( 395 | "POD_CONFIGURATION_RELEASE=1", 396 | "$(inherited)", 397 | ); 398 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 399 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 400 | GCC_WARN_UNDECLARED_SELECTOR = YES; 401 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 402 | GCC_WARN_UNUSED_FUNCTION = YES; 403 | GCC_WARN_UNUSED_VARIABLE = YES; 404 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 405 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 406 | STRIP_INSTALLED_PRODUCT = NO; 407 | SYMROOT = "${SRCROOT}/../build"; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | ALWAYS_SEARCH_USER_PATHS = NO; 416 | CLANG_ANALYZER_NONNULL = YES; 417 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 418 | CLANG_CXX_LIBRARY = "libc++"; 419 | CLANG_ENABLE_MODULES = YES; 420 | CLANG_ENABLE_OBJC_ARC = YES; 421 | CLANG_WARN_BOOL_CONVERSION = YES; 422 | CLANG_WARN_CONSTANT_CONVERSION = YES; 423 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 424 | CLANG_WARN_EMPTY_BODY = YES; 425 | CLANG_WARN_ENUM_CONVERSION = YES; 426 | CLANG_WARN_INT_CONVERSION = YES; 427 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 428 | CLANG_WARN_UNREACHABLE_CODE = YES; 429 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 430 | CODE_SIGNING_REQUIRED = NO; 431 | COPY_PHASE_STRIP = NO; 432 | ENABLE_TESTABILITY = YES; 433 | GCC_C_LANGUAGE_STANDARD = gnu99; 434 | GCC_DYNAMIC_NO_PIC = NO; 435 | GCC_OPTIMIZATION_LEVEL = 0; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "POD_CONFIGURATION_DEBUG=1", 438 | "DEBUG=1", 439 | "$(inherited)", 440 | ); 441 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 442 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 443 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 444 | GCC_WARN_UNDECLARED_SELECTOR = YES; 445 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 446 | GCC_WARN_UNUSED_FUNCTION = YES; 447 | GCC_WARN_UNUSED_VARIABLE = YES; 448 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 449 | ONLY_ACTIVE_ARCH = YES; 450 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 451 | STRIP_INSTALLED_PRODUCT = NO; 452 | SYMROOT = "${SRCROOT}/../build"; 453 | }; 454 | name = Debug; 455 | }; 456 | BCF1B03B02597BC5F6B8524C6153DFE8 /* Release */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = 1CACCBB2BE76AD6BE96E191664C92576 /* SimpleCustomizableTextView.xcconfig */; 459 | buildSettings = { 460 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 461 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 462 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 463 | CURRENT_PROJECT_VERSION = 1; 464 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 465 | DEFINES_MODULE = YES; 466 | DYLIB_COMPATIBILITY_VERSION = 1; 467 | DYLIB_CURRENT_VERSION = 1; 468 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | GCC_NO_COMMON_BLOCKS = YES; 471 | GCC_PREFIX_HEADER = "Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView-prefix.pch"; 472 | INFOPLIST_FILE = "Target Support Files/SimpleCustomizableTextView/Info.plist"; 473 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 474 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 476 | MODULEMAP_FILE = "Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView.modulemap"; 477 | MTL_ENABLE_DEBUG_INFO = NO; 478 | PRODUCT_NAME = SimpleCustomizableTextView; 479 | SDKROOT = iphoneos; 480 | SKIP_INSTALL = YES; 481 | SWIFT_VERSION = 3.0; 482 | TARGETED_DEVICE_FAMILY = "1,2"; 483 | VERSIONING_SYSTEM = "apple-generic"; 484 | VERSION_INFO_PREFIX = ""; 485 | }; 486 | name = Release; 487 | }; 488 | E6318F5EB2497747A61CFFD7485B6F31 /* Debug */ = { 489 | isa = XCBuildConfiguration; 490 | baseConfigurationReference = 1CACCBB2BE76AD6BE96E191664C92576 /* SimpleCustomizableTextView.xcconfig */; 491 | buildSettings = { 492 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 493 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 494 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 495 | CURRENT_PROJECT_VERSION = 1; 496 | DEBUG_INFORMATION_FORMAT = dwarf; 497 | DEFINES_MODULE = YES; 498 | DYLIB_COMPATIBILITY_VERSION = 1; 499 | DYLIB_CURRENT_VERSION = 1; 500 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 501 | ENABLE_STRICT_OBJC_MSGSEND = YES; 502 | GCC_NO_COMMON_BLOCKS = YES; 503 | GCC_PREFIX_HEADER = "Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView-prefix.pch"; 504 | INFOPLIST_FILE = "Target Support Files/SimpleCustomizableTextView/Info.plist"; 505 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 506 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | MODULEMAP_FILE = "Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView.modulemap"; 509 | MTL_ENABLE_DEBUG_INFO = YES; 510 | PRODUCT_NAME = SimpleCustomizableTextView; 511 | SDKROOT = iphoneos; 512 | SKIP_INSTALL = YES; 513 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 514 | SWIFT_VERSION = 3.0; 515 | TARGETED_DEVICE_FAMILY = "1,2"; 516 | VERSIONING_SYSTEM = "apple-generic"; 517 | VERSION_INFO_PREFIX = ""; 518 | }; 519 | name = Debug; 520 | }; 521 | /* End XCBuildConfiguration section */ 522 | 523 | /* Begin XCConfigurationList section */ 524 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 525 | isa = XCConfigurationList; 526 | buildConfigurations = ( 527 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, 528 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, 529 | ); 530 | defaultConfigurationIsVisible = 0; 531 | defaultConfigurationName = Release; 532 | }; 533 | 2FF25CA7A62C1FAF1F0AD43CE9ABF9BB /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView" */ = { 534 | isa = XCConfigurationList; 535 | buildConfigurations = ( 536 | E6318F5EB2497747A61CFFD7485B6F31 /* Debug */, 537 | BCF1B03B02597BC5F6B8524C6153DFE8 /* Release */, 538 | ); 539 | defaultConfigurationIsVisible = 0; 540 | defaultConfigurationName = Release; 541 | }; 542 | 9DCDE26B3C763D616AFA067F8E11C5C5 /* Build configuration list for PBXNativeTarget "Pods-SimpleCustomizableTextView_Example" */ = { 543 | isa = XCConfigurationList; 544 | buildConfigurations = ( 545 | 29DBEB1A1D707170FA85C6122EF250E2 /* Debug */, 546 | 4769F1B39B89EDC5702E3580172D2C26 /* Release */, 547 | ); 548 | defaultConfigurationIsVisible = 0; 549 | defaultConfigurationName = Release; 550 | }; 551 | /* End XCConfigurationList section */ 552 | }; 553 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 554 | } 555 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/SimpleCustomizableTextView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_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-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SimpleCustomizableTextView 5 | 6 | Copyright (c) 2016 Kyohei-Sakai 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-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_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) 2016 Kyohei-Sakai <nico_f00tb@yahoo.co.jp> 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 | SimpleCustomizableTextView 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-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SimpleCustomizableTextView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SimpleCustomizableTextView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-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 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/SimpleCustomizableTextView/SimpleCustomizableTextView.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/SimpleCustomizableTextView/SimpleCustomizableTextView.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_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 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | 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}" 46 | 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} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_SimpleCustomizableTextView_ExampleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_SimpleCustomizableTextView_ExampleVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SimpleCustomizableTextView" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SimpleCustomizableTextView/SimpleCustomizableTextView.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "SimpleCustomizableTextView" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SimpleCustomizableTextView_Example { 2 | umbrella header "Pods-SimpleCustomizableTextView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SimpleCustomizableTextView" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SimpleCustomizableTextView/SimpleCustomizableTextView.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "SimpleCustomizableTextView" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SimpleCustomizableTextView/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/SimpleCustomizableTextView/SimpleCustomizableTextView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SimpleCustomizableTextView : NSObject 3 | @end 4 | @implementation PodsDummy_SimpleCustomizableTextView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double SimpleCustomizableTextViewVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char SimpleCustomizableTextViewVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView.modulemap: -------------------------------------------------------------------------------- 1 | framework module SimpleCustomizableTextView { 2 | umbrella header "SimpleCustomizableTextView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SimpleCustomizableTextView/SimpleCustomizableTextView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/SimpleCustomizableTextView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 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 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 26108B121793DE6BF7805E93 /* Pods_SimpleCustomizableTextView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AD4BF6C8147F466F1CCF611 /* Pods_SimpleCustomizableTextView_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 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 25 | remoteInfo = SimpleCustomizableTextView; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 21C4D02EDF34B4E2CB48BFA1 /* Pods_SimpleCustomizableTextView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SimpleCustomizableTextView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 2A1398F2C08CFD7F45087F16 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SimpleCustomizableTextView_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.debug.xcconfig"; sourceTree = ""; }; 32 | 607FACD01AFB9204008FA782 /* SimpleCustomizableTextView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimpleCustomizableTextView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 35 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 36 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 37 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 38 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 39 | 607FACE51AFB9204008FA782 /* SimpleCustomizableTextView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SimpleCustomizableTextView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 42 | 8B1422A8EBC8E699B9D59F55 /* SimpleCustomizableTextView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SimpleCustomizableTextView.podspec; path = ../SimpleCustomizableTextView.podspec; sourceTree = ""; }; 43 | 9AD4BF6C8147F466F1CCF611 /* Pods_SimpleCustomizableTextView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SimpleCustomizableTextView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 9E620319972730FC6F2088E3 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 45 | DBE72C7953910C9D2FE92AD2 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | EFDC4B758FEFEF281A5E0B18 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SimpleCustomizableTextView_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example.release.xcconfig"; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 26108B121793DE6BF7805E93 /* Pods_SimpleCustomizableTextView_Example.framework in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 2665CFDAD7F94A982A342F3D /* Frameworks */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 9AD4BF6C8147F466F1CCF611 /* Pods_SimpleCustomizableTextView_Example.framework */, 72 | 21C4D02EDF34B4E2CB48BFA1 /* Pods_SimpleCustomizableTextView_Tests.framework */, 73 | ); 74 | name = Frameworks; 75 | sourceTree = ""; 76 | }; 77 | 607FACC71AFB9204008FA782 = { 78 | isa = PBXGroup; 79 | children = ( 80 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 81 | 607FACD21AFB9204008FA782 /* Example for SimpleCustomizableTextView */, 82 | 607FACE81AFB9204008FA782 /* Tests */, 83 | 607FACD11AFB9204008FA782 /* Products */, 84 | DD5C3E1DAC88B40590D2E89E /* Pods */, 85 | 2665CFDAD7F94A982A342F3D /* Frameworks */, 86 | ); 87 | sourceTree = ""; 88 | }; 89 | 607FACD11AFB9204008FA782 /* Products */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 607FACD01AFB9204008FA782 /* SimpleCustomizableTextView_Example.app */, 93 | 607FACE51AFB9204008FA782 /* SimpleCustomizableTextView_Tests.xctest */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 607FACD21AFB9204008FA782 /* Example for SimpleCustomizableTextView */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 102 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 103 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 104 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 105 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 106 | 607FACD31AFB9204008FA782 /* Supporting Files */, 107 | ); 108 | name = "Example for SimpleCustomizableTextView"; 109 | path = SimpleCustomizableTextView; 110 | sourceTree = ""; 111 | }; 112 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 607FACD41AFB9204008FA782 /* Info.plist */, 116 | ); 117 | name = "Supporting Files"; 118 | sourceTree = ""; 119 | }; 120 | 607FACE81AFB9204008FA782 /* Tests */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 124 | 607FACE91AFB9204008FA782 /* Supporting Files */, 125 | ); 126 | path = Tests; 127 | sourceTree = ""; 128 | }; 129 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 607FACEA1AFB9204008FA782 /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 8B1422A8EBC8E699B9D59F55 /* SimpleCustomizableTextView.podspec */, 141 | 9E620319972730FC6F2088E3 /* README.md */, 142 | DBE72C7953910C9D2FE92AD2 /* LICENSE */, 143 | ); 144 | name = "Podspec Metadata"; 145 | sourceTree = ""; 146 | }; 147 | DD5C3E1DAC88B40590D2E89E /* Pods */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 2A1398F2C08CFD7F45087F16 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */, 151 | EFDC4B758FEFEF281A5E0B18 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */, 152 | ); 153 | name = Pods; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 607FACCF1AFB9204008FA782 /* SimpleCustomizableTextView_Example */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView_Example" */; 162 | buildPhases = ( 163 | 00E1C8E7D89A3A5A9C7AB831 /* [CP] Check Pods Manifest.lock */, 164 | 607FACCC1AFB9204008FA782 /* Sources */, 165 | 607FACCD1AFB9204008FA782 /* Frameworks */, 166 | 607FACCE1AFB9204008FA782 /* Resources */, 167 | 1C659467E1B28BB977D2292F /* [CP] Embed Pods Frameworks */, 168 | 75EDA71F1B44C36477697543 /* [CP] Copy Pods Resources */, 169 | ); 170 | buildRules = ( 171 | ); 172 | dependencies = ( 173 | ); 174 | name = SimpleCustomizableTextView_Example; 175 | productName = SimpleCustomizableTextView; 176 | productReference = 607FACD01AFB9204008FA782 /* SimpleCustomizableTextView_Example.app */; 177 | productType = "com.apple.product-type.application"; 178 | }; 179 | 607FACE41AFB9204008FA782 /* SimpleCustomizableTextView_Tests */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView_Tests" */; 182 | buildPhases = ( 183 | 607FACE11AFB9204008FA782 /* Sources */, 184 | 607FACE21AFB9204008FA782 /* Frameworks */, 185 | 607FACE31AFB9204008FA782 /* Resources */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 191 | ); 192 | name = SimpleCustomizableTextView_Tests; 193 | productName = Tests; 194 | productReference = 607FACE51AFB9204008FA782 /* SimpleCustomizableTextView_Tests.xctest */; 195 | productType = "com.apple.product-type.bundle.unit-test"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 607FACC81AFB9204008FA782 /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastSwiftUpdateCheck = 0720; 204 | LastUpgradeCheck = 0810; 205 | ORGANIZATIONNAME = CocoaPods; 206 | TargetAttributes = { 207 | 607FACCF1AFB9204008FA782 = { 208 | CreatedOnToolsVersion = 6.3.1; 209 | LastSwiftMigration = 0810; 210 | }; 211 | 607FACE41AFB9204008FA782 = { 212 | CreatedOnToolsVersion = 6.3.1; 213 | LastSwiftMigration = 0810; 214 | TestTargetID = 607FACCF1AFB9204008FA782; 215 | }; 216 | }; 217 | }; 218 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SimpleCustomizableTextView" */; 219 | compatibilityVersion = "Xcode 3.2"; 220 | developmentRegion = English; 221 | hasScannedForEncodings = 0; 222 | knownRegions = ( 223 | en, 224 | Base, 225 | ); 226 | mainGroup = 607FACC71AFB9204008FA782; 227 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 228 | projectDirPath = ""; 229 | projectRoot = ""; 230 | targets = ( 231 | 607FACCF1AFB9204008FA782 /* SimpleCustomizableTextView_Example */, 232 | 607FACE41AFB9204008FA782 /* SimpleCustomizableTextView_Tests */, 233 | ); 234 | }; 235 | /* End PBXProject section */ 236 | 237 | /* Begin PBXResourcesBuildPhase section */ 238 | 607FACCE1AFB9204008FA782 /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 243 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 244 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | 607FACE31AFB9204008FA782 /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXResourcesBuildPhase section */ 256 | 257 | /* Begin PBXShellScriptBuildPhase section */ 258 | 00E1C8E7D89A3A5A9C7AB831 /* [CP] Check Pods Manifest.lock */ = { 259 | isa = PBXShellScriptBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | inputPaths = ( 264 | ); 265 | name = "[CP] Check Pods Manifest.lock"; 266 | outputPaths = ( 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | shellPath = /bin/sh; 270 | shellScript = "diff \"${PODS_ROOT}/../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"; 271 | showEnvVarsInLog = 0; 272 | }; 273 | 1C659467E1B28BB977D2292F /* [CP] Embed Pods Frameworks */ = { 274 | isa = PBXShellScriptBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | inputPaths = ( 279 | ); 280 | name = "[CP] Embed Pods Frameworks"; 281 | outputPaths = ( 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-frameworks.sh\"\n"; 286 | showEnvVarsInLog = 0; 287 | }; 288 | 75EDA71F1B44C36477697543 /* [CP] Copy Pods Resources */ = { 289 | isa = PBXShellScriptBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | ); 293 | inputPaths = ( 294 | ); 295 | name = "[CP] Copy Pods Resources"; 296 | outputPaths = ( 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SimpleCustomizableTextView_Example/Pods-SimpleCustomizableTextView_Example-resources.sh\"\n"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | /* End PBXShellScriptBuildPhase section */ 304 | 305 | /* Begin PBXSourcesBuildPhase section */ 306 | 607FACCC1AFB9204008FA782 /* Sources */ = { 307 | isa = PBXSourcesBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 311 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | }; 315 | 607FACE11AFB9204008FA782 /* Sources */ = { 316 | isa = PBXSourcesBuildPhase; 317 | buildActionMask = 2147483647; 318 | files = ( 319 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | /* End PBXSourcesBuildPhase section */ 324 | 325 | /* Begin PBXTargetDependency section */ 326 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 327 | isa = PBXTargetDependency; 328 | target = 607FACCF1AFB9204008FA782 /* SimpleCustomizableTextView_Example */; 329 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 330 | }; 331 | /* End PBXTargetDependency section */ 332 | 333 | /* Begin PBXVariantGroup section */ 334 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 335 | isa = PBXVariantGroup; 336 | children = ( 337 | 607FACDA1AFB9204008FA782 /* Base */, 338 | ); 339 | name = Main.storyboard; 340 | sourceTree = ""; 341 | }; 342 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 343 | isa = PBXVariantGroup; 344 | children = ( 345 | 607FACDF1AFB9204008FA782 /* Base */, 346 | ); 347 | name = LaunchScreen.xib; 348 | sourceTree = ""; 349 | }; 350 | /* End PBXVariantGroup section */ 351 | 352 | /* Begin XCBuildConfiguration section */ 353 | 607FACED1AFB9204008FA782 /* Debug */ = { 354 | isa = XCBuildConfiguration; 355 | buildSettings = { 356 | ALWAYS_SEARCH_USER_PATHS = NO; 357 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 358 | CLANG_CXX_LIBRARY = "libc++"; 359 | CLANG_ENABLE_MODULES = YES; 360 | CLANG_ENABLE_OBJC_ARC = YES; 361 | CLANG_WARN_BOOL_CONVERSION = YES; 362 | CLANG_WARN_CONSTANT_CONVERSION = YES; 363 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 364 | CLANG_WARN_EMPTY_BODY = YES; 365 | CLANG_WARN_ENUM_CONVERSION = YES; 366 | CLANG_WARN_INFINITE_RECURSION = YES; 367 | CLANG_WARN_INT_CONVERSION = YES; 368 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 369 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 370 | CLANG_WARN_UNREACHABLE_CODE = YES; 371 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 372 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 373 | COPY_PHASE_STRIP = NO; 374 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 375 | ENABLE_STRICT_OBJC_MSGSEND = YES; 376 | ENABLE_TESTABILITY = YES; 377 | GCC_C_LANGUAGE_STANDARD = gnu99; 378 | GCC_DYNAMIC_NO_PIC = NO; 379 | GCC_NO_COMMON_BLOCKS = YES; 380 | GCC_OPTIMIZATION_LEVEL = 0; 381 | GCC_PREPROCESSOR_DEFINITIONS = ( 382 | "DEBUG=1", 383 | "$(inherited)", 384 | ); 385 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 386 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 387 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 388 | GCC_WARN_UNDECLARED_SELECTOR = YES; 389 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 390 | GCC_WARN_UNUSED_FUNCTION = YES; 391 | GCC_WARN_UNUSED_VARIABLE = YES; 392 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 393 | MTL_ENABLE_DEBUG_INFO = YES; 394 | ONLY_ACTIVE_ARCH = YES; 395 | SDKROOT = iphoneos; 396 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 397 | }; 398 | name = Debug; 399 | }; 400 | 607FACEE1AFB9204008FA782 /* Release */ = { 401 | isa = XCBuildConfiguration; 402 | buildSettings = { 403 | ALWAYS_SEARCH_USER_PATHS = NO; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 405 | CLANG_CXX_LIBRARY = "libc++"; 406 | CLANG_ENABLE_MODULES = YES; 407 | CLANG_ENABLE_OBJC_ARC = YES; 408 | CLANG_WARN_BOOL_CONVERSION = YES; 409 | CLANG_WARN_CONSTANT_CONVERSION = YES; 410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 411 | CLANG_WARN_EMPTY_BODY = YES; 412 | CLANG_WARN_ENUM_CONVERSION = YES; 413 | CLANG_WARN_INFINITE_RECURSION = YES; 414 | CLANG_WARN_INT_CONVERSION = YES; 415 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 422 | ENABLE_NS_ASSERTIONS = NO; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu99; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 427 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 428 | GCC_WARN_UNDECLARED_SELECTOR = YES; 429 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 430 | GCC_WARN_UNUSED_FUNCTION = YES; 431 | GCC_WARN_UNUSED_VARIABLE = YES; 432 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 433 | MTL_ENABLE_DEBUG_INFO = NO; 434 | SDKROOT = iphoneos; 435 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 436 | VALIDATE_PRODUCT = YES; 437 | }; 438 | name = Release; 439 | }; 440 | 607FACF01AFB9204008FA782 /* Debug */ = { 441 | isa = XCBuildConfiguration; 442 | baseConfigurationReference = 2A1398F2C08CFD7F45087F16 /* Pods-SimpleCustomizableTextView_Example.debug.xcconfig */; 443 | buildSettings = { 444 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 446 | INFOPLIST_FILE = SimpleCustomizableTextView/Info.plist; 447 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 449 | MODULE_NAME = ExampleApp; 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | SWIFT_VERSION = 3.0; 453 | }; 454 | name = Debug; 455 | }; 456 | 607FACF11AFB9204008FA782 /* Release */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = EFDC4B758FEFEF281A5E0B18 /* Pods-SimpleCustomizableTextView_Example.release.xcconfig */; 459 | buildSettings = { 460 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | INFOPLIST_FILE = SimpleCustomizableTextView/Info.plist; 463 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 464 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 465 | MODULE_NAME = ExampleApp; 466 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 467 | PRODUCT_NAME = "$(TARGET_NAME)"; 468 | SWIFT_VERSION = 3.0; 469 | }; 470 | name = Release; 471 | }; 472 | 607FACF31AFB9204008FA782 /* Debug */ = { 473 | isa = XCBuildConfiguration; 474 | buildSettings = { 475 | FRAMEWORK_SEARCH_PATHS = ( 476 | "$(SDKROOT)/Developer/Library/Frameworks", 477 | "$(inherited)", 478 | ); 479 | GCC_PREPROCESSOR_DEFINITIONS = ( 480 | "DEBUG=1", 481 | "$(inherited)", 482 | ); 483 | INFOPLIST_FILE = Tests/Info.plist; 484 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 485 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 486 | PRODUCT_NAME = "$(TARGET_NAME)"; 487 | SWIFT_VERSION = 3.0; 488 | }; 489 | name = Debug; 490 | }; 491 | 607FACF41AFB9204008FA782 /* Release */ = { 492 | isa = XCBuildConfiguration; 493 | buildSettings = { 494 | FRAMEWORK_SEARCH_PATHS = ( 495 | "$(SDKROOT)/Developer/Library/Frameworks", 496 | "$(inherited)", 497 | ); 498 | INFOPLIST_FILE = Tests/Info.plist; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_VERSION = 3.0; 503 | }; 504 | name = Release; 505 | }; 506 | /* End XCBuildConfiguration section */ 507 | 508 | /* Begin XCConfigurationList section */ 509 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SimpleCustomizableTextView" */ = { 510 | isa = XCConfigurationList; 511 | buildConfigurations = ( 512 | 607FACED1AFB9204008FA782 /* Debug */, 513 | 607FACEE1AFB9204008FA782 /* Release */, 514 | ); 515 | defaultConfigurationIsVisible = 0; 516 | defaultConfigurationName = Release; 517 | }; 518 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView_Example" */ = { 519 | isa = XCConfigurationList; 520 | buildConfigurations = ( 521 | 607FACF01AFB9204008FA782 /* Debug */, 522 | 607FACF11AFB9204008FA782 /* Release */, 523 | ); 524 | defaultConfigurationIsVisible = 0; 525 | defaultConfigurationName = Release; 526 | }; 527 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SimpleCustomizableTextView_Tests" */ = { 528 | isa = XCConfigurationList; 529 | buildConfigurations = ( 530 | 607FACF31AFB9204008FA782 /* Debug */, 531 | 607FACF41AFB9204008FA782 /* Release */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | /* End XCConfigurationList section */ 537 | }; 538 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 539 | } 540 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SimpleCustomizableTextView 4 | // 5 | // Created by Kyohei-Sakai on 11/09/2016. 6 | // Copyright (c) 2016 Kyohei-Sakai. 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/SimpleCustomizableTextView/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/SimpleCustomizableTextView/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 | 32 | Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 50 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/SimpleCustomizableTextView/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/SimpleCustomizableTextView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SimpleCustomizableTextView 4 | // 5 | // Created by Kyohei-Sakai on 11/09/2016. 6 | // Copyright (c) 2016 Kyohei-Sakai. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SimpleCustomizableTextView 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var textView: SimpleCustomizableTextView! 15 | 16 | @IBOutlet weak var sizeSlider: UISlider! 17 | @IBOutlet weak var edgeInsetsButton: UIButton! 18 | @IBOutlet weak var topInset: UITextField! 19 | @IBOutlet weak var leftInset: UITextField! 20 | @IBOutlet weak var bottomInset: UITextField! 21 | @IBOutlet weak var rightInset: UITextField! 22 | 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | 27 | textView.layer.borderColor = UIColor.black.cgColor 28 | textView.layer.borderWidth = 1 29 | textView.keyboardAppearance = .dark 30 | 31 | // AccessaryView setting 32 | 33 | textView.accessoryViewStyle = .blackOpaque 34 | textView.barItemTitle = "Close" 35 | textView.barItemTitleColor = UIColor.white 36 | textView.barItemTitleFont = UIFont.italicSystemFont(ofSize: 20) 37 | 38 | textView.customDelegate = self 39 | 40 | view.addSubview(textView) 41 | 42 | } 43 | 44 | @IBAction func sizeChanged(_ sender: UISlider) { 45 | textView.font = .systemFont(ofSize: CGFloat(sizeSlider.value)) 46 | } 47 | 48 | @IBAction func setEdgeInsets(_ sender: UIButton) { 49 | if let text = topInset.text, let top = Int(text) { 50 | textView.textContainerInset.top = CGFloat(top) 51 | } 52 | 53 | if let text = leftInset.text, let left = Int(text) { 54 | textView.textContainerInset.left = CGFloat(left) 55 | } 56 | 57 | if let text = bottomInset.text, let bottom = Int(text) { 58 | textView.textContainerInset.bottom = CGFloat(bottom) 59 | } 60 | 61 | if let text = rightInset.text, let right = Int(text) { 62 | textView.textContainerInset.right = CGFloat(right) 63 | } 64 | } 65 | 66 | } 67 | 68 | 69 | // MARK: - SimpleCustomizableTextViewDelegate 70 | 71 | extension ViewController: SimpleCustomizableTextViewDelegate { 72 | public func SimpleCustomizableTextViewShouldDone(_ textView: SimpleCustomizableTextView) -> Bool { 73 | // do something 74 | return true 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /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 SimpleCustomizableTextView 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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Kyohei-Sakai 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SimpleCustomizableTextView 2 | 3 | Simple customizable UITextView subclass that adds Placeholder and ToolBar written in Swift. 4 | 5 |

6 | 7 | 8 | # Features 9 | 10 | ![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat 11 | ) 12 | [![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage) 13 | [![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat 14 | )](http://mit-license.org) 15 | [![Language](http://img.shields.io/badge/language-swift 3.0-orange.svg?style=flat 16 | )](https://developer.apple.com/swift) 17 | 18 | - Placeholder similar to UITextField 19 | - AccessryView on keyboard 20 | - Closing keyboard 21 | - Support @IBDesignable and @IBInspectable 22 | - Support Swift 3.0 23 | - Compatible with Carthage 24 | 25 | 26 | ## Demo App 27 | 28 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 29 | 30 | Open `Example/SimpleCustomizableTextView.xcworkspace` and run `SimpleCustomizableTextView-Example` to see a simple demonstration. 31 | 32 | 33 | ## Usage 34 | 35 | ### Initialization 36 | 37 | ***SimpleCustomizableTextView*** can be initialized in a way same as UITextView 38 | 39 | ```swift 40 | let textView = SimpleCustomizableTextView(frame: CGRect(x: 10, y: 20, width: 200, height: 300)) 41 | ``` 42 | 43 | `SimpleCustomizableTextView` is available in Interface Builder. 44 | Set custom class of `UITextView` to `SimpleCustomizableTextView` 45 | 46 | ```swift 47 | @IBOutlet weak var textView: SimpleCustomizableTextView! 48 | ``` 49 | 50 | ### Placeholder setting 51 | 52 | Please set text `placeholder` property. 53 | 54 | ```swift 55 | textView.placeholder = "Set placeholder in SimpleCustomizableTextView." 56 | ``` 57 | 58 | ### AccessaryView setting 59 | 60 | SimpleCustomizableTextView have customizable accessaryView on keyboard. 61 | You can close a keyboard if you push `UIBarButtonItem`. 62 | 63 | `/// set gif ///` 64 | 65 | if you want to change accessaryView style, you should use `accessoryViewStyle`, `barItemTitle`, `barItemTitleColor`, `barItemTitleFont`. 66 | 67 | ```swift 68 | textView.accessoryViewStyle = .blackOpaque // default is .default 69 | textView.barItemTitle = "Close" // default is "Done" 70 | textView.barItemTitleColor = UIColor.white   // default is UIColor.black 71 | textView.barItemTitleFont = UIFont.italicSystemFont(ofSize: 20) // default is .systemFont(ofSize: UIFont.buttonFontSize) 72 | ``` 73 | 74 | if you don't use `accessaryView`, set `accessoryViewIsHidden` to `ture`. 75 | 76 | ```swift 77 | textView.accessoryViewIsHidden = ture 78 | ``` 79 | 80 | ### SimpleCustomizableTextViewDelegate 81 | 82 | Asks the delegate if the `SimpleCustomizableTextView` should process the pressing of the bar button. 83 | `true` if the `SimpleCustomizableTextView` should implement its default behavior for the bar button; otherwise, `false`. 84 | 85 | if you set `false`, the keyboard is not closed. 86 | 87 | ```swift 88 | extension ViewController: SimpleCustomizableTextViewDelegate { 89 | public func SimpleCustomizableTextViewShouldDone(_ textView: SimpleCustomizableTextView) -> Bool { 90 |        // do something (if you want to implement any behavior before closing the keyboard) 91 | return true 92 | } 93 | } 94 | 95 | ``` 96 | 97 | ## Requirements 98 | 99 | - iOS 8.0+ 100 | - Xcode 8.0+ 101 | - Swift 3.0+ 102 | 103 | 104 | 105 | ## Installation 106 | 107 | ### CocoaPods 108 | 109 | SimpleCustomizableTextView is available through [CocoaPods](http://cocoapods.org). To install 110 | it, simply add the following line to your Podfile: 111 | 112 | ```ruby 113 | pod "SimpleCustomizableTextView" 114 | ``` 115 | 116 | ### Carthage 117 | 118 | Add the following line to your `Cartfile`: 119 | 120 | ```ruby 121 | github "Kyohei-Sakai/SimpleCustomizableTextView" 122 | ``` 123 | 124 | ## Author 125 | 126 | Kyohei-Sakai, nico_f00tb@yahoo.co.jp 127 | 128 | ## License 129 | 130 | SimpleCustomizableTextView is available under the MIT license. See the LICENSE file for more info. 131 | -------------------------------------------------------------------------------- /ScreenCapture/TextViewDemo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sakatore/SimpleCustomizableTextView/723814af0f31a1453a75bcea80696e82acf09f3e/ScreenCapture/TextViewDemo.gif -------------------------------------------------------------------------------- /SimpleCustomizableTextView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SimpleCustomizableTextView.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 = 'SimpleCustomizableTextView' 11 | s.version = '1.0.2' 12 | s.summary = 'Simple customizable UITextView subclass in Swift.' 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 | 22 | SimpleCustomizableTextView is a simple customizable UITextView subclass, written in Swift. 23 | 24 | * Placeholder similar to UITextField 25 | * AccessryView on keyboard 26 | * Closing keyboard 27 | * Support @IBDesignable and @IBInspectable 28 | * Support Swift 3.0 29 | * Compatible with Carthage 30 | 31 | 32 | DESC 33 | 34 | s.homepage = 'https://github.com/Kyohei-Sakai/SimpleCustomizableTextView' 35 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 36 | s.license = { :type => 'MIT', :file => 'LICENSE' } 37 | s.author = { 'Kyohei-Sakai' => 'nico_f00tb@yahoo.co.jp' } 38 | s.source = { :git => 'https://github.com/Kyohei-Sakai/SimpleCustomizableTextView.git', :tag => s.version.to_s } 39 | # s.social_media_url = 'https://twitter.com/' 40 | 41 | s.ios.deployment_target = '8.0' 42 | 43 | s.source_files = 'SimpleCustomizableTextView/Classes/**/*' 44 | 45 | # s.resource_bundles = { 46 | # 'SimpleCustomizableTextView' => ['SimpleCustomizableTextView/Assets/*.png'] 47 | # } 48 | 49 | # s.public_header_files = 'Pod/Classes/**/*.h' 50 | # s.frameworks = 'UIKit', 'MapKit' 51 | # s.dependency 'AFNetworking', '~> 2.3' 52 | end 53 | -------------------------------------------------------------------------------- /SimpleCustomizableTextView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sakatore/SimpleCustomizableTextView/723814af0f31a1453a75bcea80696e82acf09f3e/SimpleCustomizableTextView/Assets/.gitkeep -------------------------------------------------------------------------------- /SimpleCustomizableTextView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sakatore/SimpleCustomizableTextView/723814af0f31a1453a75bcea80696e82acf09f3e/SimpleCustomizableTextView/Classes/.gitkeep -------------------------------------------------------------------------------- /SimpleCustomizableTextView/Classes/SimpleCustomizableTextView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleCustomizableTextView.swift 3 | // Pods 4 | // 5 | // Created by 酒井恭平 on 2016/11/09. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | // MARK: - SimpleCustomizableTextViewDelegate - 12 | 13 | public protocol SimpleCustomizableTextViewDelegate: UITextViewDelegate { 14 | func SimpleCustomizableTextViewShouldDone(_ textView: SimpleCustomizableTextView) -> Bool 15 | } 16 | 17 | 18 | // MARK: - SimpleCustomizableTextView - 19 | 20 | @IBDesignable 21 | public class SimpleCustomizableTextView: UITextView { 22 | 23 | // MARK: - fileprivate properties - 24 | 25 | fileprivate let placeholderLabel = UILabel() 26 | // adjust label position 27 | fileprivate let paddingLeft: CGFloat = 2 28 | 29 | fileprivate let notificatin = NotificationCenter.default 30 | 31 | fileprivate var doneButton = UIBarButtonItem(title: "", style: .plain, target: nil, action: #selector(doneButtonDidPush(_:))) 32 | 33 | 34 | // MARK: - Initialization - 35 | 36 | override init(frame: CGRect, textContainer: NSTextContainer? = nil) { 37 | super.init(frame: frame, textContainer: textContainer) 38 | observeTextDidChange() 39 | configurePlaceholder() 40 | configureAccessoryView() 41 | } 42 | 43 | required public init?(coder aDecoder: NSCoder) { 44 | super.init(coder: aDecoder) 45 | observeTextDidChange() 46 | configurePlaceholder() 47 | configureAccessoryView() 48 | } 49 | 50 | deinit { 51 | notificatin.removeObserver(self) 52 | } 53 | 54 | 55 | // MARK: - override properties - 56 | 57 | override public var frame: CGRect { 58 | didSet { 59 | adjustLabelToFit() 60 | } 61 | } 62 | 63 | override public var text: String! { 64 | didSet { 65 | placeholderIsHidden() 66 | } 67 | } 68 | 69 | override public var textAlignment: NSTextAlignment { 70 | didSet { 71 | placeholderLabel.textAlignment = textAlignment 72 | } 73 | } 74 | 75 | override public var font: UIFont? { 76 | didSet { 77 | placeholderLabel.font = font 78 | adjustLabelToFit() 79 | } 80 | } 81 | 82 | override public var textContainerInset: UIEdgeInsets { 83 | didSet { 84 | placeholderLabel.frame.origin = CGPoint(x: textContainerInset.left + paddingLeft, y: textContainerInset.top) 85 | 86 | if oldValue.left != textContainerInset.left { 87 | placeholderLabel.frame.size.width = placeholderLabel.frame.width + oldValue.left - textContainerInset.left 88 | } 89 | 90 | if oldValue.right != textContainerInset.right { 91 | placeholderLabel.frame.size.width = placeholderLabel.frame.width + oldValue.right - textContainerInset.right 92 | } 93 | 94 | } 95 | } 96 | 97 | 98 | // MARK: - public properties - 99 | 100 | // default is nil. string is drawn 70% gray 101 | @IBInspectable public var placeholder: String? { 102 | didSet { 103 | placeholderLabel.text = placeholder 104 | adjustLabelToFit() 105 | } 106 | } 107 | 108 | @IBInspectable public let accessoryView = UIToolbar() 109 | 110 | @IBInspectable public var accessoryViewIsHidden: Bool = false { 111 | didSet { 112 | accessoryView.isHidden = accessoryViewIsHidden 113 | } 114 | } 115 | 116 | @IBInspectable public var barItemTitleColor: UIColor = UIColor.black { 117 | didSet { 118 | doneButton.setTitleTextAttributes([ 119 | NSForegroundColorAttributeName: barItemTitleColor, NSFontAttributeName: barItemTitleFont], for: .normal) 120 | } 121 | } 122 | 123 | @IBInspectable public var barItemTitle: String = "Done" { 124 | didSet { 125 | doneButton.title = barItemTitle 126 | } 127 | } 128 | 129 | public var accessoryViewStyle: UIBarStyle = .default { 130 | didSet { 131 | accessoryView.barStyle = accessoryViewStyle 132 | } 133 | } 134 | 135 | public var barItemTitleFont: UIFont = .systemFont(ofSize: UIFont.buttonFontSize) { 136 | didSet { 137 | doneButton.setTitleTextAttributes([ 138 | NSFontAttributeName: barItemTitleFont, NSForegroundColorAttributeName: barItemTitleColor], for: .normal) 139 | } 140 | } 141 | 142 | public weak var customDelegate: SimpleCustomizableTextViewDelegate? { 143 | didSet { 144 | delegate = customDelegate 145 | } 146 | } 147 | 148 | 149 | 150 | } 151 | 152 | 153 | // MARK: - private methods - 154 | 155 | private extension SimpleCustomizableTextView { 156 | 157 | // MARK: - Placeholder - 158 | 159 | @objc func controlPlaceholder(_ notification: Notification) { 160 | placeholderIsHidden() 161 | } 162 | 163 | func observeTextDidChange() { 164 | notificatin.addObserver(self, selector: #selector(controlPlaceholder(_:)), name: .UITextViewTextDidChange, object: nil) 165 | } 166 | 167 | func placeholderIsHidden() { 168 | placeholderLabel.isHidden = !text.isEmpty 169 | } 170 | 171 | func configurePlaceholder() { 172 | placeholderLabel.backgroundColor = UIColor.clear 173 | placeholderLabel.textColor = UIColor.gray.withAlphaComponent(0.7) 174 | placeholderLabel.numberOfLines = 0 175 | placeholderLabel.lineBreakMode = .byWordWrapping 176 | 177 | placeholderLabel.font = font ?? .systemFont(ofSize: 12) 178 | placeholderLabel.textAlignment = textAlignment 179 | placeholderLabel.frame.origin = CGPoint(x: textContainerInset.left + paddingLeft, y: textContainerInset.top) 180 | placeholderIsHidden() 181 | 182 | self.addSubview(placeholderLabel) 183 | } 184 | 185 | func adjustLabelToFit() { 186 | placeholderLabel.frame.size.width = textContainer.size.width - paddingLeft * 2 187 | placeholderLabel.sizeToFit() 188 | } 189 | 190 | 191 | // MARK: - AccessaryView - 192 | 193 | @objc func doneButtonDidPush(_ sender: UIButton) { 194 | if customDelegate?.SimpleCustomizableTextViewShouldDone(self) != false { 195 | self.resignFirstResponder() 196 | } 197 | } 198 | 199 | func configureAccessoryView() { 200 | doneButton.title = barItemTitle 201 | let spacer = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil) 202 | accessoryView.setItems([spacer, doneButton], animated: false) 203 | 204 | self.inputAccessoryView = accessoryView 205 | accessoryView.sizeToFit() 206 | accessoryView.isHidden = accessoryViewIsHidden 207 | accessoryView.barStyle = accessoryViewStyle 208 | } 209 | 210 | } 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------