diff --git a/AppTextviewPlaceholder.podspec b/AppTextviewPlaceholder.podspec index d9d3a82..229f123 100644 --- a/AppTextviewPlaceholder.podspec +++ b/AppTextviewPlaceholder.podspec @@ -1,14 +1,15 @@ Pod::Spec.new do |s| s.name = 'AppTextviewPlaceholder' - s.version = '1.0' + s.version = '1.2' + s.swift_version = '4.2' s.summary = 'A candy for Textview Placeholder, TL;DR Plug it, Get It, Use It.' s.homepage = 'https://github.com/monicarajendran/AppTextviewPlaceholder' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'monicarajendran' => 'monicarajendran96@gmail.com' } s.source = { :git => 'https://github.com/monicarajendran/AppTextviewPlaceholder.git', :tag => s.version.to_s } - s.social_media_url = 'https://twitter.com/monicarajendran' - s.swift_version = '4.0' + s.social_media_url = 'https://twitter.com/monica__raja' + s.ios.deployment_target = '10.0' s.source_files = 'AppTextviewPlaceholder/Classes/**/*.{swift}' diff --git a/AppTextviewPlaceholder/Classes/PlaceholderTextView.swift b/AppTextviewPlaceholder/Classes/PlaceholderTextView.swift index 8b697f4..92f4e66 100644 --- a/AppTextviewPlaceholder/Classes/PlaceholderTextView.swift +++ b/AppTextviewPlaceholder/Classes/PlaceholderTextView.swift @@ -63,8 +63,8 @@ private let PlaceholderInset: CGFloat = 8 /** Initializes the placeholder text view, waiting for a notification of text changed */ func addObservers() { - NotificationCenter.default.addObserver(self, selector: #selector(AppPlaceholderTextView.textChangedForPlaceholderTextView(_:)), name:NSNotification.Name.UITextViewTextDidChange , object: self) - NotificationCenter.default.addObserver(self, selector: #selector(AppPlaceholderTextView.textChangedForPlaceholderTextView(_:)), name:NSNotification.Name.UITextViewTextDidBeginEditing , object: self) + NotificationCenter.default.addObserver(self, selector: #selector(AppPlaceholderTextView.textChangedForPlaceholderTextView(_:)), name:UITextView.textDidChangeNotification , object: self) + NotificationCenter.default.addObserver(self, selector: #selector(AppPlaceholderTextView.textChangedForPlaceholderTextView(_:)), name: UITextView.textDidBeginEditingNotification, object: self) } func removeObservers() { @@ -91,15 +91,14 @@ private let PlaceholderInset: CGFloat = 8 if text.count == 0 && self.placeholder != nil { let baseRect = placeholderBoundsContainedIn(self.bounds) - - let font = self.font ?? self.typingAttributes[NSAttributedStringKey.font.rawValue] as? UIFont ?? UIFont.systemFont(ofSize: UIFont.systemFontSize) + let font = self.font ?? self.typingAttributes[NSAttributedString.Key.paragraphStyle] ?? UIFont.systemFont(ofSize: UIFont.systemFontSize) self.placeholderColor.set() // build the custom paragraph style for our placeholder text var customParagraphStyle: NSMutableParagraphStyle! - if let defaultParagraphStyle = typingAttributes[NSAttributedStringKey.paragraphStyle.rawValue] as? NSParagraphStyle { + if let defaultParagraphStyle = typingAttributes[NSAttributedString.Key.paragraphStyle] as? NSParagraphStyle { customParagraphStyle = defaultParagraphStyle.mutableCopy() as! NSMutableParagraphStyle } else { customParagraphStyle = NSMutableParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle @@ -108,9 +107,9 @@ private let PlaceholderInset: CGFloat = 8 // set attributes customParagraphStyle.lineBreakMode = NSLineBreakMode.byTruncatingTail customParagraphStyle.alignment = self.textAlignment - let attributes = [NSAttributedStringKey.font: font, - NSAttributedStringKey.paragraphStyle: customParagraphStyle.copy() as! NSParagraphStyle, - NSAttributedStringKey.foregroundColor: self.placeholderColor] + let attributes = [NSAttributedString.Key.font: font, + NSAttributedString.Key.paragraphStyle: customParagraphStyle.copy() as! NSParagraphStyle, + NSAttributedString.Key.foregroundColor: self.placeholderColor] // draw in rect. self.placeholder?.draw(in: baseRect, withAttributes: attributes) @@ -120,10 +119,10 @@ private let PlaceholderInset: CGFloat = 8 func placeholderBoundsContainedIn(_ containerBounds: CGRect) -> CGRect { // get the base rect with content insets. - let baseRect = UIEdgeInsetsInsetRect(containerBounds, UIEdgeInsetsMake(PlaceholderInset, PlaceholderInset/2.0, 0, 0)) + let baseRect = containerBounds.inset(by: UIEdgeInsets(top: PlaceholderInset, left: PlaceholderInset/2.0, bottom: 0, right: 0)) // adjust typing and selection attributes - if let paragraphStyle = typingAttributes[NSAttributedStringKey.paragraphStyle.rawValue] as? NSParagraphStyle { + if let paragraphStyle = typingAttributes[NSAttributedString.Key.paragraphStyle] as? NSParagraphStyle { baseRect.offsetBy(dx: paragraphStyle.headIndent, dy: paragraphStyle.firstLineHeadIndent) } diff --git a/Example/.gitignore b/Example/.gitignore new file mode 100644 index 0000000..f509107 --- /dev/null +++ b/Example/.gitignore @@ -0,0 +1,123 @@ +# Created by https://www.gitignore.io/api/swift,xcode,swiftpm,carthage,fastlane,cocoapods,appbuilder,swiftpackagemanager + +### AppBuilder ### +.ab/ + +### Carthage ### +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build + +### CocoaPods ### +## CocoaPods GitIgnore Template + +# CocoaPods - Only use to conserve bandwidth / Save time on Pushing +# - Also handy if you have a large number of dependant pods +# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE +Pods/ +!Podfile +!Podfile.lock + +### fastlane ### +# fastlane - A streamlined workflow tool for Cocoa deployment +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +# fastlane specific +fastlane/report.xml + +# deliver temporary files +fastlane/Preview.html + +# snapshot generated screenshots +fastlane/screenshots/**/*.png +fastlane/screenshots/screenshots.html + +# scan temporary files +fastlane/test_output +### Swift ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ + +## Other +*.moved-aside +*.xccheckout +*.xcscmblueprint + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +.build/ + +# CocoaPods - Refactored to standalone file + +# Carthage - Refactored to standalone file + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/screenshots + +### SwiftPackageManager ### +Packages +xcuserdata + +### SwiftPM ### + +### Xcode ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated + +## Various settings + +## Other + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno + +# End of https://www.gitignore.io/api/swift,xcode,swiftpm,carthage,fastlane,cocoapods,appbuilder,swiftpackagemanager diff --git a/Example/AppTextviewPlaceholder.xcodeproj/project.pbxproj b/Example/AppTextviewPlaceholder.xcodeproj/project.pbxproj index a1c6307..baa7323 100644 --- a/Example/AppTextviewPlaceholder.xcodeproj/project.pbxproj +++ b/Example/AppTextviewPlaceholder.xcodeproj/project.pbxproj @@ -15,6 +15,7 @@ 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 9ABFC2A2E4FC5654ED254E73 /* Pods_AppTextviewPlaceholder_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 822DB36CDBDB5DDD439325AF /* Pods_AppTextviewPlaceholder_Example.framework */; }; + DD39EF0122C2424D00F2EE63 /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = DD39EF0022C2424D00F2EE63 /* .gitignore */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -45,6 +46,7 @@ 822DB36CDBDB5DDD439325AF /* Pods_AppTextviewPlaceholder_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AppTextviewPlaceholder_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; B60DDAD951DDCE696EF6C911 /* Pods-AppTextviewPlaceholder_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppTextviewPlaceholder_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-AppTextviewPlaceholder_Tests/Pods-AppTextviewPlaceholder_Tests.release.xcconfig"; sourceTree = ""; }; C331118AFCDFC1EA8C767197 /* AppTextviewPlaceholder.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = AppTextviewPlaceholder.podspec; path = ../AppTextviewPlaceholder.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + DD39EF0022C2424D00F2EE63 /* .gitignore */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; E4F58F8E8ECC6C1A27175B9E /* Pods-AppTextviewPlaceholder_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppTextviewPlaceholder_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example.debug.xcconfig"; sourceTree = ""; }; E9562733D5FE61FFBE9D1540 /* Pods-AppTextviewPlaceholder_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppTextviewPlaceholder_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -72,6 +74,7 @@ 607FACC71AFB9204008FA782 = { isa = PBXGroup; children = ( + DD39EF0022C2424D00F2EE63 /* .gitignore */, 607FACF51AFB993E008FA782 /* Podspec Metadata */, 607FACD21AFB9204008FA782 /* Example for AppTextviewPlaceholder */, 607FACE81AFB9204008FA782 /* Tests */, @@ -171,7 +174,6 @@ 607FACCD1AFB9204008FA782 /* Frameworks */, 607FACCE1AFB9204008FA782 /* Resources */, F81165AF049CA6F7BB8BD20B /* [CP] Embed Pods Frameworks */, - AFE761762DE6A2A241224B39 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -190,8 +192,6 @@ 607FACE11AFB9204008FA782 /* Sources */, 607FACE21AFB9204008FA782 /* Frameworks */, 607FACE31AFB9204008FA782 /* Resources */, - EF10712C1A026F691F7F60EA /* [CP] Embed Pods Frameworks */, - 45BDC08B967CA742E3C527AD /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -210,7 +210,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0830; - LastUpgradeCheck = 0830; + LastUpgradeCheck = 1020; ORGANIZATIONNAME = CocoaPods; TargetAttributes = { 607FACCF1AFB9204008FA782 = { @@ -226,7 +226,7 @@ }; buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AppTextviewPlaceholder" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, @@ -248,6 +248,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + DD39EF0122C2424D00F2EE63 /* .gitignore in Resources */, 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, @@ -264,21 +265,6 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 45BDC08B967CA742E3C527AD /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AppTextviewPlaceholder_Tests/Pods-AppTextviewPlaceholder_Tests-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; 8BCEBFA3F9677F43CB14BEC1 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -297,21 +283,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - AFE761762DE6A2A241224B39 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; B421E78256F1FBBAC75C4FE4 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -330,28 +301,13 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - EF10712C1A026F691F7F60EA /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AppTextviewPlaceholder_Tests/Pods-AppTextviewPlaceholder_Tests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; F81165AF049CA6F7BB8BD20B /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example-frameworks.sh", "${BUILT_PRODUCTS_DIR}/AppTextviewPlaceholder/AppTextviewPlaceholder.framework", ); name = "[CP] Embed Pods Frameworks"; @@ -360,7 +316,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AppTextviewPlaceholder_Example/Pods-AppTextviewPlaceholder_Example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -417,6 +373,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -425,12 +382,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -463,6 +422,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -470,6 +430,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -478,12 +439,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -508,6 +471,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.2; VALIDATE_PRODUCT = YES; }; name = Release; @@ -524,7 +488,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -540,7 +504,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; @@ -561,7 +525,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -578,7 +542,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; diff --git a/Example/AppTextviewPlaceholder.xcodeproj/xcshareddata/xcschemes/AppTextviewPlaceholder-Example.xcscheme b/Example/AppTextviewPlaceholder.xcodeproj/xcshareddata/xcschemes/AppTextviewPlaceholder-Example.xcscheme index 5f8c062..aba4b32 100644 --- a/Example/AppTextviewPlaceholder.xcodeproj/xcshareddata/xcschemes/AppTextviewPlaceholder-Example.xcscheme +++ b/Example/AppTextviewPlaceholder.xcodeproj/xcshareddata/xcschemes/AppTextviewPlaceholder-Example.xcscheme @@ -1,6 +1,6 @@ + + + + + + diff --git a/Example/AppTextviewPlaceholder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/AppTextviewPlaceholder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/AppTextviewPlaceholder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/AppTextviewPlaceholder/AppDelegate.swift b/Example/AppTextviewPlaceholder/AppDelegate.swift index 933c732..056fdde 100644 --- a/Example/AppTextviewPlaceholder/AppDelegate.swift +++ b/Example/AppTextviewPlaceholder/AppDelegate.swift @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..af0abfe --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - AppTextviewPlaceholder (1.1) + +DEPENDENCIES: + - AppTextviewPlaceholder (from `../`) + +EXTERNAL SOURCES: + AppTextviewPlaceholder: + :path: "../" + +SPEC CHECKSUMS: + AppTextviewPlaceholder: 4668b2c62ac571ff5b2c659606a327f168d4d7c7 + +PODFILE CHECKSUM: 6e960cc581f74176e6ca159b698191bcce18dd80 + +COCOAPODS: 1.7.2