diff --git a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift index a74d00e7..59742c63 100644 --- a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift +++ b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift @@ -24,7 +24,7 @@ import RxSwift /// Data loading model for PaginationDataLoadingState with ResettableRxDataSourceCursor as data source. public final class PaginationDataLoadingModel: - RxDataLoadingModel> { +RxDataLoadingModel> { private enum LoadType { diff --git a/Sources/Classes/Search/BaseSearchViewController.swift b/Sources/Classes/Search/BaseSearchViewController.swift index 2e170cc1..ce84d686 100644 --- a/Sources/Classes/Search/BaseSearchViewController.swift +++ b/Sources/Classes/Search/BaseSearchViewController.swift @@ -27,7 +27,7 @@ import UIKit public typealias SearchResultsController = UIViewController & SearchResultsViewController /// Class that allows to enter text for search and then displays search results in table view -open class BaseSearchViewController: BaseCustomViewController diff --git a/Sources/Classes/Views/CustomizableButton/CustomizableButtonView.swift b/Sources/Classes/Views/CustomizableButton/CustomizableButtonView.swift index 7c0b1e8e..7eb614ea 100644 --- a/Sources/Classes/Views/CustomizableButton/CustomizableButtonView.swift +++ b/Sources/Classes/Views/CustomizableButton/CustomizableButtonView.swift @@ -139,7 +139,7 @@ open class CustomizableButtonView: UIView, InitializableView { private func set(active: Bool) { button.isEnabled = buttonIsDisabledWhileLoading || !active - + if hidesLabelWhenLoading { button.titleLabel?.layer.opacity = active ? 0 : 1 } @@ -186,6 +186,7 @@ open class CustomizableButtonView: UIView, InitializableView { spinnerView.centerXAnchor.constraint(equalTo: button.centerXAnchor), spinnerView.centerYAnchor.constraint(equalTo: button.centerYAnchor) ] + case .leftToText(let offset): if let buttonLabel = button.titleLabel { constraints = [ @@ -193,6 +194,7 @@ open class CustomizableButtonView: UIView, InitializableView { spinnerView.trailingAnchor.constraint(equalTo: buttonLabel.leadingAnchor, constant: -offset) ] } + case .rightToText(let offset): if let buttonLabel = button.titleLabel { constraints = [ @@ -248,7 +250,7 @@ private extension UIView { leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: offset.left), trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: offset.right), topAnchor.constraint(equalTo: view.topAnchor, constant: offset.top), - bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: offset.bottom), + bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: offset.bottom) ] NSLayoutConstraint.activate(constraints) } @@ -329,7 +331,6 @@ public extension CustomizableButtonView { self.numberOfLines = numberOfLines } - } enum SpinnerPosition { diff --git a/Sources/Extensions/UIKit/UIViewController/UIViewController+PresentFullScreen.swift b/Sources/Extensions/UIKit/UIViewController/UIViewController+PresentFullScreen.swift index 5f048b8a..61ea76da 100644 --- a/Sources/Extensions/UIKit/UIViewController/UIViewController+PresentFullScreen.swift +++ b/Sources/Extensions/UIKit/UIViewController/UIViewController+PresentFullScreen.swift @@ -1,4 +1,4 @@ -import UIkit +import UIKit public extension UIViewController {