Skip to content

Commit

Permalink
Merge pull request #4 from maksimn/release-2.1.0
Browse files Browse the repository at this point in the history
release-2.1.0
  • Loading branch information
maksimn authored May 1, 2023
2 parents b837f9c + 356263a commit f8fbb24
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Source/Builder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,25 @@ public protocol ViewBuilder {
func build() -> UIView
}

public protocol ParametrizedViewBuilder {

associatedtype Parameter

func build(_ parameter: Parameter) -> UIView
}

public protocol ViewControllerBuilder {

func build() -> UIViewController
}

public protocol ParametrizedViewControllerBuilder {

associatedtype Parameter

func build(_ parameter: Parameter) -> UIViewController
}

public protocol SearchControllerBuilder {

func build() -> UISearchController
Expand Down
2 changes: 1 addition & 1 deletion Source/Networking/HttpClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public struct Http {
public let body: Data?

public init(urlString: String = "",
method: String = "",
method: String = "GET",
headers: [String: String]? = nil,
body: Data? = nil) {
self.urlString = urlString
Expand Down
7 changes: 7 additions & 0 deletions Source/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ public protocol Router {

func navigate()
}

public protocol ParametrizedRouter {

associatedtype Parameter

func navigate(_ parameter: Parameter)
}

0 comments on commit f8fbb24

Please sign in to comment.