Nightonke / VHBoomMenuButton

A menu which can ... BOOM! - iOS
MIT License
582 stars 112 forks source link

IBInspectable error #15

Open Isuru-Nanayakkara opened 6 years ago

Isuru-Nanayakkara commented 6 years ago

I installed the library using CocoaPods. Here is my Podfile.

platform :ios, '9.0'

target 'BMBDemo' do
  use_frameworks!

  pod 'VHBoomMenuButton/Swift', '2.0.0'

end

It installs the project successfully but when I build it in Xcode 9.1, it fails with the following compile error.

/Users/Admin/Developer/Xcode Projects/Swift/BMBDemo/Pods/VHBoomMenuButton/VHBoomMenuButtonSwift/BoomMenuButton/BoomMenuButton.swift:536:31: Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C

Here is a demo project demonstrating the issue.

stephysama3000 commented 6 years ago

I'm having the same problem, can someone help us? :C

aclaussen1 commented 6 years ago

I just removed @IBInspectable keyword from where that error appeared (it was twice for me). This will require you to unlock the VHBoomMenuButton library so you can make changes.