Refine formatting
This commit is contained in:
parent
5439933c45
commit
5f47cb485d
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue