8
8
import Foundation
9
9
10
10
extension Hit : Geolocated { }
11
+
12
+ @available ( * , deprecated, message: " Places feature is deprecated " )
11
13
public typealias PlaceHit = Hit < Place >
12
14
15
+ @available ( * , deprecated, message: " Places feature is deprecated " )
13
16
public extension HitsConnector where Hit == PlaceHit {
14
17
15
18
/**
@@ -18,6 +21,7 @@ public extension HitsConnector where Hit == PlaceHit {
18
21
- searcher: Places Searcher that handles your searches
19
22
- interactor: External hits interactor
20
23
*/
24
+ @available ( * , deprecated, message: " Places feature is deprecated " )
21
25
convenience init ( searcher: PlacesSearcher ,
22
26
interactor: HitsInteractor < Hit > ) {
23
27
self . init ( searcher: searcher,
@@ -34,6 +38,7 @@ public extension HitsConnector where Hit == PlaceHit {
34
38
- infiniteScrolling: Whether or not infinite scrolling is enabled
35
39
- showItemsOnEmptyQuery: If false, no results are displayed when the user hasn’t entered any query text
36
40
*/
41
+ @available ( * , deprecated, message: " Places feature is deprecated " )
37
42
convenience init ( placesAppID: ApplicationID ,
38
43
apiKey: APIKey ,
39
44
infiniteScrolling: InfiniteScrolling = Constants . Defaults. infiniteScrolling,
@@ -48,6 +53,7 @@ public extension HitsConnector where Hit == PlaceHit {
48
53
49
54
}
50
55
56
+ @available ( * , deprecated, message: " Places feature is deprecated " )
51
57
public extension HitsConnector where Hit == PlaceHit {
52
58
53
59
/**
@@ -57,6 +63,7 @@ public extension HitsConnector where Hit == PlaceHit {
57
63
- interactor: External hits interactor
58
64
- controller: Controller interfacing with a concrete hits view
59
65
*/
66
+ @available ( * , deprecated, message: " Places feature is deprecated " )
60
67
convenience init < Controller: GeoHitsController > ( searcher: PlacesSearcher ,
61
68
interactor: HitsInteractor < Hit > ,
62
69
controller: Controller ) where Controller. DataSource == HitsInteractor < PlaceHit > {
@@ -76,6 +83,7 @@ public extension HitsConnector where Hit == PlaceHit {
76
83
- showItemsOnEmptyQuery: If false, no results are displayed when the user hasn’t entered any query text
77
84
- controller: Controller interfacing with a concrete hits view
78
85
*/
86
+ @available ( * , deprecated, message: " Places feature is deprecated " )
79
87
convenience init < Controller: GeoHitsController > ( placesAppID: ApplicationID ,
80
88
apiKey: APIKey ,
81
89
infiniteScrolling: InfiniteScrolling = Constants . Defaults. infiniteScrolling,
@@ -96,6 +104,7 @@ public extension HitsConnector where Hit == PlaceHit {
96
104
- controller: Controller interfacing with a concrete hits view
97
105
- Returns: Established connection
98
106
*/
107
+ @available ( * , deprecated, message: " Places feature is deprecated " )
99
108
@discardableResult func connectController< Controller: GeoHitsController > ( _ controller: Controller ) -> HitsInteractor < PlaceHit > . GeoHitsControllerConnection < Controller > where Controller. DataSource == HitsInteractor < PlaceHit > {
100
109
let connection = interactor. connectController ( controller)
101
110
controllerConnections. append ( connection)
0 commit comments