Allow user to turn off blur effect by using nil.#321
Open
yccheok wants to merge 3 commits intosberrevoets:masterfrom
Open
Allow user to turn off blur effect by using nil.#321yccheok wants to merge 3 commits intosberrevoets:masterfrom
yccheok wants to merge 3 commits intosberrevoets:masterfrom
Conversation
Allow user to turn off blur effect by using nil.
Revert to master copy.
Revert to master copy.
Owner
|
Can you add an example of what this would look like and what code you'd use to instantiate the alert? |
Contributor
Author
|
Hi @sberrevoets , Sorry for late response as these few days I have been busy dealing with CoreData related issue. Let me show you a real-world use case, on how it looks like before & after the changes. Before` ` As you can see in the before case, there are 2 shortcomings
(I didn't submit the cancel button blur effect disable feature. I can submit again if you agree with such change) After` ` Please let me know what do you think? If you agree with such feature, I can resubmit the patch, which include the code to separate content view blur effect and cancel button blur effect. Thanks. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Hi,
Thank you for creating
SDCAlertView. The code is very clean, and enjoyable to read.I would like to propose the following change.
In certain case, when we are applying custom view on action sheet, we wish the background color of action sheet, have the same solid color as custom view.
But, current non nil blur effect, doesn't allow us to have a solid color action sheet.
May I propose to allow user to set nil on AlertVisualStyle's
blurEffect, to provide user a choice to setup solid background color?Thanks.