Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions File Templates/MVVM-Reducer.xctemplate/TemplateInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>Kind</key>
<string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
<key>Description</key>
<string>A SwiftUI custom view with preview and library content provider</string>
<string>A SwiftUI screen with MVVM architecture using OversizeArchitecture</string>
<key>Summary</key>
<string>SwiftUI View</string>
<string>MVVM Screen</string>
<key>SortOrder</key>
<string>1</string>
<key>AllowedTypes</key>
Expand All @@ -19,9 +19,9 @@
<key>Platforms</key>
<array/>
<key>DefaultCompletionName</key>
<string>___VARIABLE_productName___Screen</string>
<string>Screen</string>
<key>MainTemplateFile</key>
<string>___VARIABLE_productName___Screen.swift</string>
<string>___VARIABLE_productName___.swift</string>
<key>CFBundleIdentifier</key>
<string></string>
<key>Image</key>
Expand Down
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

Comment on lines +5 to +6
Copy link

Copilot AI Oct 16, 2025

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.

Suggested change
import SwiftUI

Copilot uses AI. Check for mistakes.
@Observable
public final class ___FILEBASENAMEASIDENTIFIER___: ViewStateProtocol {
public init(input: ___VARIABLE_productName___.Input?) {}
}
Comment on lines +8 to +10
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initializer references VARIABLE_productName.Input, but the module in this PR does not declare a nested Input type. Either update this to use ___VARIABLE_productName___Input or, preferably, define nested types in the module (e.g., enum Module { struct Input {} struct Output {} }) so the signature remains module-scoped.

Copilot uses AI. Check for mistakes.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.