Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}