Add ButtonHolderView conformance

This commit is contained in:
Vlad 2020-08-07 14:36:24 +03:00
parent a524ff7855
commit 0f5a0d165c
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
### 0.9.34
- **Add**: `ButtonHolder` - protocol that contains button property.
- **Add**: `ButtonHolderView` - view which contains button.
- **Add**: Conformance `UIButton` to `ButtonHolderView`.
- **Add**: Conformance `UIButton` to `ButtonHolder`.
- **Add**: Conformance `BasePlaceholderView` to `ButtonHolderView`.
- **[Breaking change]**: Replace functions `footerRetryButton() -> UIButton?` to `footerRetryView() -> ButtonHolderView?` and `footerRetryButtonHeight() -> CGFloat` to `footerRetryViewHeight() -> CGFloat` for `PaginationWrapperUIDelegate`.
- **[Breaking change]**: Replace functions `footerRetryButtonWillAppear()` to `footerRetryViewWillAppear()` and `footerRetryButtonWillDisappear()` to `footerRetryViewWillDisappear()` for `PaginationWrapperUIDelegate`.

View File

@ -24,7 +24,7 @@ import UIKit
/// Layoutless placeholder view. This class is used as views holder & configurator.
/// You should inherit it and implement layout.
open class BasePlaceholderView: UIView, InitializableView {
open class BasePlaceholderView: ButtonHolderView, InitializableView {
/// Title label of placeholder view.
public let titleLabel = UILabel()