Skip to content

Commit f8fbb24

Browse files
authored
Merge pull request #4 from maksimn/release-2.1.0
release-2.1.0
2 parents b837f9c + 356263a commit f8fbb24

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

Source/Builder.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,25 @@ public protocol ViewBuilder {
1212
func build() -> UIView
1313
}
1414

15+
public protocol ParametrizedViewBuilder {
16+
17+
associatedtype Parameter
18+
19+
func build(_ parameter: Parameter) -> UIView
20+
}
21+
1522
public protocol ViewControllerBuilder {
1623

1724
func build() -> UIViewController
1825
}
1926

27+
public protocol ParametrizedViewControllerBuilder {
28+
29+
associatedtype Parameter
30+
31+
func build(_ parameter: Parameter) -> UIViewController
32+
}
33+
2034
public protocol SearchControllerBuilder {
2135

2236
func build() -> UISearchController

Source/Networking/HttpClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct Http {
1717
public let body: Data?
1818

1919
public init(urlString: String = "",
20-
method: String = "",
20+
method: String = "GET",
2121
headers: [String: String]? = nil,
2222
body: Data? = nil) {
2323
self.urlString = urlString

Source/Router.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ public protocol Router {
99

1010
func navigate()
1111
}
12+
13+
public protocol ParametrizedRouter {
14+
15+
associatedtype Parameter
16+
17+
func navigate(_ parameter: Parameter)
18+
}

0 commit comments

Comments
 (0)