-
Notifications
You must be signed in to change notification settings - Fork 0
Ubdate MVVM-Reducer #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // ___FILEHEADER___ | ||
|
|
||
| import OversizeArchitecture | ||
|
|
||
| @Module | ||
| public enum ___FILEBASENAMEASIDENTIFIER___: ModuleProtocol {} | ||
|
|
||
| public struct ___VARIABLE_productName___Input: Sendable {} | ||
|
|
||
| public struct ___VARIABLE_productName___Output: Sendable {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // ___FILEHEADER___ | ||
|
|
||
| import OversizeArchitecture | ||
| import OversizeNavigation | ||
| import OversizeUI | ||
| import SwiftUI | ||
|
|
||
| @View(module: ___VARIABLE_productName___.self) | ||
| public struct ___FILEBASENAMEASIDENTIFIER___: ViewProtocol { | ||
| public var body: some View { | ||
| NavigationLayoutView("Title") { | ||
| content | ||
| } background: { | ||
| Color.backgroundSecondary | ||
| } | ||
| .toolbarTitleDisplayMode(.inline) | ||
| } | ||
|
|
||
| var content: some View { | ||
| Text("Content") | ||
| } | ||
| } | ||
|
|
||
| #Preview { | ||
| NavigationStack { | ||
| ___VARIABLE_productName___.build() | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // ___FILEHEADER___ | ||
|
|
||
| import OversizeArchitecture | ||
|
|
||
| @ViewModel(module: ___VARIABLE_productName___.self) | ||
| public actor ___FILEBASENAMEASIDENTIFIER___: ViewModelProtocol {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // ___FILEHEADER___ | ||
|
|
||
| import Observation | ||
| import OversizeArchitecture | ||
| import SwiftUI | ||
|
|
||
| @Observable | ||
| public final class ___FILEBASENAMEASIDENTIFIER___: ViewStateProtocol { | ||
| public init(input: ___VARIABLE_productName___.Input?) {} | ||
| } | ||
|
Comment on lines
+8
to
+10
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] SwiftUI is not used in this file; consider removing the unused import to keep the template minimal.