Skip to content

Commit

Permalink
Merge pull request #91 from iZettle/table-section-count
Browse files Browse the repository at this point in the history
[Performance] `TableSection.count`
  • Loading branch information
mansbernhardt authored Feb 25, 2019
2 parents c78d248 + c3ccf73 commit 5a514de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Form/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.6.2</string>
<string>1.6.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
1 change: 1 addition & 0 deletions Form/Table.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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] }
Expand Down
2 changes: 1 addition & 1 deletion FormFramework.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5a514de

Please sign in to comment.