From 857c747bfab9546ec61f7bdaefe59f0ff413b81c Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Fri, 14 Sep 2018 17:44:01 +0300 Subject: [PATCH 1/2] Change: NumberFormattingService.computedFormatters computed var reverted to static. --- CHANGELOG.md | 4 ++++ .../NumberFormattingService+DefaultImplementation.swift | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index baffebe5..a05edf7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Sources/Extensions/NumberFormattingService/NumberFormattingService+DefaultImplementation.swift b/Sources/Extensions/NumberFormattingService/NumberFormattingService+DefaultImplementation.swift index c27fa1ec..3fe14b35 100644 --- a/Sources/Extensions/NumberFormattingService/NumberFormattingService+DefaultImplementation.swift +++ b/Sources/Extensions/NumberFormattingService/NumberFormattingService+DefaultImplementation.swift @@ -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) }) } From e0d13abe6c5d2ece6cc4227f1a1dfcbac0067b3a Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Fri, 14 Sep 2018 17:57:56 +0300 Subject: [PATCH 2/2] update podspec version --- LeadKit.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeadKit.podspec b/LeadKit.podspec index 33079fae..244a3671 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -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"