Skip to content

Commit 7a7139f

Browse files
committed
style: re-indentation
1 parent c44466c commit 7a7139f

2 files changed

Lines changed: 27 additions & 25 deletions

File tree

Sources/LinkNavigator/Components/WrappingController.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ protocol MatchingKeyUsable {
66

77
public final class WrappingController<Content: View>: UIHostingController<Content>, MatchingKeyUsable {
88

9-
let matchingKey: String
9+
let matchingKey: String
1010

11-
public init(
12-
matchingKey: String,
13-
@ViewBuilder content: () -> Content) {
14-
self.matchingKey = matchingKey
15-
super.init(rootView: content())
16-
}
11+
public init(
12+
matchingKey: String,
13+
@ViewBuilder content: () -> Content)
14+
{
15+
self.matchingKey = matchingKey
16+
super.init(rootView: content())
17+
}
1718

18-
required init?(coder aDecoder: NSCoder) {
19-
fatalError("init(coder:) has not been implemented")
20-
}
19+
required init?(coder aDecoder: NSCoder) {
20+
fatalError("init(coder:) has not been implemented")
21+
}
2122
}

Sources/LinkNavigator/Core/LinkNavigator.swift

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,22 @@ public protocol LinkNavigatorType {
328328
}
329329

330330
public final class LinkNavigator {
331-
let rootNavigationController: UINavigationController
332-
let subNavigationController: UINavigationController
333-
let dependency: DependencyType
334-
let builders: [RouteBuilder]
335-
336-
public init(
337-
rootNavigationController: UINavigationController = .init(),
338-
subNavigationController: UINavigationController = .init(),
339-
dependency: DependencyType,
340-
builders: [RouteBuilder]) {
341-
self.rootNavigationController = rootNavigationController
342-
self.subNavigationController = subNavigationController
343-
self.dependency = dependency
344-
self.builders = builders
345-
}
331+
let rootNavigationController: UINavigationController
332+
let subNavigationController: UINavigationController
333+
let dependency: DependencyType
334+
let builders: [RouteBuilder]
335+
336+
public init(
337+
rootNavigationController: UINavigationController = .init(),
338+
subNavigationController: UINavigationController = .init(),
339+
dependency: DependencyType,
340+
builders: [RouteBuilder])
341+
{
342+
self.rootNavigationController = rootNavigationController
343+
self.subNavigationController = subNavigationController
344+
self.dependency = dependency
345+
self.builders = builders
346+
}
346347
}
347348

348349
public enum NavigationTarget {

0 commit comments

Comments
 (0)