[FEAT] customization of backdrop #44
Replies: 3 comments 12 replies
-
Unfortunately, this isn't possible on IOS, natively. Hopefully this becomes possible on future versions but I really doubt it. |
Beta Was this translation helpful? Give feedback.
-
I did play with modifying the Still not worth it at this time. However, I'm open to PRs/suggestions |
Beta Was this translation helpful? Give feedback.
-
Hey! We faced a backdrop customization issue requested by our customer. We implemented two solutions for iOS. The first one involves a patch for override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
UIView.animate(withDuration: 0.4) {
self.presentingViewController?.view.alpha = 0.2
}
delegate?.viewControllerWillAppear()
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
UIView.animate(withDuration: 0.4) {
self.presentingViewController?.view.alpha = 1
}
} The second solution involves creating a I hope this helps someone out there or sparks new ideas for their solutions. |
Beta Was this translation helpful? Give feedback.
-
Hey!
First of all, thank you for this awesome library!
I was wondering if there are any plans to allow the customization of the backdrop (view behind the sheet)? Like color and opacity?
That would be awesome, especially for smaller sheets.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions