summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-08-12 18:41:21 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-08-16 10:54:15 +0200
commitbb25b6b86f4fa9a921fe2323b3dc9715166506e9 (patch)
treec3df35d95ed62b024ac24922ae819f304d33292e
parenta67c3acc58fbe1b26a0395065534f767fd2d97a0 (diff)
downloadmullvadvpn-bb25b6b86f4fa9a921fe2323b3dc9715166506e9.tar.xz
mullvadvpn-bb25b6b86f4fa9a921fe2323b3dc9715166506e9.zip
Move typealias to the top
-rw-r--r--ios/MullvadVPN/LocationDataSource.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/ios/MullvadVPN/LocationDataSource.swift b/ios/MullvadVPN/LocationDataSource.swift
index df70afef72..4553f92efa 100644
--- a/ios/MullvadVPN/LocationDataSource.swift
+++ b/ios/MullvadVPN/LocationDataSource.swift
@@ -19,15 +19,15 @@ protocol LocationDataSourceItemProtocol {
}
class LocationDataSource: NSObject, UITableViewDataSource {
- private var nodeByLocation = [RelayLocation: Node]()
- private var locationList = [RelayLocation]()
- private var rootNode = makeRootNode()
-
typealias CellProviderBlock = (UITableView, IndexPath, LocationDataSourceItemProtocol)
-> UITableViewCell?
typealias CellConfiguratorBlock = (UITableViewCell, IndexPath, LocationDataSourceItemProtocol)
-> Void
+ private var nodeByLocation = [RelayLocation: Node]()
+ private var locationList = [RelayLocation]()
+ private var rootNode = makeRootNode()
+
private let tableView: UITableView
private let cellProvider: CellProviderBlock
private let cellConfigurator: CellConfiguratorBlock