Closed CivelXu closed 3 years ago
containingPopupBar.subviews.forEach {
if $0.isKind(of: UIVisualEffectView.self) {
$0.isHidden = true
}
}
I can do it this way, but it's not very friendly.
What happens if you use the new appearance API to configure the bar appearance to be opaque and set the background color in the appearance to clear?
I try to used this api in demo project in ManualLayoutCustomBarViewController.swift viewDidLoad
let appearance = LNPopupBarAppearance()
appearance.configureWithTransparentBackground()
containingPopupBar.standardAppearance = appearance
I expect there will be a transparent bar, but nothing happened.
I just opened ManualLayoutCustomBarViewController.swift and added the following code to viewDidLoad()
:
override func viewDidLoad() {
super.viewDidLoad()
let appearance = LNPopupBarAppearance()
appearance.configureWithTransparentBackground()
containingPopupBar.standardAppearance = appearance
centeredButton.setTitle("Centered", for: .normal)
...
And it works as expected:
Notice the labels at the bottom sit on top of a transparent bar.
Also behaves correctly in the second example:
I create a CustomBarView extend LNPopupCustomBarViewController class, I want remove hairline、blur effect any views inherit form super.
How can I achieve it
I find related issues from https://github.com/LeoNatan/LNPopupController/issues/294
Use this api does not work