File tree 2 files changed +6
-6
lines changed
Sources/FunctionalConfigurator
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ extension ConfigInitializable {
11
11
/// Instantiates a new object with specified configuration
12
12
///
13
13
/// Note: Type must implement custom intializer with no parameters, even if it inherits from NSObject
14
- public init ( _ configuration: ( Config . Type ) -> Config ) {
15
- self . init ( configuration ( Config . self ) )
14
+ public init ( _ configuration: ( Config ) -> Config ) {
15
+ self . init ( configuration ( Config ( ) ) )
16
16
}
17
17
18
18
/// Instantiates a new object with specified configuration
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ public protocol CustomConfigurable {}
5
5
extension CustomConfigurable {
6
6
public typealias Config = Configurator < Self >
7
7
8
- public func configured( using configuration: ( Config . Type ) -> Config ) -> Self {
9
- configured ( using: configuration ( Config . self ) )
8
+ public func configured( using configuration: ( Config ) -> Config ) -> Self {
9
+ configured ( using: configuration ( Config ( ) ) )
10
10
}
11
11
12
12
public func configured( using configurator: Config ) -> Self {
@@ -15,8 +15,8 @@ extension CustomConfigurable {
15
15
}
16
16
17
17
extension CustomConfigurable where Self: AnyObject {
18
- public func configure( using configuration: ( Config . Type ) -> Config ) {
19
- configure ( using: configuration ( Config . self ) )
18
+ public func configure( using configuration: ( Config ) -> Config ) {
19
+ configure ( using: configuration ( Config ( ) ) )
20
20
}
21
21
22
22
public func configure( using configurator: Config ) {
You can’t perform that action at this time.
0 commit comments