File tree Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct RealSystemEventsHandler: SystemEventsHandler {
24
24
let deepLinksHandler : DeepLinksHandler
25
25
let pushNotificationsHandler : PushNotificationsHandler
26
26
let pushTokenWebRepository : PushTokenWebRepository
27
- private var cancelBag = CancelBag ( )
27
+ private let cancelBag = CancelBag ( )
28
28
29
29
init ( container: DIContainer ,
30
30
deepLinksHandler: DeepLinksHandler ,
Original file line number Diff line number Diff line change 9
9
import SwiftUI
10
10
11
11
struct DetailRow : View {
12
- let leftLabel : Text
13
- let rightLabel : Text
12
+ private let leftLabel : Text
13
+ private let rightLabel : Text
14
14
15
15
init ( leftLabel: Text , rightLabel: Text ) {
16
16
self . leftLabel = leftLabel
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Combine
11
11
12
12
struct ImageView : View {
13
13
14
- let imageURL : URL
14
+ private let imageURL : URL
15
15
@Environment ( \. injected) var injected : DIContainer
16
16
@State private var image : Loadable < UIImage >
17
17
let inspection = Inspection < Self > ( )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ struct SearchBar: UIViewRepresentable {
31
31
extension SearchBar {
32
32
final class Coordinator : NSObject , UISearchBarDelegate {
33
33
34
- let text : Binding < String >
34
+ private let text : Binding < String >
35
35
36
36
init ( text: Binding < String > ) {
37
37
self . text = text
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct ContentView: View {
32
32
}
33
33
}
34
34
35
- var onChangeHandler : ( EnvironmentValues . Diff ) -> Void {
35
+ private var onChangeHandler : ( EnvironmentValues . Diff ) -> Void {
36
36
return { diff in
37
37
if !diff. isDisjoint ( with: [ . locale, . sizeCategory] ) {
38
38
self . container. appState [ \. routing] = AppState . ViewRouting ( )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ struct CountriesList: View {
22
22
@Environment ( \. locale) private var locale : Locale
23
23
private let localeContainer = LocaleReader . Container ( )
24
24
25
- let inspection = Inspection < Self > ( )
25
+ private let inspection = Inspection < Self > ( )
26
26
27
27
init ( countries: Loadable < LazyList < Country > > = . notRequested) {
28
28
self . _countries = . init( initialValue: countries)
@@ -199,15 +199,15 @@ extension CountriesList {
199
199
200
200
private extension CountriesList {
201
201
202
- var routingUpdate : AnyPublisher < Routing , Never > {
202
+ private var routingUpdate : AnyPublisher < Routing , Never > {
203
203
injected. appState. updates ( for: \. routing. countriesList)
204
204
}
205
205
206
- var keyboardHeightUpdate : AnyPublisher < CGFloat , Never > {
206
+ private var keyboardHeightUpdate : AnyPublisher < CGFloat , Never > {
207
207
injected. appState. updates ( for: \. system. keyboardHeight)
208
208
}
209
209
210
- var canRequestPushPermissionUpdate : AnyPublisher < Bool , Never > {
210
+ private var canRequestPushPermissionUpdate : AnyPublisher < Bool , Never > {
211
211
injected. appState. updates ( for: AppState . permissionKeyPath ( for: . pushNotifications) )
212
212
. map { $0 == . notRequested || $0 == . denied }
213
213
. eraseToAnyPublisher ( )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Combine
11
11
12
12
struct CountryDetails : View {
13
13
14
- let country : Country
14
+ private let country : Country
15
15
16
16
@Environment ( \. locale) var locale : Locale
17
17
@Environment ( \. injected) private var injected : DIContainer
@@ -20,7 +20,7 @@ struct CountryDetails: View {
20
20
private var routingBinding : Binding < Routing > {
21
21
$routingState. dispatched ( to: injected. appState, \. routing. countryDetails)
22
22
}
23
- let inspection = Inspection < Self > ( )
23
+ private let inspection = Inspection < Self > ( )
24
24
25
25
init ( country: Country , details: Loadable < Country . Details > = . notRequested) {
26
26
self . country = country
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ struct LazyList<T> {
13
13
typealias Access = ( Int ) throws -> T ?
14
14
private let access : Access
15
15
private let useCache : Bool
16
- private var cache = Cache ( )
16
+ private let cache = Cache ( )
17
17
18
18
let count : Int
19
19
You can’t perform that action at this time.
0 commit comments