File tree Expand file tree Collapse file tree
Sources/UIKeyCommandTableView Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments