iOS 11 crash resolved

This commit is contained in:
Dhaval Thanki
2017-10-14 14:19:21 +05:30
parent 37062db8aa
commit 542b238cce
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = 'DTTextField'
s.version = '0.2.5'
s.version = '0.2.6'
s.summary = 'DTTextField is UITextField library.'
s.description = <<-DESC
+3 -1
View File
@@ -282,7 +282,9 @@ public class DTTextField: UITextField {
fileprivate func insetRectForBounds(rect:CGRect) -> CGRect {
guard !lblFloatPlaceholder.text!.isEmptyStr else { return insetRectForEmptyBounds(rect: rect) }
guard let placeholderText = lblFloatPlaceholder.text,!placeholderText.isEmptyStr else {
return insetRectForEmptyBounds(rect: rect)
}
if floatingDisplayStatus == .never {
return insetRectForEmptyBounds(rect: rect)
+3 -1
View File
@@ -282,7 +282,9 @@ public class DTTextField: UITextField {
fileprivate func insetRectForBounds(rect:CGRect) -> CGRect {
guard !lblFloatPlaceholder.text!.isEmptyStr else { return insetRectForEmptyBounds(rect: rect) }
guard let placeholderText = lblFloatPlaceholder.text,!placeholderText.isEmptyStr else {
return insetRectForEmptyBounds(rect: rect)
}
if floatingDisplayStatus == .never {
return insetRectForEmptyBounds(rect: rect)