Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Views/InputTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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)
Expand Down