33///
44/// Provides a public API to set internal closure-based hanlder or delegate with a functional API
55@propertyWrapper
6- public struct Handler < Input> {
6+ public class Handler < Input> {
77 public struct Container {
88 internal var action : ( ( Input ) -> Void ) ?
99
@@ -23,7 +23,7 @@ public struct Handler<Input> {
2323 Feel free to discuss the API here \
2424 https://github.com/MakeupStudio/swift-declarative-configuration/issues/1
2525 """ )
26- public mutating func callAsFunction( _ behaviour: Behaviour , action: ( ( Input ) -> Void ) ? ) {
26+ public mutating func callAsFunction( _ behaviour: Behaviour , perform action: ( ( Input ) -> Void ) ? ) {
2727 switch behaviour {
2828 case . resetting:
2929 self . action = action
@@ -73,7 +73,7 @@ public struct Handler<Input> {
7373///
7474/// Provides a public API to set internal closure-based hanlder or delegate with a functional API
7575@propertyWrapper
76- public struct Handler2 < T0, T1> {
76+ public class Handler2 < T0, T1> {
7777 public struct Container {
7878 internal var action : ( ( T0 , T1 ) -> Void ) ?
7979
@@ -93,7 +93,7 @@ public struct Handler2<T0, T1> {
9393 Feel free to discuss the API here \
9494 https://github.com/MakeupStudio/swift-declarative-configuration/issues/1
9595 """ )
96- public mutating func callAsFunction( _ behaviour: Behaviour , action: ( ( T0 , T1 ) -> Void ) ? ) {
96+ public mutating func callAsFunction( _ behaviour: Behaviour , perform action: ( ( T0 , T1 ) -> Void ) ? ) {
9797 switch behaviour {
9898 case . resetting:
9999 self . action = action
@@ -141,7 +141,7 @@ public struct Handler2<T0, T1> {
141141///
142142/// Provides a public API to set internal closure-based hanlder or delegate with a functional API
143143@propertyWrapper
144- public struct Handler3 < T0, T1, T2> {
144+ public class Handler3 < T0, T1, T2> {
145145 public struct Container {
146146 internal var action : ( ( T0 , T1 , T2 ) -> Void ) ?
147147
@@ -161,7 +161,7 @@ public struct Handler3<T0, T1, T2> {
161161 Feel free to discuss the API here \
162162 https://github.com/MakeupStudio/swift-declarative-configuration/issues/1
163163 """ )
164- public mutating func callAsFunction( _ behaviour: Behaviour , action: ( ( T0 , T1 , T2 ) -> Void ) ? ) {
164+ public mutating func callAsFunction( _ behaviour: Behaviour , perform action: ( ( T0 , T1 , T2 ) -> Void ) ? ) {
165165 switch behaviour {
166166 case . resetting:
167167 self . action = action
@@ -209,7 +209,7 @@ public struct Handler3<T0, T1, T2> {
209209///
210210/// Provides a public API to set internal closure-based hanlder or delegate with a functional API
211211@propertyWrapper
212- public struct Handler4 < T0, T1, T2, T3> {
212+ public class Handler4 < T0, T1, T2, T3> {
213213 public struct Container {
214214 internal var action : ( ( T0 , T1 , T2 , T3 ) -> Void ) ?
215215
@@ -229,7 +229,7 @@ public struct Handler4<T0, T1, T2, T3> {
229229 Feel free to discuss the API here \
230230 https://github.com/MakeupStudio/swift-declarative-configuration/issues/1
231231 """ )
232- public mutating func callAsFunction( _ behaviour: Behaviour , action: ( ( T0 , T1 , T2 , T3 ) -> Void ) ? ) {
232+ public mutating func callAsFunction( _ behaviour: Behaviour , perform action: ( ( T0 , T1 , T2 , T3 ) -> Void ) ? ) {
233233 switch behaviour {
234234 case . resetting:
235235 self . action = action
@@ -277,7 +277,7 @@ public struct Handler4<T0, T1, T2, T3> {
277277///
278278/// Provides a public API to set internal closure-based hanlder or delegate with a functional API
279279@propertyWrapper
280- public struct Handler5 < T0, T1, T2, T3, T4> {
280+ public class Handler5 < T0, T1, T2, T3, T4> {
281281 public struct Container {
282282 internal var action : ( ( T0 , T1 , T2 , T3 , T4 ) -> Void ) ?
283283
@@ -297,7 +297,7 @@ public struct Handler5<T0, T1, T2, T3, T4> {
297297 Feel free to discuss the API here \
298298 https://github.com/MakeupStudio/swift-declarative-configuration/issues/1
299299 """ )
300- public mutating func callAsFunction( _ behaviour: Behaviour , action: ( ( T0 , T1 , T2 , T3 , T4 ) -> Void ) ? ) {
300+ public mutating func callAsFunction( _ behaviour: Behaviour , perform action: ( ( T0 , T1 , T2 , T3 , T4 ) -> Void ) ? ) {
301301 switch behaviour {
302302 case . resetting:
303303 self . action = action
0 commit comments