Nightonke / VHBoomMenuButton

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

Error Xcode9:Swift4 using pod:@IBInspectable because its type cannot be #17

Open jigs777 opened 6 years ago

jigs777 commented 6 years ago

BoomMenuButton.swift:58:31: Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C

moonlsd commented 6 years ago

Same issue here, any news? @Nightonke

jigs777 commented 6 years ago

@moonlsd i removed library and using below line of code to tableview. let cells = tableview.visibleCells let tableHeight: CGFloat = tableview.bounds.size.height

    for i in cells {
        let cell: UITableViewCell = i as UITableViewCell
        cell.transform = CGAffineTransform(translationX: 0, y: -tableHeight)
    }

    var index = 0

    for a in cells {
        let cell: UITableViewCell = a as UITableViewCell
        UIView.animate(withDuration: 1.0, delay: 0.05 * Double(index), usingSpringWithDamping: 0.5, initialSpringVelocity: 0, animations: {
            cell.transform = CGAffineTransform(translationX: 0, y: 0);
        }, completion: nil)

        index += 1
    }
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.