-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support text sticker line break #32
Conversation
@@ -213,7 +214,7 @@ extension ZLInputTextViewController: UICollectionViewDelegate, UICollectionViewD | |||
|
|||
extension ZLInputTextViewController: UITextViewDelegate { | |||
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool { | |||
if text == "\n" { | |||
if !ZLImageEditorConfiguration.default().textStickerCanLineBreak && text == "\n" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the newlines of the text should be trimmed before the callback in the doneBtnClick
method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@longitachi Thanks all for the lighting fast response! I fixed that in the doneBtnClick
by textView.text = textView.text.trimmingCharacters(in: .whitespacesAndNewlines)
.
@longitachi Thank you for your review and merge. Can I create a pull request for bump up version to 1.1.5? |
@darquro I will release v1.1.5 later. |
Done. |
@longitachi Thank you! |
Hi @longitachi,
My app's customer requests input line break on text sticker.
So I added new configuration
textStickerCanLineBreak
.I'm appreciate if you would review this proposal.
Thank you.