Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Keeeeen committed Aug 30, 2018
1 parent ae6f37f commit cb98616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example/Example/Source/View/Model/CustomCellModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
class CustomCellModel: CellModel {
let title: String

init(title: String, selectionHandler: @escaping (Cell) -> ()) {
init(title: String, selectionHandler: @escaping (Cell) -> Void) {
self.title = title

super.init(cell: CustomCell.self, selectionHandler: selectionHandler)
Expand Down
4 changes: 2 additions & 2 deletions Hakuba/Source/Cell/CellModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ open class CellModel {

open let reuseIdentifier: String
open var height: CGFloat
open var selectionHandler: ((Cell) -> ())?
open var selectionHandler: ((Cell) -> Void)?

open internal(set) var indexPath: IndexPath = .init(row: 0, section: 0)
open var editable = false
open var editingStyle: UITableViewCellEditingStyle = .none
open var shouldHighlight = true

public init<T: Cell & CellType>(cell: T.Type, height: CGFloat = UITableViewAutomaticDimension, selectionHandler: ((Cell) -> ())? = nil) {
public init<T: Cell & CellType>(cell: T.Type, height: CGFloat = UITableViewAutomaticDimension, selectionHandler: ((Cell) -> Void)? = nil) {
self.reuseIdentifier = cell.reuseIdentifier
self.height = height
self.selectionHandler = selectionHandler
Expand Down

0 comments on commit cb98616

Please sign in to comment.