Skip to content

Commit

Permalink
Fix compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Apr 26, 2017
1 parent 606e2ae commit c1a6ce1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/KeyboardAwareInputViewProtocol.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if os(iOS) || os(tvOS)
import UIKit

/*
Expand Down Expand Up @@ -119,3 +120,4 @@ open class KeyboardAwareInputAccessoryView: UIView {
self.layoutIfNeeded()
}
}
#endif
4 changes: 3 additions & 1 deletion Sources/SearchableCollectionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ open class SearchableCollectionController: SweetCollectionController {
open lazy var searchController: UISearchController = {
let controller = UISearchController(searchResultsController: nil)
controller.hidesNavigationBarDuringPresentation = true
controller.dimsBackgroundDuringPresentation = false
#if os(iOS)
controller.dimsBackgroundDuringPresentation = false
#endif

controller.searchBar.autoresizingMask = [.flexibleWidth]
controller.delegate = self
Expand Down

0 comments on commit c1a6ce1

Please sign in to comment.