Skip to content

Commit 6244930

Browse files
author
Mohammed Rokon Uddin
committed
chore: change copy right
1 parent 5b7c573 commit 6244930

File tree

4 files changed

+67
-67
lines changed

4 files changed

+67
-67
lines changed

TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,61 @@
66
//___COPYRIGHT___
77
//
88

9-
import Domain
109
import Commons
11-
import Foundation
1210
import ComposableArchitecture
11+
import Domain
12+
import Foundation
13+
14+
public struct ___VARIABLE_moduleName___Feature: Reducer {
15+
16+
public struct State: Equatable {
17+
public init() {}
18+
}
19+
20+
public enum Action: BaseAction {
21+
22+
enum ViewAction: Equatable {
23+
case onAppear
1324

14-
public struct ___VARIABLE_moduleName___Feature: Reducer {
15-
16-
public struct State: Equatable {
17-
public init() {}
1825
}
19-
20-
public enum Action: BaseAction {
21-
22-
enum ViewAction: Equatable {
23-
case onAppear
24-
25-
}
26-
27-
enum InlyingAction: Equatable {
28-
29-
}
30-
31-
enum DelegateAction: Equatable {
32-
33-
}
34-
35-
case view(ViewAction)
36-
case inlying(InlyingAction)
37-
case delegate(DelegateAction)
26+
27+
enum InlyingAction: Equatable {
28+
3829
}
39-
40-
public func reduce(into state: inout State, action: Action) -> Effect<Action> {
41-
switch action {
42-
case .view(let action):
43-
switch action {
44-
case .onAppear:
45-
return .none
46-
47-
}
48-
case .inlying(let action):
49-
switch action {
50-
51-
}
52-
case .delegate(let action):
53-
switch action {
54-
55-
}
56-
}
30+
31+
enum DelegateAction: Equatable {
32+
5733
}
58-
59-
// Remove commented code if not needed
60-
// public var body: some Reducer<State, Action> {
61-
//
62-
// Reduce { state, action in
63-
//
64-
// }
65-
// }
34+
35+
case view(ViewAction)
36+
case inlying(InlyingAction)
37+
case delegate(DelegateAction)
38+
}
39+
40+
public func reduce(into state: inout State, action: Action) -> Effect<Action> {
41+
switch action {
42+
case .view(let action):
43+
switch action {
44+
case .onAppear:
45+
return .none
46+
47+
}
48+
case .inlying(let action):
49+
switch action {
50+
51+
}
52+
case .delegate(let action):
53+
switch action {
54+
55+
}
56+
}
57+
}
58+
59+
// Remove commented code if not needed
60+
// public var body: some Reducer<State, Action> {
61+
//
62+
// Reduce { state, action in
63+
//
64+
// }
65+
// }
6666
}

TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66
//___COPYRIGHT___
77
//
88

9-
import SwiftUI
109
import Commons
11-
import Resources
1210
import ComposableArchitecture
11+
import Resources
12+
import SwiftUI
1313

1414
public struct ___VARIABLE_moduleName___View: View {
15-
let store: StoreOf<___VARIABLE_moduleName___Feature>
15+
let store: StoreOf<___VARIABLE_moduleName___Feature>
1616

17-
public init(store: StoreOf<___VARIABLE_moduleName___Feature>) {
18-
self.store = store
19-
}
17+
public init(store: StoreOf<___VARIABLE_moduleName___Feature>) {
18+
self.store = store
19+
}
2020

21-
public var body: some View {
22-
WithViewStore(self.store, observe: { $0 }) { viewStore in
23-
Text("Hello World!!!")
24-
.onAppear {
25-
viewStore.send(.onAppear)
26-
}
21+
public var body: some View {
22+
WithViewStore(self.store, observe: { $0 }) { viewStore in
23+
Text("Hello World!!!")
24+
.onAppear {
25+
viewStore.send(.onAppear)
2726
}
2827
}
28+
}
2929
}

{{cookiecutter.app_name}}/Features/Sources/Counter/CounterFeature.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// CounterFeature.swift
33
// Features
44
//
5-
// Created by Rokon on 24/01/2024.
6-
// Copyright © 2024 MLBD. All rights reserved.
5+
// Created by {{ cookiecutter.creator }} on {% now 'utc', '%d/%m/%Y' %}.
6+
// Copyright © {% now 'utc', '%Y' %} {{cookiecutter.company_name}}. All rights reserved.
77
//
88

99
import Common

{{cookiecutter.app_name}}/Features/Sources/Counter/CounterView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// CounterView.swift
33
// Features
44
//
5-
// Created by Rokon on 24/01/2024.
6-
// Copyright © 2024 MLBD. All rights reserved.
5+
// Created by {{ cookiecutter.creator }} on {% now 'utc', '%d/%m/%Y' %}.
6+
// Copyright © {% now 'utc', '%Y' %} {{cookiecutter.company_name}}. All rights reserved.
77
//
88

99
import Common

0 commit comments

Comments
 (0)