Skip to content

Commit

Permalink
Merge pull request #48 from wimzee-rcheng/patch-1
Browse files Browse the repository at this point in the history
Update SplitRow to accommodate validation
  • Loading branch information
marbetschar authored Apr 22, 2021
2 parents b60b6ab + 6cf9a50 commit 0787154
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SplitRow/SplitRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ open class _SplitRow<L: RowType, R: RowType>: Row<SplitRowCell<L,R>> where L: Ba
}
}

open override func validate(quietly: Bool = false) -> [ValidationError] {
var errors = rowLeft?.validate(quietly: quietly) ?? []
errors.append(contentsOf: rowRight?.validate(quietly: quietly) ?? [])
return errors
}

open override func updateCell(){
super.updateCell()

Expand Down

0 comments on commit 0787154

Please sign in to comment.