cocoapod - Circle Menu - Swift - How to interact with it

818 Views Asked by At

I found this awesome looking cocoapod

or

but for the life of me i can't figure out how to interact with it. i think I'm getting confused with the delegate. many get any of the functions to return an index or anything.

func circleMenu(_ circleMenu: CircleMenu, buttonWillSelected button: UIButton, atIndex: Int) {
    print("button will selected: \(atIndex)")
  }

doesn't actually return anything.

thanks for the help.

1

There are 1 best solutions below

0
On

I think you forgot to set the delegate to your button in story board, or programatically "button.delegate = self". This will work without problems

enter image description here enter image description here