Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
iwb-kevin-hirsch committed Oct 8, 2018
1 parent a8767b8 commit 5f14791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DropDown/src/DropDown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ extension DropDown {
}

/// (Pre)selects a row at a certain index.
public func selectRow(at index: Index?, scrollPosition: UITableViewScrollPosition = .none) {
public func selectRow(at index: Index?, scrollPosition: UITableView.ScrollPosition = .none) {
if let index = index {
tableView.selectRow(
at: IndexPath(row: index, section: 0), animated: true, scrollPosition: scrollPosition
Expand Down Expand Up @@ -988,7 +988,7 @@ extension DropDown {
}

//MARK: Objective-C methods for converting the Swift type Index
@objc public func selectRow(_ index: Int, scrollPosition: UITableViewScrollPosition = .none) {
@objc public func selectRow(_ index: Int, scrollPosition: UITableView.ScrollPosition = .none) {
self.selectRow(at:Index(index), scrollPosition: scrollPosition)
}

Expand Down

0 comments on commit 5f14791

Please sign in to comment.