exyte / fan-menu

Menu with a circular layout based on Macaw
MIT License
728 stars 58 forks source link

Cannot use a single menu item. #49

Closed mtwillet closed 5 years ago

mtwillet commented 5 years ago

When creating a menu with a single item

fanViewButton.items = [FanMenuButton( id: "test", image: UIImage(named: "Hook"), color: Color.clear )]

you get the following error.

Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.

Can you give some guidance on how to set it up to use a single menu option?

shipinev commented 5 years ago

Hi @mtwillet. Thanks for pointing this out. Fix for this issue added to the master branch and will be included in the upcoming release.