removed
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
45780bd898
commit
d6998092ed
@ -11,12 +11,8 @@ import VDSColorTokens
|
||||
import VDSFormControlsTokens
|
||||
import Combine
|
||||
|
||||
public protocol Refreshablable {
|
||||
var onRefresh: (()->Void)? { get set }
|
||||
}
|
||||
|
||||
@objc(VDSButtonGroup)
|
||||
open class ButtonGroup: View, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UICollectionViewDelegate, ButtongGroupPositionLayoutDelegate, Refreshablable {
|
||||
open class ButtonGroup: View, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UICollectionViewDelegate, ButtongGroupPositionLayoutDelegate {
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
@ -158,12 +154,9 @@ open class ButtonGroup: View, UICollectionViewDataSource, UICollectionViewDelega
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self else { return }
|
||||
self.collectionView.collectionViewLayout.invalidateLayout()
|
||||
self.onRefresh?()
|
||||
}
|
||||
}
|
||||
|
||||
open var onRefresh: (() -> Void)?
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - UICollectionViewDataSource
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user