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)