mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Cleanup
This commit is contained in:
parent
9b0f7e67be
commit
9cfb1b3ef9
2 changed files with 3 additions and 2 deletions
|
@ -108,5 +108,7 @@ private extension CompositionViewModel {
|
||||||
private extension String {
|
private extension String {
|
||||||
static let urlCharacterCount = 23
|
static let urlCharacterCount = 23
|
||||||
|
|
||||||
var countShorteningIfURL: Int { starts(with: "http://") || starts(with: "https://") ? Self.urlCharacterCount : count }
|
var countShorteningIfURL: Int {
|
||||||
|
starts(with: "http://") || starts(with: "https://") ? Self.urlCharacterCount : count
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,6 @@ private extension CompositionInputAccessoryView {
|
||||||
stackView.addArrangedSubview(charactersLabel)
|
stackView.addArrangedSubview(charactersLabel)
|
||||||
charactersLabel.font = .preferredFont(forTextStyle: .callout)
|
charactersLabel.font = .preferredFont(forTextStyle: .callout)
|
||||||
|
|
||||||
|
|
||||||
stackView.addArrangedSubview(addButton)
|
stackView.addArrangedSubview(addButton)
|
||||||
addButton.setImage(
|
addButton.setImage(
|
||||||
UIImage(
|
UIImage(
|
||||||
|
|
Loading…
Reference in a new issue