From 291e2cc283f84864f36abb9de505d14a7b21007f Mon Sep 17 00:00:00 2001
From: Pavel Akhrameev
Date: Tue, 6 Oct 2020 11:21:05 +0300
Subject: [PATCH] doubles spaces fix
just polishing code
---
Sources/Extensions/NSMutableAttributedString+Extensions.swift | 2 +-
Sources/Views/InputTextView.swift | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Sources/Extensions/NSMutableAttributedString+Extensions.swift b/Sources/Extensions/NSMutableAttributedString+Extensions.swift
index 85cd508..547579c 100755
--- a/Sources/Extensions/NSMutableAttributedString+Extensions.swift
+++ b/Sources/Extensions/NSMutableAttributedString+Extensions.swift
@@ -43,7 +43,7 @@ extension NSMutableAttributedString {
NSAttributedString.Key.font : UIFont.systemFont(ofSize: fontSize),
NSAttributedString.Key.foregroundColor : textColor
]
- let normal = NSMutableAttributedString(string: text, attributes: attrs)
+ let normal = NSMutableAttributedString(string: text, attributes: attrs)
self.append(normal)
return self
}
diff --git a/Sources/Views/InputTextView.swift b/Sources/Views/InputTextView.swift
index 4fa62e5..1a7825e 100644
--- a/Sources/Views/InputTextView.swift
+++ b/Sources/Views/InputTextView.swift
@@ -86,7 +86,7 @@ open class InputTextView: UITextView {
}
/// The `UIEdgeInsets` the placeholderLabel has within the `InputTextView`
- open var placeholderLabelInsets: UIEdgeInsets = UIEdgeInsets(top: 8, left: 4, bottom: 8, right: 4) {
+ open var placeholderLabelInsets: UIEdgeInsets = UIEdgeInsets(top: 8, left: 4, bottom: 8, right: 4) {
didSet {
updateConstraintsForPlaceholderLabel()
}
@@ -357,7 +357,7 @@ open class InputTextView: UITextView {
curLocation = range.location + range.length
components.append(image)
}
- if curLocation < length - 1 {
+ if curLocation < length - 1 {
let text = attributedText.attributedSubstring(from: NSMakeRange(curLocation, length - curLocation)).string.trimmingCharacters(in: .whitespacesAndNewlines)
if !text.isEmpty {
components.append(text)