File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sources/FunctionalConfigurator Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ extension ConfigInitializable {
1111 /// Instantiates a new object with specified configuration
1212 ///
1313 /// 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 ( ) ) )
1616 }
1717
1818 /// Instantiates a new object with specified configuration
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ public protocol CustomConfigurable {}
55extension CustomConfigurable {
66 public typealias Config = Configurator < Self >
77
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 ( ) ) )
1010 }
1111
1212 public func configured( using configurator: Config ) -> Self {
@@ -15,8 +15,8 @@ extension CustomConfigurable {
1515}
1616
1717extension 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 ( ) ) )
2020 }
2121
2222 public func configure( using configurator: Config ) {
You can’t perform that action at this time.
0 commit comments