Skip to content

Commit

Permalink
chore: change copy right
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed Rokon Uddin committed Feb 9, 2024
1 parent 5b7c573 commit 6244930
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 67 deletions.
102 changes: 51 additions & 51 deletions TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___Feature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Action> {
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<State, Action> {
//
// Reduce { state, action in
//
// }
// }

case view(ViewAction)
case inlying(InlyingAction)
case delegate(DelegateAction)
}

public func reduce(into state: inout State, action: Action) -> Effect<Action> {
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<State, Action> {
//
// Reduce { state, action in
//
// }
// }
}
24 changes: 12 additions & 12 deletions TCA.xctemplate/___FILEBASENAME___/___FILEBASENAME___View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6244930

Please sign in to comment.