Skip to content

Commit

Permalink
Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
datt authored and datt committed May 30, 2019
1 parent be35e08 commit 73c86d5
Show file tree
Hide file tree
Showing 67 changed files with 1,004 additions and 10 deletions.
4 changes: 2 additions & 2 deletions TagNameDetection/TagNameDetection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.Datt.TagNameDetection;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -305,7 +305,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.Datt.TagNameDetection;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TagNameDetection/DPTagTextView.swift"
timestampString = "566802747.229502"
timestampString = "580899963.175871"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "122"
Expand All @@ -68,7 +68,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TagNameDetection/DPTagTextView.swift"
timestampString = "566802747.229833"
timestampString = "580899963.176232"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "208"
Expand All @@ -84,12 +84,12 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TagNameDetection/DPTagTextView.swift"
timestampString = "566802747.230037"
timestampString = "580899963.1764539"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "327"
endingLineNumber = "327"
landmarkName = "textView(_:shouldChangeTextIn:replacementText:)"
landmarkName = "tapOnTextView(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
Expand All @@ -100,7 +100,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TagNameDetection/DPTagTextView.swift"
timestampString = "566802747.230225"
timestampString = "580899963.1766731"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "174"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>TagNameDetection.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion TagNameDetection/TagNameDetection/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions TagNameDetection/TagNameDetection/DPTagTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ class DPTagTextView: UITextView , UITextViewDelegate {
}

let formattedString = NSMutableAttributedString(string:strTemp)
formattedString.addAttributes([NSAttributedStringKey.font: txtFont , NSAttributedStringKey.foregroundColor : txtColor ] , range: NSRange(location:0,length:formattedString.length))
formattedString.addAttributes([NSAttributedString.Key.font: txtFont , NSAttributedString.Key.foregroundColor : txtColor ] , range: NSRange(location:0,length:formattedString.length))
for range in arrRange {
formattedString.addAttributes([NSAttributedStringKey.font : tagFont , NSAttributedStringKey.backgroundColor : tagBackgroundColor, NSAttributedStringKey.foregroundColor : tagTxtColor] , range: NSRange(location:range.lowerBound.encodedOffset,length:range.upperBound.encodedOffset-range.lowerBound.encodedOffset))
formattedString.addAttributes([NSAttributedString.Key.font : tagFont , NSAttributedString.Key.backgroundColor : tagBackgroundColor, NSAttributedString.Key.foregroundColor : tagTxtColor] , range: NSRange(location:range.lowerBound.encodedOffset,length:range.upperBound.encodedOffset-range.lowerBound.encodedOffset))
}

self.attributedText = formattedString
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.com.Datt.TagNameDetection</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
Binary file not shown.
Loading

0 comments on commit 73c86d5

Please sign in to comment.