diff --git a/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift b/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift index c892922..88f7730 100755 --- a/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift +++ b/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift @@ -6,61 +6,61 @@ //___COPYRIGHT___ // -import Domain import Commons -import Foundation import ComposableArchitecture +import Domain +import Foundation + +public struct ___VARIABLE_moduleName___Feature: Reducer { + + public struct State: Equatable { + public init() {} + } + + public enum Action: BaseAction { + + enum ViewAction: Equatable { + case onAppear -public struct ___VARIABLE_moduleName___Feature: Reducer { - - public struct State: Equatable { - public init() {} } - - public enum Action: BaseAction { - - enum ViewAction: Equatable { - case onAppear - - } - - enum InlyingAction: Equatable { - - } - - enum DelegateAction: Equatable { - - } - - case view(ViewAction) - case inlying(InlyingAction) - case delegate(DelegateAction) + + enum InlyingAction: Equatable { + } - - public func reduce(into state: inout State, action: Action) -> Effect { - switch action { - case .view(let action): - switch action { - case .onAppear: - return .none - - } - case .inlying(let action): - switch action { - - } - case .delegate(let action): - switch action { - - } - } + + enum DelegateAction: Equatable { + } - -// Remove commented code if not needed -// public var body: some Reducer { -// -// Reduce { state, action in -// -// } -// } + + case view(ViewAction) + case inlying(InlyingAction) + case delegate(DelegateAction) + } + + public func reduce(into state: inout State, action: Action) -> Effect { + switch action { + case .view(let action): + switch action { + case .onAppear: + return .none + + } + case .inlying(let action): + switch action { + + } + case .delegate(let action): + switch action { + + } + } + } + + // Remove commented code if not needed + // public var body: some Reducer { + // + // Reduce { state, action in + // + // } + // } } diff --git a/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift b/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift index 1159475..bcc2715 100755 --- a/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift +++ b/TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift @@ -6,24 +6,24 @@ //___COPYRIGHT___ // -import SwiftUI import Commons -import Resources import ComposableArchitecture +import Resources +import SwiftUI public struct ___VARIABLE_moduleName___View: View { - let store: StoreOf<___VARIABLE_moduleName___Feature> + let store: StoreOf<___VARIABLE_moduleName___Feature> - public init(store: StoreOf<___VARIABLE_moduleName___Feature>) { - self.store = store - } + public init(store: StoreOf<___VARIABLE_moduleName___Feature>) { + self.store = store + } - public var body: some View { - WithViewStore(self.store, observe: { $0 }) { viewStore in - Text("Hello World!!!") - .onAppear { - viewStore.send(.onAppear) - } + public var body: some View { + WithViewStore(self.store, observe: { $0 }) { viewStore in + Text("Hello World!!!") + .onAppear { + viewStore.send(.onAppear) } } + } } diff --git a/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterFeature.swift b/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterFeature.swift index b0c0102..b242f46 100644 --- a/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterFeature.swift +++ b/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterFeature.swift @@ -2,8 +2,8 @@ // CounterFeature.swift // Features // -// Created by Rokon on 24/01/2024. -// Copyright © 2024 MLBD. All rights reserved. +// Created by {{ cookiecutter.creator }} on {% now 'utc', '%d/%m/%Y' %}. +// Copyright © {% now 'utc', '%Y' %} {{cookiecutter.company_name}}. All rights reserved. // import Common diff --git a/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterView.swift b/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterView.swift index 5871b6d..bf0234d 100644 --- a/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterView.swift +++ b/{{cookiecutter.app_name}}/Features/Sources/Counter/CounterView.swift @@ -2,8 +2,8 @@ // CounterView.swift // Features // -// Created by Rokon on 24/01/2024. -// Copyright © 2024 MLBD. All rights reserved. +// Created by {{ cookiecutter.creator }} on {% now 'utc', '%d/%m/%Y' %}. +// Copyright © {% now 'utc', '%Y' %} {{cookiecutter.company_name}}. All rights reserved. // import Common