From 3884f855f99a661a7e2b47190fea7f9eab66be7f Mon Sep 17 00:00:00 2001 From: Ondrej Rafaj Date: Fri, 27 Apr 2018 16:31:54 +0100 Subject: [PATCH] section convenience --- Presentables.podspec | 2 +- Presentables/Classes/Libs/PresentableSection.swift | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Presentables.podspec b/Presentables.podspec index e446166..3a6ca42 100644 --- a/Presentables.podspec +++ b/Presentables.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Presentables' - s.version = '0.6.5' + s.version = '0.6.6' 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. diff --git a/Presentables/Classes/Libs/PresentableSection.swift b/Presentables/Classes/Libs/PresentableSection.swift index 3ae060d..5e4fcb2 100644 --- a/Presentables/Classes/Libs/PresentableSection.swift +++ b/Presentables/Classes/Libs/PresentableSection.swift @@ -114,6 +114,10 @@ public class PresentableSection: PresentableSectionMarker, Collection { _presentables.append(contentsOf: presentables) } + public func set(_ presentables: [PresentableType]) { + _presentables = presentables + } + public func removeAll() { _presentables.removeAll() }