Make CollectionItem non-generic
danielsaidi opened this issue · comments
That CollectionItem
is generic makes it hard to decouple MenuItem
from ActionSheetItemCell
, since you can't type cast (e.g. if let item as? CollectionItem
doesn't work with generic types) and can't use overridable @objc
extensions. Imo, it also makes it harder to understand the class.
I will investigate if this item type could be made non-generic instead.
I have managed to make this item type non-generic. It can be tested in the 3.0.0-beta branch.