Skip to content

Commit 5a20acb

Browse files
author
Alexey Naumov
committed
Merge branch 'quokkaKyu-master'
2 parents 62be15e + 7f165d2 commit 5a20acb

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

CountriesSwiftUI/System/SystemEventsHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct RealSystemEventsHandler: SystemEventsHandler {
2424
let deepLinksHandler: DeepLinksHandler
2525
let pushNotificationsHandler: PushNotificationsHandler
2626
let pushTokenWebRepository: PushTokenWebRepository
27-
private var cancelBag = CancelBag()
27+
private let cancelBag = CancelBag()
2828

2929
init(container: DIContainer,
3030
deepLinksHandler: DeepLinksHandler,

CountriesSwiftUI/UI/Components/DetailRow.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import SwiftUI
1010

1111
struct DetailRow: View {
12-
let leftLabel: Text
13-
let rightLabel: Text
12+
private let leftLabel: Text
13+
private let rightLabel: Text
1414

1515
init(leftLabel: Text, rightLabel: Text) {
1616
self.leftLabel = leftLabel

CountriesSwiftUI/UI/Components/ImageView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Combine
1111

1212
struct ImageView: View {
1313

14-
let imageURL: URL
14+
private let imageURL: URL
1515
@Environment(\.injected) var injected: DIContainer
1616
@State private var image: Loadable<UIImage>
1717
let inspection = Inspection<Self>()

CountriesSwiftUI/UI/Components/SearchBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct SearchBar: UIViewRepresentable {
3131
extension SearchBar {
3232
final class Coordinator: NSObject, UISearchBarDelegate {
3333

34-
let text: Binding<String>
34+
private let text: Binding<String>
3535

3636
init(text: Binding<String>) {
3737
self.text = text

CountriesSwiftUI/UI/Screens/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct ContentView: View {
3232
}
3333
}
3434

35-
var onChangeHandler: (EnvironmentValues.Diff) -> Void {
35+
private var onChangeHandler: (EnvironmentValues.Diff) -> Void {
3636
return { diff in
3737
if !diff.isDisjoint(with: [.locale, .sizeCategory]) {
3838
self.container.appState[\.routing] = AppState.ViewRouting()

CountriesSwiftUI/UI/Screens/CountriesList.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct CountriesList: View {
2222
@Environment(\.locale) private var locale: Locale
2323
private let localeContainer = LocaleReader.Container()
2424

25-
let inspection = Inspection<Self>()
25+
private let inspection = Inspection<Self>()
2626

2727
init(countries: Loadable<LazyList<Country>> = .notRequested) {
2828
self._countries = .init(initialValue: countries)
@@ -199,15 +199,15 @@ extension CountriesList {
199199

200200
private extension CountriesList {
201201

202-
var routingUpdate: AnyPublisher<Routing, Never> {
202+
private var routingUpdate: AnyPublisher<Routing, Never> {
203203
injected.appState.updates(for: \.routing.countriesList)
204204
}
205205

206-
var keyboardHeightUpdate: AnyPublisher<CGFloat, Never> {
206+
private var keyboardHeightUpdate: AnyPublisher<CGFloat, Never> {
207207
injected.appState.updates(for: \.system.keyboardHeight)
208208
}
209209

210-
var canRequestPushPermissionUpdate: AnyPublisher<Bool, Never> {
210+
private var canRequestPushPermissionUpdate: AnyPublisher<Bool, Never> {
211211
injected.appState.updates(for: AppState.permissionKeyPath(for: .pushNotifications))
212212
.map { $0 == .notRequested || $0 == .denied }
213213
.eraseToAnyPublisher()

CountriesSwiftUI/UI/Screens/CountryDetails.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Combine
1111

1212
struct CountryDetails: View {
1313

14-
let country: Country
14+
private let country: Country
1515

1616
@Environment(\.locale) var locale: Locale
1717
@Environment(\.injected) private var injected: DIContainer
@@ -20,7 +20,7 @@ struct CountryDetails: View {
2020
private var routingBinding: Binding<Routing> {
2121
$routingState.dispatched(to: injected.appState, \.routing.countryDetails)
2222
}
23-
let inspection = Inspection<Self>()
23+
private let inspection = Inspection<Self>()
2424

2525
init(country: Country, details: Loadable<Country.Details> = .notRequested) {
2626
self.country = country

CountriesSwiftUI/Utilities/LazyList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct LazyList<T> {
1313
typealias Access = (Int) throws -> T?
1414
private let access: Access
1515
private let useCache: Bool
16-
private var cache = Cache()
16+
private let cache = Cache()
1717

1818
let count: Int
1919

0 commit comments

Comments
 (0)