Skip to content

Commit

Permalink
Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
JunsW committed Aug 16, 2018
1 parent 5043da6 commit 3c1a025
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Binary file not shown.
10 changes: 5 additions & 5 deletions Examples/SKSearchController/Source/SKSearchController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

class SKSearchController: UISearchController {
public class SKSearchController: UISearchController {


// MARK: - Private properties 私有属性
Expand Down Expand Up @@ -217,8 +217,8 @@ class SKSearchController: UISearchController {
// MARK: - SearchBar Delegate Methods 代理事件闭包
private var searchBarEventsCenter = SKSearchEventsCenter()

typealias EmptySearchBarHandler = (UISearchBar)->()
typealias BoolSearchBarHandler = (UISearchBar)->(Bool)
public typealias EmptySearchBarHandler = (UISearchBar)->()
public typealias BoolSearchBarHandler = (UISearchBar)->(Bool)

public var searchButtonClickHandler: EmptySearchBarHandler? {
willSet {
Expand Down Expand Up @@ -339,11 +339,11 @@ class SKSearchController: UISearchController {
searchBar.delegate = searchBarEventsCenter
}

required init?(coder aDecoder: NSCoder) {
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidAppear(_ animated: Bool) {
override public func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
}
}
Expand Down
10 changes: 5 additions & 5 deletions Source/SKSearchController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

class SKSearchController: UISearchController {
public class SKSearchController: UISearchController {


// MARK: - Private properties 私有属性
Expand Down Expand Up @@ -217,8 +217,8 @@ class SKSearchController: UISearchController {
// MARK: - SearchBar Delegate Methods 代理事件闭包
private var searchBarEventsCenter = SKSearchEventsCenter()

typealias EmptySearchBarHandler = (UISearchBar)->()
typealias BoolSearchBarHandler = (UISearchBar)->(Bool)
public typealias EmptySearchBarHandler = (UISearchBar)->()
public typealias BoolSearchBarHandler = (UISearchBar)->(Bool)

public var searchButtonClickHandler: EmptySearchBarHandler? {
willSet {
Expand Down Expand Up @@ -339,11 +339,11 @@ class SKSearchController: UISearchController {
searchBar.delegate = searchBarEventsCenter
}

required init?(coder aDecoder: NSCoder) {
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidAppear(_ animated: Bool) {
override public func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
}
}
Expand Down

0 comments on commit 3c1a025

Please sign in to comment.