This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
precedencegroup HierarchyPrecedence { | |
lowerThan: AssignmentPrecedence | |
associativity: left | |
} | |
infix operator |--: HierarchyPrecedence | |
public protocol UIViewHierarchyProvider { | |
associatedtype View: UIView | |
var view: View { get } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol UIViewArrayConvertible { | |
func items() -> [UIView] | |
} | |
extension UIView: UIViewArrayConvertible { | |
func items() -> [UIView] { [self] } | |
} | |
extension Array: UIViewArrayConvertible where Element: UIView { | |
func items() -> [UIView] { self } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Request descriptor | |
public struct Request { | |
public let methodName: String | |
public let path: String | |
public let query: [URLQueryItem] | |
public let body: RequestBody | |
public let contentType: String? | |
public let headers: [String: String]? |