From 66ac0e0f0deff2ff3689d1389e126a156ebb471d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=CC=8Ans=20Bernhardt?= Date: Mon, 25 Feb 2019 13:29:18 +0100 Subject: [PATCH 1/2] Performace. Added custom `count` implementation for `TableSection` to improve performance of e.g. `Table.isValidIndex` that might be called a lot for large tables. --- Form/Table.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Form/Table.swift b/Form/Table.swift index 96af21e..1c78bd8 100644 --- a/Form/Table.swift +++ b/Form/Table.swift @@ -215,6 +215,7 @@ extension TableSection: MutableCollection { public var startIndex: Index { return 0 } public var endIndex: Index { return slice.count } + public var count: Int { return slice.count } public subscript (position: Index) -> Row { get { return slice[slice.startIndex + position] } From c3ccf73aae14251ac422357a53b1931181c8db18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=CC=8Ans=20Bernhardt?= Date: Mon, 25 Feb 2019 13:29:36 +0100 Subject: [PATCH 2/2] Bumped version to 1.6.3 --- CHANGELOG.md | 3 +++ Form/Info.plist | 2 +- FormFramework.podspec | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da8d75..aafb27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.6.3 +- Performace. Added custom `count` implementation for `TableSection` to improve performance of e.g. `Table.isValidIndex` that might be called a lot for large tables. + ## 1.6.2 - Bugfix: Setting `table` direclty on `TableKit` or `CollectionKit` did not reload the view correctly with the updated table. diff --git a/Form/Info.plist b/Form/Info.plist index f802798..2bd8f0d 100644 --- a/Form/Info.plist +++ b/Form/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.6.2 + 1.6.3 CFBundleSignature ???? CFBundleVersion diff --git a/FormFramework.podspec b/FormFramework.podspec index 340f492..7cc2414 100644 --- a/FormFramework.podspec +++ b/FormFramework.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "FormFramework" - s.version = "1.6.2" + s.version = "1.6.3" s.module_name = "Form" s.summary = "Powerful iOS layout and styling" s.description = <<-DESC