Search code examples
iosswiftfloating-action-button

Background screen greyed out while using ActionButton


I am using the third-party ActionButton to display a floating button in my Swift project. But when I click on that floating button(on the 'plus' sign), the main screen on which that floating button is loaded gets greyed out. It again becomes visible only after we have tapped again on the floating button (i.e. on the 'cross' button).

I don't want the background screen on which the floating button is loaded to be greyed out while I tap on the floating button and I want it to remain as it is. Any help will be appreciated.


Solution

  • Just Enter Inside

    ActionButton.swift

    and comment this line, this blurVisualEffect added to contentView

     self.contentView.addSubview(self.blurVisualEffect)
    

    at this method

    public init(attachedToView view: UIView, items: [ActionButtonItem]?) {}