Refine formatting

This commit is contained in:
Max Desiatov 2020-06-30 23:39:30 +01:00
parent 5439933c45
commit 5f47cb485d
No known key found for this signature in database
GPG Key ID: FE08EBF9CF58CBA2
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,10 @@ public struct _EnvironmentKeyWritingModifier<Value>: ViewModifier {
}
extension View {
public func environment<V>(_ keyPath: WritableKeyPath<EnvironmentValues, V>, _ value: V) -> some View {
public func environment<V>(
_ keyPath: WritableKeyPath<EnvironmentValues, V>,
_ value: V
) -> some View {
modifier(_EnvironmentKeyWritingModifier(keyPath: keyPath, value: value))
}
}

View File

@ -21,7 +21,8 @@ public protocol DOMViewModifier {
var attributes: [String: String] { get }
}
extension ModifiedContent: DOMViewModifier where Content: DOMViewModifier, Modifier: DOMViewModifier {
extension ModifiedContent: DOMViewModifier
where Content: DOMViewModifier, Modifier: DOMViewModifier {
// Merge attributes
public var attributes: [String: String] {
var attr = content.attributes