Merge pull request #225 from TouchInstinct/feature/add_@discardableResult_to_replace_section

[Add] @discardable result to replace section
This commit is contained in:
Loupehope 2020-04-15 15:55:54 +03:00 committed by GitHub
commit dc102b1f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.9.31
- **Add**: `@discardableResult` to function - `replace(with:at:with:manualBeginEndUpdates)` in `TableDirector`.
### 0.9.30
- **Add**: character `*` into a valid set of characters in the extension `telpromptURL` of String.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.9.30"
s.version = "0.9.31"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -230,6 +230,7 @@ public extension TableDirector {
/// - animation: The type of replace animation
/// - manualBeginEndUpdates: Don't call beginUpdates() & endUpdates() inside.
/// - Returns: self
@discardableResult
func replace(with section: TableSection,
at index: Int,
with animation: UITableView.RowAnimation,