Add missing designated initialiser to UITableViewVibrantCell

So cell can be registered with UITableView without subclassing for simple use cases. Without this initialiser dequeuing instance of the cell will cause a crash.
This commit is contained in:
Mark Woollard
2017-08-18 10:36:38 +01:00
parent 6b9607fc9a
commit ef0c5fceed
+4
View File
@@ -14,6 +14,10 @@ open class UITableViewVibrantCell: UITableViewCell {
fileprivate var vibrancySelectedBackgroundView:UIVisualEffectView = UIVisualEffectView()
fileprivate var defaultSelectedBackgroundView:UIView?
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)