Skip to content

Commit

Permalink
providing selected computed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vberihuete committed Oct 9, 2018
1 parent 90a772f commit 94709b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DCFilterView/Classes/DCFilterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ public class DCFilterView: UIStackView {
delegate?.dcFilterView(selected: number)
}

public var selected: Int{
return selectedIndex
}

public var selectedFilterViewItem: DCFilterViewItem?{
return selectedItem
}
}

extension DCFilterView: DCFilterViewItemDelegate{
Expand Down

0 comments on commit 94709b4

Please sign in to comment.