You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented BMB successfully in my app. What I'd like to do is capture the clicked button's frame as the origination for an animated view controller transition.
I've implemented BoomDelegate.
func boomMenuButton(_ bmb: BoomMenuButton, didClickBoomButtonOfBuilder builder: BoomButtonBuilder, at index: Int) {
loggingPrint(bmb.frame)
loggingPrint(builder.imageFrame)
let rect = builder.imageFrame
let currentRect = convert(rect, to: bmb.superview)
loggingPrint(currentRect)
}
}
This delegate method returns the following in the console:
I wound up temporarily solving this situation by exposing BoomMenuButton property "endPositions" by changing private keyword to public. The code below wound up working for me:
I've implemented BMB successfully in my app. What I'd like to do is capture the clicked button's frame as the origination for an animated view controller transition.
I've implemented BoomDelegate.
This delegate method returns the following in the console:
HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[315]: (317.0, 8.0, 50.0, 50.0)
HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[316]: (10.0, 10.0, 30.0, 30.0)
HeaderView.swift boomMenuButton(_:didClickBoomButtonOfBuilder:at:)[317]: (10.0, 10.0, 30.0, 30.0)
This return is not giving me anything useful. Any help would be appreciated. Thank you.
The text was updated successfully, but these errors were encountered: