Skip to content

Conversation

pboulch
Copy link
Contributor

@pboulch pboulch commented Feb 6, 2023

Add a parameter in config to manage blur intensity

@pboulch
Copy link
Contributor Author

pboulch commented Feb 28, 2023

Is it possible to review this PR please ?

Copy link
Collaborator

@mikhailmaslo mikhailmaslo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CustomIntensityVisualEffectView looks hacky, also intensity is not a part of standard UIVisualEffectView

So, I suggest to provide a way to customize BottomSheet views through, for example, delegate. In this way, you can provide your own view (CustomIntensityVisualEffectView)

In this delegate method can be a method:

func makeShadowView(
    presentationViewController: UIPresentationViewController,
    configuration: BottomSheetConfiguration
) -> UIView

Then, this method is used by presentation controller to make a shadow. If nothing is provided, default implementation (current) will be used

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants