diff --git a/CHANGELOG.md b/CHANGELOG.md index d40c34c8..4c16c481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Changelog +### 0.9.22 +- **Fix**: Make `Initializable` protocol public. + ### 0.9.21 -- **Add**: `Initializable` protocol for initializing an array of instances. +- **Add**: `Initializable` protocol and its extension to initialize an array of instances. ### 0.9.20 - **Fix**: `bindBottomInsetBinding(from bottomInsetDriver:)` in `BaseScrollContentController` works correctly now. diff --git a/LeadKit.podspec b/LeadKit.podspec index 2505d79a..d982d83c 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.9.21" + s.version = "0.9.22" 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" diff --git a/Sources/Protocols/Initializable.swift b/Sources/Protocols/Initializable.swift index a0d1495f..2fed1332 100644 --- a/Sources/Protocols/Initializable.swift +++ b/Sources/Protocols/Initializable.swift @@ -22,11 +22,11 @@ import Foundation -/// Protocol for initializing an array of instances -protocol Initializable { +public protocol Initializable { init() } +/// Extension for initializing an array of instances extension Initializable { static func instantiateArray(count: Int) -> [Self] {