Skip to content

How to change Handler image when we click on it #8

@krutitrivedi

Description

@krutitrivedi

hello, I want to change background of handler when we click on it i tried this way but not working can you please help me out and also i want transparent background when we click on handler also please guid me on how to achieve that functionality.

func floatingView(floatingView: HHFloatingView, didTapHandler isOpening: Bool) {
       let configure = HHFloatingViewConfiguration()
       if isOpening == true {
           configure.handlerImage = #imageLiteral(resourceName: "closeFloting")
           configure.handlerColor = UIColor.white
           
       }
       else {
           
          configure.handlerImage = #imageLiteral(resourceName: "FloatingButton")
          configure.handlerColor = UIColor(red: 47/255.0, green: 89/255.0, blue: 246/255.0, alpha: 
       }
   }

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions