qmathe / DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift
Other
302 stars 38 forks source link

Inheritance is forbidden #12

Closed gerchicov-bp closed 5 years ago

gerchicov-bp commented 7 years ago
required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

wtf? I want to create a cell with xib file but I can't because of this useless code

qmathe commented 7 years ago

Hi,

I didn't implement coding support because I had no need for it and nobody requested it until now. If you have implemented it, you can send me a pull request and I'll merge it.

Otherwise I'll add it to my to-do list and let you know once it's supported.

gerchicov-bp commented 7 years ago

The problem is your library involves custom cells. But by using of this code you forbid them

qmathe commented 7 years ago

Would be nice to have I agree. I'll try to implement it soon.

qmathe commented 5 years ago

I implemented basic decoding for DropDownMenu and DropDownMenuCell, see 36d5956fd292f5f897ced6dede961885e7cf785d. This will be included in the next release.