Merge pull request #92 from TouchInstinct/fix/iuo

Update type of ViewModel
This commit is contained in:
Igor Kislyuk 2017-10-12 17:06:57 +03:00 committed by GitHub
commit e9fbae40b3
3 changed files with 7 additions and 3 deletions

View File

@ -25,4 +25,8 @@
- **[Breaking Change]**: rename initializer from `init(initialFrom:)` to `init(resetFrom:)` in `ResettableType`
- **Add**: `SeparatorCell` with `SeparatorCellViewModel`
- **Add**: `AnyBaseTableRow` for type-erasure
- **Add**: `EmptyCellRow` for empty cell with static height
- **Add**: `EmptyCellRow` for empty cell with static height
## 0.5.12
- **Fix**: Update type of `viewModel` in `ConfigurableController` to `ImplicitlyUwrappedOptional<ViewModelT>` instead of `ViewModelT`

View File

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

@ -26,7 +26,7 @@ public protocol ConfigurableController {
associatedtype ViewModelT
var viewModel: ViewModelT { get }
var viewModel: ViewModelT! { get }
func bindViews()