From 2cd953542e1bbb71f08fb81fc909e3d7f51fd2ae Mon Sep 17 00:00:00 2001 From: Daniele Margutti Date: Sun, 15 Sep 2019 10:28:04 +0200 Subject: [PATCH] #18 TableCellAdapter.element is not optional anymore --- Sources/Table/Cell Adapters/TableCellAdapter+Events.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Table/Cell Adapters/TableCellAdapter+Events.swift b/Sources/Table/Cell Adapters/TableCellAdapter+Events.swift index a23d466..c2438c2 100644 --- a/Sources/Table/Cell Adapters/TableCellAdapter+Events.swift +++ b/Sources/Table/Cell Adapters/TableCellAdapter+Events.swift @@ -51,14 +51,14 @@ public extension TableCellAdapter { public let indexPath: IndexPath? // Target element of the event. - public let element: Model? + public let element: Model // Target static typed cell if available. // This value maybe `nil` if, at the time of the request, no cell is contextually associable with the event. public var cell: Cell? internal init(item: Any? = nil, cell: Any? = nil, indexPath: IndexPath? = nil) { - self.element = item as? Model + self.element = item as! Model self.cell = cell as? Cell self.indexPath = indexPath }