Issues resolved

This commit is contained in:
Artur 2019-03-05 15:18:21 +03:00
parent 8cb1771e5d
commit 5970fd2f69
2 changed files with 4 additions and 19 deletions

View File

@ -3012,7 +3012,7 @@
67186B3A1EB248F100CFAFFB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
@ -3042,7 +3042,7 @@
67186B3B1EB248F100CFAFFB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;

View File

@ -119,14 +119,7 @@ where ViewModel: BaseSearchViewModel<Item, ItemViewModel> {
}
open var statusBarView: UIView {
let statusBarSize = UIApplication.shared.statusBarFrame.size
let statusBarView = UIView(frame: CGRect(x: 0,
y: 0,
width: statusBarSize.width,
height: statusBarSize.height))
statusBarView.backgroundColor = statusBarColor
return statusBarView
return UIView()
}
open var statusBarColor: UIColor {
@ -177,16 +170,8 @@ where ViewModel: BaseSearchViewModel<Item, ItemViewModel> {
searchResultsController.searchResultsView.tableView.contentInset = tableViewInsets
searchResultsController.searchResultsView.tableView.scrollIndicatorInsets = tableViewInsets
}
}
extension BaseSearchViewController {
open var tableViewInsets: UIEdgeInsets {
let searchBarHeight = searchController.searchBar.frame.height
let statusBarHeight = UIApplication.shared.statusBarFrame.height
return UIEdgeInsets(top: searchBarHeight + statusBarHeight,
left: 0,
bottom: 0,
right: 0)
return .zero
}
}