Skip to content

Commit c44466c

Browse files
committed
fix: Changed View -> some View Type in Wrapping Controller Generic Type
1 parent 12f339c commit c44466c

13 files changed

Lines changed: 39 additions & 35 deletions

File tree

Examples/MVI-Example/MVI-Example/Feature/Home/HomeRouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ struct HomeRouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(HomeView.build(
11-
intent: HomeIntent(initialState: .init(), navigator: navigator)))
10+
HomeView.build(
11+
intent: HomeIntent(initialState: .init(), navigator: navigator))
1212
}
1313
}
1414
}

Examples/MVI-Example/MVI-Example/Feature/Page1/Page1RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ struct Page1RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page1View.build(
11-
intent: Page1Intent(initialState: .init(), navigator: navigator)))
10+
Page1View.build(
11+
intent: Page1Intent(initialState: .init(), navigator: navigator))
1212
}
1313
}
1414
}

Examples/MVI-Example/MVI-Example/Feature/Page2/Page2RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ struct Page2RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page2View.build(
11-
intent: Page2Intent(initialState: .init(), navigator: navigator)))
10+
Page2View.build(
11+
intent: Page2Intent(initialState: .init(), navigator: navigator))
1212
}
1313
}
1414
}

Examples/MVI-Example/MVI-Example/Feature/Page3/Page3RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page3RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page3View.build(
10+
Page3View.build(
1111
intent: Page3Intent(
1212
initialState: .init(message: items.getValue(key: "page3-message") ?? ""),
13-
navigator: navigator)))
13+
navigator: navigator))
1414
}
1515
}
1616
}

Examples/MVI-Example/MVI-Example/Feature/Page4/Page4RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page4RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page4View.build(
10+
Page4View.build(
1111
intent: Page4Intent(
1212
initialState: .init(message: items.getValue(key: "page4-message") ?? ""),
13-
navigator: navigator)))
13+
navigator: navigator))
1414
}
1515
}
1616
}

Examples/TCA-Example/TCA-Example/Feature/Home/HomeRouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct HomeRouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(HomeView(
10+
HomeView(
1111
store: .init(
1212
initialState: Home.State(),
13-
reducer: Home())))
13+
reducer: Home()))
1414
}
1515
}
1616
}

Examples/TCA-Example/TCA-Example/Feature/Page1/Page1RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page1RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page1View(
10+
Page1View(
1111
store: .init(
1212
initialState: Page1.State(),
13-
reducer: Page1())))
13+
reducer: Page1()))
1414
}
1515
}
1616
}

Examples/TCA-Example/TCA-Example/Feature/Page2/Page2RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page2RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page2View(
10+
Page2View(
1111
store: .init(
1212
initialState: Page2.State(),
13-
reducer: Page2())))
13+
reducer: Page2()))
1414
}
1515
}
1616
}

Examples/TCA-Example/TCA-Example/Feature/Page3/Page3RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page3RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page3View(
10+
Page3View(
1111
store: .init(
1212
initialState: Page3.State(message: items.getValue(key: "page3-message") ?? ""),
13-
reducer: Page3())))
13+
reducer: Page3()))
1414
}
1515
}
1616
}

Examples/TCA-Example/TCA-Example/Feature/Page4/Page4RouteBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Page4RouteBuilder: RouteBuilder {
77
var build: (LinkNavigatorType, [String: String], DependencyType) -> UIViewController? {
88
{ navigator, items, dep in
99
WrappingController(matchingKey: matchPath) {
10-
AnyView(Page4View(
10+
Page4View(
1111
store: .init(
1212
initialState: Page4.State(message: items.getValue(key: "page4-message") ?? ""),
13-
reducer: Page4())))
13+
reducer: Page4()))
1414
}
1515
}
1616
}

0 commit comments

Comments
 (0)