Merge pull request #162 from TouchInstinct/fix/number_formatting_fix

NumberFormattingService.computedFormatters computed var reverted to static.
This commit is contained in:
Ivan Smolin 2018-09-14 18:13:54 +03:00 committed by GitHub
commit 48dd620542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
# Changelog
### 0.8.11
- **Change**: `NumberFormattingService.computedFormatters` computed var reverted to static.
### 0.8.10
- **[Breaking change]**: `NumberFormattingService` methods is not static anymore.
- **Add**: `NSNumberConvertible` protocol for `NumberFormattingService` use cases.
- **Add**: `TableDirector` methods for rows insertion and removal without reload a whole table.
- **Add**: `UIImageView` binder for disclosure indicator rotation.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.8.10"
s.version = "0.8.11"
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

@ -25,7 +25,7 @@ import Foundation
public extension NumberFormattingService {
/// Computed static property. Use only once for `formatters` field implementation!
var computedFormatters: [NumberFormatType: NumberFormatter] {
static var computedFormatters: [NumberFormatType: NumberFormatter] {
return Dictionary(uniqueKeysWithValues: NumberFormatType.allOptions.map { ($0, $0.numberFormatter) })
}