From ef0c5fceed0b53a1dc8db3edd58905fd1a8701f6 Mon Sep 17 00:00:00 2001 From: Mark Woollard Date: Fri, 18 Aug 2017 10:36:38 +0100 Subject: [PATCH] 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. --- Pod/Classes/UITableViewVibrantCell.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Pod/Classes/UITableViewVibrantCell.swift b/Pod/Classes/UITableViewVibrantCell.swift index 2c71a71..344f326 100644 --- a/Pod/Classes/UITableViewVibrantCell.swift +++ b/Pod/Classes/UITableViewVibrantCell.swift @@ -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)