-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
318 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
App/Sources/Feature/BookDetailFeature/Interface/BookDetailFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import SwiftUI | ||
|
||
public protocol BookDetailFactory { | ||
associatedtype SomeView: View | ||
func makeView() -> SomeView | ||
} |
15 changes: 15 additions & 0 deletions
15
App/Sources/Feature/BookDetailFeature/Sources/BookDetailComponent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import NeedleFoundation | ||
import Service | ||
import SwiftUI | ||
|
||
public protocol BookDetailDependency: Dependency { | ||
var editBookFactory: any EditBookFactory { get } | ||
} | ||
|
||
public final class BookDetailComponent: Component<BookDetailDependency>, BookDetailFactory { | ||
public func makeView() -> some View { | ||
BookDetailView( | ||
editBookFactory: dependency.editBookFactory | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
App/Sources/Feature/BookPostFeature/Interface/BookPostFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import SwiftUI | ||
|
||
public protocol BookPostFactory { | ||
associatedtype SomeView: View | ||
func makeView() -> SomeView | ||
} |
11 changes: 11 additions & 0 deletions
11
App/Sources/Feature/BookPostFeature/Sources/BookPostComponent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import NeedleFoundation | ||
import Service | ||
import SwiftUI | ||
|
||
public protocol BookPostDependency: Dependency {} | ||
|
||
public final class BookPostComponent: Component<BookPostDependency>, BookPostFactory { | ||
public func makeView() -> some View { | ||
BookPostView(viewModel: BookPostViewModel()) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
App/Sources/Feature/EditBookFeature/Interface/EditBookFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import SwiftUI | ||
|
||
public protocol EditBookFactory { | ||
associatedtype SomeView: View | ||
func makeView() -> SomeView | ||
} |
12 changes: 12 additions & 0 deletions
12
App/Sources/Feature/EditBookFeature/Sources/EditBookComponent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import NeedleFoundation | ||
import Service | ||
import SwiftUI | ||
|
||
public protocol EditBookDependency: Dependency {} | ||
|
||
public final class EditBookComponent: Component<EditBookDependency>, EditBookFactory { | ||
public func makeView() -> some View { | ||
EditBookView(viewModel: EditBookViewModel()) | ||
} | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...eature/EditBookFeature/EditBookView.swift β ...ditBookFeature/Sources/EditBookView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
App/Sources/Feature/EditBookOrderFeature/Interface/EditBookOrderFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import SwiftUI | ||
|
||
public protocol EditBookOrderFactory { | ||
associatedtype SomeView: View | ||
func makeView() -> SomeView | ||
} |
11 changes: 11 additions & 0 deletions
11
App/Sources/Feature/EditBookOrderFeature/Sources/EditBookOrderComponent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import NeedleFoundation | ||
import Service | ||
import SwiftUI | ||
|
||
public protocol EditBookOrderDependency: Dependency {} | ||
|
||
public final class EditBookOrderComponent: Component<EditBookOrderDependency>, EditBookOrderFactory { | ||
public func makeView() -> some View { | ||
EditBookOrderView(viewModel: EditBookOrderViewModel()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.