Skip to content

Commit fdaf870

Browse files
committed
Change access level on methods
1 parent 8cd22bc commit fdaf870

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/UIKeyCommandTableView/UIKeyCommandTableView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public class UIKeyCommandTableView: UITableView {
9595
return keyCommands
9696
}
9797

98-
var totalNumberOfRows: Int {
98+
public var totalNumberOfRows: Int {
9999
(0 ..< numberOfSections).map { numberOfRows(inSection: $0) }.reduce(0, +)
100100
}
101101

102-
var indexPathForLastRowInLastSection: IndexPath {
102+
public var indexPathForLastRowInLastSection: IndexPath {
103103
let lastSection = numberOfSections - 1
104104
let lastRow = numberOfRows(inSection: lastSection) - 1
105105

@@ -108,7 +108,7 @@ public class UIKeyCommandTableView: UITableView {
108108

109109
/// Tries to select and scroll to the row at the given index in section 0.
110110
/// Does not require the index to be in bounds. Does nothing if out of bounds.
111-
func selectRowIfPossible(at indexPath: IndexPath?) {
111+
public func selectRowIfPossible(at indexPath: IndexPath?) {
112112
guard let indexPath = indexPath else {
113113
return
114114
}

0 commit comments

Comments
 (0)