You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for PR.
Can you explain, why do you need this changes?
I think that:
Message is just a simple text, for good readability, it should break lines with NSLineBreakByWordWrapping, not with NSLineBreakByCharWrapping. And it definitely should be fully visible, that's why we can't use clipping and truncating.
If you want to make messages dynamic, you need to recalculate full layout every time it changed. And why only messages? If messages will be dynamic, then other pieces of library should be dynamic too: title, buttons... even style.
To make message dynamic you can use LGAlertView with inner view and make any changes inside it. Check in demo project:
In the process of downloading multiple files, I would like to dynamically display the message name in the alert view, only show the percentage of progress will be a bit monotonous.
Sometimes the file name will be longer, would like to flexibly set LineBreakMode, such as NSLineBreakByTruncatingMiddle, so set this property visible.
I tried implement it, but really, It's not so easy.
Initially, for this purpose we had progressLabelText property. In the latest release 2.4.0 I added ability to use it with alertView with activityIndicator as well as with progressView.
Check demo project for version 2.4.0
"LGAlertView + ActivityIndicator"
"LGAlertView + ProgressView"
You can make it looks like this:
+-----------------------+
| Title |
| Message |
| #####================ |
| File name |
| Percent |
+-----------------------+
Or like this:
+-----------------------+
| Title |
| Message |
| #####================ |
| Percent | File name |
+-----------------------+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.