diff --git a/Sources/TableRowAction.swift b/Sources/TableRowAction.swift index ad92bb4..40760cb 100644 --- a/Sources/TableRowAction.swift +++ b/Sources/TableRowAction.swift @@ -65,6 +65,12 @@ open class TableRowAction where CellType: UITableVie self.handler = .voidAction(handler) } + public init(_ key: String, handler: @escaping (_ options: TableRowActionOptions) -> Void) { + + self.type = .custom(key) + self.handler = .voidAction(handler) + } + public init(_ type: TableRowActionType, handler: @escaping (_ options: TableRowActionOptions) -> T) { self.type = type