Skip to content

Commit

Permalink
#18 TableCellAdapter.element is not optional anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Sep 15, 2019
1 parent 3f98abf commit 2cd9535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Table/Cell Adapters/TableCellAdapter+Events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2cd9535

Please sign in to comment.