We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380f5b4 commit 5c4c19cCopy full SHA for 5c4c19c
1 file changed
AndroidSwiftUICore/Sources/AndroidSwiftUICore/Modifiers/Modifiers.swift
@@ -31,6 +31,15 @@ extension ModifiedContent: _ModifierProvider {
31
public var _modifiedContent: any View { content }
32
}
33
34
+extension ModifiedContent: _ContextualModifierProvider {
35
+ public func _modifierNode(in context: ResolveContext) -> ModifierNode {
36
+ if let callback = modifier as? _CallbackModifier {
37
+ return callback._callbackNode(in: context)
38
+ }
39
+ return modifier._modifierNode
40
41
+}
42
+
43
public extension View {
44
func modifier<M: RenderModifier>(_ modifier: M) -> ModifiedContent<Self, M> {
45
ModifiedContent(content: self, modifier: modifier)
0 commit comments