Skip to content

Commit

Permalink
more convenience changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Apr 27, 2018
1 parent 58c67b1 commit bf0af35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Presentables.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Presentables'
s.version = '0.6.4'
s.version = '0.6.5'
s.summary = 'Simple reactive library for managing table views & collection views, written in Swift'

# This description is used to generate tags and improve search results.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ open class PresentableCollectionViewDataManager: NSObject, PresentableManager, U
}
}

var collectionView: UICollectionView?
public var collectionView: UICollectionView?

// MARK: Actions

public func reloadData() {
open func reloadData() {
collectionView?.collectionViewLayout.invalidateLayout()
collectionView?.reloadData()
}

public func reload(section: Int) {
open func reload(section: Int) {
collectionView?.reloadSections([section])
}

public func reload(indexPath: IndexPath) {
open func reload(indexPath: IndexPath) {
collectionView?.reloadItems(at: [indexPath])
}

Expand Down
4 changes: 4 additions & 0 deletions Presentables/Classes/Libs/PresentableSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public class PresentableSection: PresentableSectionMarker, Collection {
_presentables.append(presentable)
}

public func append(contentsOf presentables: [PresentableType]) {
_presentables.append(contentsOf: presentables)
}

public func removeAll() {
_presentables.removeAll()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ open class PresentableTableViewDataManager: NSObject, PresentableManager, UITabl
}
}

var tableView: UITableView?
public var tableView: UITableView?

// MARK: Actions

Expand Down

0 comments on commit bf0af35

Please sign in to comment.